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

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

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_stub.h ('k') | remoting/remoting_srcs.gypi » ('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 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 }; 116 };
117 117
118 class MockInputStub : public InputStub { 118 class MockInputStub : public InputStub {
119 public: 119 public:
120 MockInputStub(); 120 MockInputStub();
121 virtual ~MockInputStub(); 121 virtual ~MockInputStub();
122 122
123 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); 123 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event));
124 MOCK_METHOD1(InjectTextEvent, void(const TextEvent& event)); 124 MOCK_METHOD1(InjectTextEvent, void(const TextEvent& event));
125 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); 125 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event));
126 MOCK_METHOD1(InjectTouchEvent, void(const TouchEvent& event));
126 127
127 private: 128 private:
128 DISALLOW_COPY_AND_ASSIGN(MockInputStub); 129 DISALLOW_COPY_AND_ASSIGN(MockInputStub);
129 }; 130 };
130 131
131 class MockHostStub : public HostStub { 132 class MockHostStub : public HostStub {
132 public: 133 public:
133 MockHostStub(); 134 MockHostStub();
134 virtual ~MockHostStub(); 135 virtual ~MockHostStub();
135 136
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Runs tasks synchronously instead of posting them to |task_runner|. 278 // Runs tasks synchronously instead of posting them to |task_runner|.
278 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 279 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
279 const tracked_objects::Location& from_here, 280 const tracked_objects::Location& from_here,
280 const base::Closure& task) override; 281 const base::Closure& task) override;
281 }; 282 };
282 283
283 } // namespace protocol 284 } // namespace protocol
284 } // namespace remoting 285 } // namespace remoting
285 286
286 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 287 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/input_stub.h ('k') | remoting/remoting_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698