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

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: Fix host build. 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
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.cc ('k') | remoting/protocol/input_event_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1511fa5a20ac12707ff3047fdb9c6cccd05ce5a9 100644
--- a/remoting/protocol/input_event_tracker.h
+++ b/remoting/protocol/input_event_tracker.h
@@ -23,9 +23,14 @@ namespace protocol {
// |input_stub| for all currently-pressed keys and buttons when necessary.
class InputEventTracker : public InputStub {
public:
- explicit InputEventTracker(protocol::InputStub* input_stub);
+ InputEventTracker();
+ explicit InputEventTracker(InputStub* input_stub);
~InputEventTracker() override;
+ void set_input_stub(InputStub* input_stub) {
+ 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 +54,12 @@ class InputEventTracker : public InputStub {
void InjectTouchEvent(const TouchEvent& event) override;
private:
- protocol::InputStub* input_stub_;
+ InputStub* input_stub_ = nullptr;
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_;
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.cc ('k') | remoting/protocol/input_event_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698