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

Side by Side Diff: remoting/protocol/input_event_tracker.cc

Issue 799233004: Add touch events to the protocol, the stub layer, and to the client plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac builds Created 5 years, 11 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698