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

Side by Side Diff: remoting/protocol/input_filter.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: rebased Created 5 years, 9 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
« no previous file with comments | « remoting/protocol/input_filter.h ('k') | remoting/protocol/input_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_filter.h" 5 #include "remoting/protocol/input_filter.h"
6 6
7 namespace remoting { 7 namespace remoting {
8 namespace protocol { 8 namespace protocol {
9 9
10 InputFilter::InputFilter() : input_stub_(nullptr), enabled_(true) { 10 InputFilter::InputFilter() : input_stub_(nullptr), enabled_(true) {
(...skipping 14 matching lines...) Expand all
25 void InputFilter::InjectTextEvent(const TextEvent& event) { 25 void InputFilter::InjectTextEvent(const TextEvent& event) {
26 if (enabled_ && input_stub_ != nullptr) 26 if (enabled_ && input_stub_ != nullptr)
27 input_stub_->InjectTextEvent(event); 27 input_stub_->InjectTextEvent(event);
28 } 28 }
29 29
30 void InputFilter::InjectMouseEvent(const MouseEvent& event) { 30 void InputFilter::InjectMouseEvent(const MouseEvent& event) {
31 if (enabled_ && input_stub_ != nullptr) 31 if (enabled_ && input_stub_ != nullptr)
32 input_stub_->InjectMouseEvent(event); 32 input_stub_->InjectMouseEvent(event);
33 } 33 }
34 34
35 void InputFilter::InjectTouchEvent(const TouchEvent& event) {
36 if (enabled_ && input_stub_ != nullptr)
37 input_stub_->InjectTouchEvent(event);
38 }
39
35 } // namespace protocol 40 } // namespace protocol
36 } // namespace remoting 41 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/input_filter.h ('k') | remoting/protocol/input_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698