| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/client/plugin/normalizing_input_filter_cros.h" | 5 #include "remoting/client/normalizing_input_filter_cros.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "remoting/protocol/usb_key_codes.h" | 8 #include "remoting/protocol/usb_key_codes.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 // Returns true for OSKey codes. | 14 // Returns true for OSKey codes. |
| 15 static bool IsOsKey(unsigned int code) { | 15 static bool IsOsKey(unsigned int code) { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 } | 207 } |
| 208 | 208 |
| 209 void NormalizingInputFilterCros::SwitchRewritingKeyToModifying() { | 209 void NormalizingInputFilterCros::SwitchRewritingKeyToModifying() { |
| 210 DCHECK(deferred_keydown_event_.has_usb_keycode()); | 210 DCHECK(deferred_keydown_event_.has_usb_keycode()); |
| 211 modifying_key_ = deferred_keydown_event_.usb_keycode(); | 211 modifying_key_ = deferred_keydown_event_.usb_keycode(); |
| 212 InputFilter::InjectKeyEvent(deferred_keydown_event_); | 212 InputFilter::InjectKeyEvent(deferred_keydown_event_); |
| 213 deferred_keydown_event_ = protocol::KeyEvent(); | 213 deferred_keydown_event_ = protocol::KeyEvent(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace remoting | 216 } // namespace remoting |
| OLD | NEW |