Chromium Code Reviews| 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_; |