diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-16 08:39:58 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-16 08:39:58 +0000 |
commit | 33930d80c24e758b3a7b3314ece0c969ac51b372 (patch) | |
tree | 8498662339f2a5091f7cdb9224d2ebaea5cb8efc /remoting | |
parent | 531f61f6cda3855ac5108cdbf27e9f9422ed87b6 (diff) | |
download | chromium_src-33930d80c24e758b3a7b3314ece0c969ac51b372.zip chromium_src-33930d80c24e758b3a7b3314ece0c969ac51b372.tar.gz chromium_src-33930d80c24e758b3a7b3314ece0c969ac51b372.tar.bz2 |
Remove duplicate tests of KeyEvent::has_pressed
Cleans up some early-exit tests that duplicate checks in HostEventDispatcher, and which are verified in debug builds via DCHECKs.
Review URL: http://codereview.chromium.org/10093001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/event_executor_linux.cc | 4 | ||||
-rw-r--r-- | remoting/host/event_executor_win.cc | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc index d6b412e..31e43b9 100644 --- a/remoting/host/event_executor_linux.cc +++ b/remoting/host/event_executor_linux.cc @@ -325,10 +325,6 @@ void EventExecutorLinux::InjectKeyEvent(const KeyEvent& event) { return; } - // Events which don't specify whether the key is pressed are invalid. - if (!event.has_pressed()) - return; - int keycode = kInvalidKeycode; if (event.has_usb_keycode()) { keycode = UsbKeycodeToNativeKeycode(event.usb_keycode()); diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc index ac6cf6f..34e36ac 100644 --- a/remoting/host/event_executor_win.cc +++ b/remoting/host/event_executor_win.cc @@ -114,10 +114,6 @@ void EventExecutorWin::HandleKey(const KeyEvent& event) { // Reset the system idle suspend timeout. SetThreadExecutionState(ES_SYSTEM_REQUIRED); - // Events which don't specify whether the key is pressed are invalid. - if (!event.has_pressed()) - return; - // The mapping between scancodes and VKEY values depends on the foreground // window's current keyboard layout. HKL layout = GetForegroundKeyboardLayout(); |