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

Side by Side Diff: content/shell/renderer/test_runner/web_test_delegate.h

Issue 1133753003: Split gamepad provider from test runner controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « content/shell/renderer/test_runner/test_interfaces.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
(...skipping 12 matching lines...) Expand all
23 class WebGamepads; 23 class WebGamepads;
24 class WebHistoryItem; 24 class WebHistoryItem;
25 struct WebRect; 25 struct WebRect;
26 struct WebSize; 26 struct WebSize;
27 struct WebURLError; 27 struct WebURLError;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 class DeviceLightData; 32 class DeviceLightData;
33 class RendererGamepadProvider; 33 class GamepadController;
34 class WebTask; 34 class WebTask;
35 class WebTestProxyBase; 35 class WebTestProxyBase;
36 struct TestPreferences; 36 struct TestPreferences;
37 37
38 class WebTestDelegate { 38 class WebTestDelegate {
39 public: 39 public:
40 // Set and clear the edit command to execute on the next call to 40 // Set and clear the edit command to execute on the next call to
41 // WebViewClient::handleCurrentKeyboardEvent(). 41 // WebViewClient::handleCurrentKeyboardEvent().
42 virtual void ClearEditCommand() = 0; 42 virtual void ClearEditCommand() = 0;
43 virtual void SetEditCommand(const std::string& name, 43 virtual void SetEditCommand(const std::string& name,
44 const std::string& value) = 0; 44 const std::string& value) = 0;
45 45
46 // Sets gamepad provider to be used for tests. 46 // Sets gamepad provider to be used for tests.
47 virtual void SetGamepadProvider( 47 virtual void SetGamepadProvider(GamepadController* controller) = 0;
48 scoped_ptr<RendererGamepadProvider> provider) = 0;
49 48
50 // Set data to return when registering via 49 // Set data to return when registering via
51 // Platform::setDeviceLightListener(). 50 // Platform::setDeviceLightListener().
52 virtual void SetDeviceLightData(const double data) = 0; 51 virtual void SetDeviceLightData(const double data) = 0;
53 // Set data to return when registering via 52 // Set data to return when registering via
54 // Platform::setDeviceMotionListener(). 53 // Platform::setDeviceMotionListener().
55 virtual void SetDeviceMotionData(const blink::WebDeviceMotionData& data) = 0; 54 virtual void SetDeviceMotionData(const blink::WebDeviceMotionData& data) = 0;
56 // Set data to return when registering via 55 // Set data to return when registering via
57 // Platform::setDeviceOrientationListener(). 56 // Platform::setDeviceOrientationListener().
58 virtual void SetDeviceOrientationData( 57 virtual void SetDeviceOrientationData(
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 const GURL& origin, 201 const GURL& origin,
203 const GURL& embedding_origin) = 0; 202 const GURL& embedding_origin) = 0;
204 203
205 // Clear all the permissions set via SetPermission(). 204 // Clear all the permissions set via SetPermission().
206 virtual void ResetPermissions() = 0; 205 virtual void ResetPermissions() = 0;
207 }; 206 };
208 207
209 } // namespace content 208 } // namespace content
210 209
211 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 210 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_interfaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698