This source file includes following definitions.
- enabled_
- enabled_
- InjectKeyEvent
- InjectTextEvent
- InjectMouseEvent
#include "remoting/protocol/input_filter.h"
namespace remoting {
namespace protocol {
InputFilter::InputFilter() : input_stub_(NULL), enabled_(true) {
}
InputFilter::InputFilter(InputStub* input_stub)
: input_stub_(input_stub), enabled_(true) {
}
InputFilter::~InputFilter() {
}
void InputFilter::InjectKeyEvent(const KeyEvent& event) {
if (enabled_ && input_stub_ != NULL)
input_stub_->InjectKeyEvent(event);
}
void InputFilter::InjectTextEvent(const TextEvent& event) {
if (enabled_ && input_stub_ != NULL)
input_stub_->InjectTextEvent(event);
}
void InputFilter::InjectMouseEvent(const MouseEvent& event) {
if (enabled_ && input_stub_ != NULL)
input_stub_->InjectMouseEvent(event);
}
}
}