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

Unified Diff: remoting/protocol/input_event_tracker.h

Issue 1760633003: Notify normalizing input filters on blur. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 ff19b1d99ccf62155a38ffb56d660b4108c9ba5b..67915cad7c6a22eb8120dd98023852665727b7bb 100644
--- a/remoting/protocol/input_event_tracker.h
+++ b/remoting/protocol/input_event_tracker.h
@@ -23,9 +23,13 @@ namespace protocol {
// |input_stub| for all currently-pressed keys and buttons when necessary.
class InputEventTracker : public InputStub {
public:
- explicit InputEventTracker(protocol::InputStub* input_stub);
+ explicit InputEventTracker();
~InputEventTracker() override;
+ void set_input_stub(protocol::InputStub* input_stub) {
Sergey Ulanov 2016/03/04 00:30:45 don't need protocol::
Jamie 2016/03/04 01:39:46 Done.
+ input_stub_ = input_stub;
+ }
+
// Returns true if the key with the specified USB code is currently pressed.
bool IsKeyPressed(ui::DomCode usb_keycode) const;
@@ -49,12 +53,12 @@ class InputEventTracker : public InputStub {
void InjectTouchEvent(const TouchEvent& event) override;
private:
- protocol::InputStub* input_stub_;
+ protocol::InputStub* input_stub_ = nullptr;
Sergey Ulanov 2016/03/04 00:30:45 don't need protocol::
Jamie 2016/03/04 01:39:46 Done.
std::set<ui::DomCode> pressed_keys_;
webrtc::DesktopVector mouse_pos_;
- uint32_t mouse_button_state_;
+ uint32_t mouse_button_state_ = 0;
std::set<uint32_t> touch_point_ids_;

Powered by Google App Engine
This is Rietveld 408576698