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

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

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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 2015 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/normalizing_input_filter_win.h" 5 #include "remoting/client/normalizing_input_filter_win.h"
6 6
7 #include <stdint.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "ui/events/keycodes/dom/dom_code.h" 10 #include "ui/events/keycodes/dom/dom_code.h"
9 11
10 namespace remoting { 12 namespace remoting {
11 13
12 static bool IsLeftControl(uint32_t code) { 14 static bool IsLeftControl(uint32_t code) {
13 return code == static_cast<uint32_t>(ui::DomCode::CONTROL_LEFT); 15 return code == static_cast<uint32_t>(ui::DomCode::CONTROL_LEFT);
14 } 16 }
15 17
16 static bool IsRightAlt(uint32_t code) { 18 static bool IsRightAlt(uint32_t code) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 99
98 DCHECK_EQ(static_cast<uint32_t>(ui::DomCode::CONTROL_LEFT), 100 DCHECK_EQ(static_cast<uint32_t>(ui::DomCode::CONTROL_LEFT),
99 deferred_control_keydown_.usb_keycode()); 101 deferred_control_keydown_.usb_keycode());
100 102
101 left_control_is_pressed_ = true; 103 left_control_is_pressed_ = true;
102 InputFilter::InjectKeyEvent(deferred_control_keydown_); 104 InputFilter::InjectKeyEvent(deferred_control_keydown_);
103 deferred_control_keydown_ = protocol::KeyEvent(); 105 deferred_control_keydown_ = protocol::KeyEvent();
104 } 106 }
105 107
106 } // namespace remoting 108 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/normalizing_input_filter_mac_unittest.cc ('k') | remoting/client/normalizing_input_filter_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698