Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: remoting/client/normalizing_input_filter_cros.cc

Issue 1228333004: Move code that doesn't depend on PPAPI out of remoting/client/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/client/normalizing_input_filter_cros.h ('k') | remoting/client/normalizing_input_filter_cros_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698