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

Unified Diff: remoting/protocol/input_event_tracker.h

Issue 1403583003: Use standard DOM code definitions instead of custom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compile. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/input_event_tracker.h
diff --git a/remoting/protocol/input_event_tracker.h b/remoting/protocol/input_event_tracker.h
index c1f87ae7795de23d41381b85fc6ffe4c603c2637..2c27fce184a739fa58eca476a4423239eef10975 100644
--- a/remoting/protocol/input_event_tracker.h
+++ b/remoting/protocol/input_event_tracker.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "remoting/protocol/input_stub.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
+#include "ui/events/keycodes/dom/dom_code.h"
namespace remoting {
namespace protocol {
@@ -24,7 +25,7 @@ class InputEventTracker : public InputStub {
~InputEventTracker() override;
// Returns true if the key with the specified USB code is currently pressed.
- bool IsKeyPressed(uint32 usb_keycode) const;
+ bool IsKeyPressed(ui::DomCode usb_keycode) const;
// Returns the count of keys currently pressed.
int PressedKeyCount() const;
@@ -48,7 +49,7 @@ class InputEventTracker : public InputStub {
private:
protocol::InputStub* input_stub_;
- std::set<uint32> pressed_keys_;
+ std::set<ui::DomCode> pressed_keys_;
webrtc::DesktopVector mouse_pos_;
uint32 mouse_button_state_;

Powered by Google App Engine
This is Rietveld 408576698