Home | History | Annotate | Download | only in plugin

Lines Matching refs:event

57 //    - When an OSKey keydown is received, the event is deferred, and we move to
62 // - If a Rewritten event is received we move to State #3.
63 // - If a Modified event is received the OSKey keydown is sent and we enter
68 // - If a Modified event is received the OSKey keydown is sent and we enter
70 // - If a Rewritten event is received then we stay in State #3.
73 // - All other key event pass through the filter unchanged.
88 const protocol::KeyEvent& event) {
89 DCHECK(event.has_usb_keycode());
90 DCHECK(event.has_pressed());
92 if (event.pressed()) {
93 ProcessKeyDown(event);
95 ProcessKeyUp(event);
100 const protocol::MouseEvent& event) {
103 InputFilter::InjectMouseEvent(event);
107 const protocol::KeyEvent& event) {
108 // If |event| is |deferred_keydown_event_| repeat then assume that the user is
111 deferred_keydown_event_.usb_keycode() == event.usb_keycode()) {
115 // If |event| is a |modifying_key_| repeat then let it pass through.
116 if (modifying_key_ == event.usb_keycode()) {
117 InputFilter::InjectKeyEvent(event);
121 // If |event| is for an OSKey and we don't know whether it's a Normal,
122 // Rewriting or Modifying use, then hold the keydown event.
123 if (IsOsKey(event.usb_keycode())) {
124 deferred_keydown_event_ = event;
129 // If |event| is for a Rewritten key then set a flag to prevent any deferred
133 if (IsRewrittenKey(event.usb_keycode())) {
134 // Note that there may not be a deferred OSKey event if there is a full
143 InputFilter::InjectKeyEvent(event);
146 void NormalizingInputFilterCros::ProcessKeyUp(const protocol::KeyEvent& event) {
148 deferred_keydown_event_.usb_keycode() == event.usb_keycode()) {
159 if (modifying_key_ == event.usb_keycode())
162 InputFilter::InjectKeyEvent(event);