#ifndef REMOTING_PROTOCOL_INPUT_FILTER_H_
#define REMOTING_PROTOCOL_INPUT_FILTER_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "remoting/protocol/input_stub.h"
namespace remoting {
namespace protocol {
class InputFilter : public InputStub {
public:
InputFilter();
explicit InputFilter(InputStub* input_stub);
virtual ~InputFilter();
void set_input_stub(InputStub* input_stub) {
input_stub_ = input_stub;
}
void set_enabled(bool enabled) {
enabled_ = enabled;
}
bool enabled() const {
return enabled_;
}
virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
virtual void InjectTextEvent(const TextEvent& event) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
private:
InputStub* input_stub_;
bool enabled_;
DISALLOW_COPY_AND_ASSIGN(InputFilter);
};
}
}
#endif