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

Side by Side Diff: remoting/host/host_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/host/fake_desktop_environment.cc ('k') | remoting/host/input_injector_chromeos.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 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 class MockInputInjector : public InputInjector { 105 class MockInputInjector : public InputInjector {
106 public: 106 public:
107 MockInputInjector(); 107 MockInputInjector();
108 virtual ~MockInputInjector(); 108 virtual ~MockInputInjector();
109 109
110 MOCK_METHOD1(InjectClipboardEvent, 110 MOCK_METHOD1(InjectClipboardEvent,
111 void(const protocol::ClipboardEvent& event)); 111 void(const protocol::ClipboardEvent& event));
112 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event)); 112 MOCK_METHOD1(InjectKeyEvent, void(const protocol::KeyEvent& event));
113 MOCK_METHOD1(InjectTextEvent, void(const protocol::TextEvent& event)); 113 MOCK_METHOD1(InjectTextEvent, void(const protocol::TextEvent& event));
114 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event)); 114 MOCK_METHOD1(InjectMouseEvent, void(const protocol::MouseEvent& event));
115 MOCK_METHOD1(InjectTouchEvent, void(const protocol::TouchEvent& event));
115 MOCK_METHOD1(StartPtr, 116 MOCK_METHOD1(StartPtr,
116 void(protocol::ClipboardStub* client_clipboard)); 117 void(protocol::ClipboardStub* client_clipboard));
117 118
118 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard); 119 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard);
119 120
120 private: 121 private:
121 DISALLOW_COPY_AND_ASSIGN(MockInputInjector); 122 DISALLOW_COPY_AND_ASSIGN(MockInputInjector);
122 }; 123 };
123 124
124 class MockHostStatusObserver : public HostStatusObserver { 125 class MockHostStatusObserver : public HostStatusObserver {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); 160 MOCK_METHOD2(Init, void(Callback* callback, Mode mode));
160 MOCK_METHOD0(Capture, void()); 161 MOCK_METHOD0(Capture, void());
161 162
162 private: 163 private:
163 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); 164 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor);
164 }; 165 };
165 166
166 } // namespace remoting 167 } // namespace remoting
167 168
168 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 169 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/fake_desktop_environment.cc ('k') | remoting/host/input_injector_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698