Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/protocol/input_event_tracker.h" | 5 #include "remoting/protocol/input_event_tracker.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "remoting/proto/event.pb.h" | 8 #include "remoting/proto/event.pb.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 if (event.button_down()) { | 85 if (event.button_down()) { |
| 86 mouse_button_state_ |= button_change; | 86 mouse_button_state_ |= button_change; |
| 87 } else { | 87 } else { |
| 88 mouse_button_state_ &= ~button_change; | 88 mouse_button_state_ &= ~button_change; |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 input_stub_->InjectMouseEvent(event); | 92 input_stub_->InjectMouseEvent(event); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void InputEventTracker::InjectTouchEvent(const TouchEvent& event) { | |
| 96 input_stub_->InjectTouchEvent(event); | |
|
Wez
2015/01/21 03:08:37
Don't you need to track the touch points so you ca
Rintaro Kuroiwa
2015/01/28 01:12:30
Oops. I didn't read the header file carefully. Don
| |
| 97 } | |
| 98 | |
| 95 } // namespace protocol | 99 } // namespace protocol |
| 96 } // namespace remoting | 100 } // namespace remoting |
| OLD | NEW |