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

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

Issue 304403002: Gamepad: add test support for page visibility behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trivial rebase Created 6 years, 6 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 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_WEBTESTDELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_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 11 matching lines...) Expand all
22 class WebGamepad; 22 class WebGamepad;
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 RendererGamepadProvider;
32 class WebTask; 33 class WebTask;
33 class WebTestProxyBase; 34 class WebTestProxyBase;
34 struct TestPreferences; 35 struct TestPreferences;
35 36
36 class WebTestDelegate { 37 class WebTestDelegate {
37 public: 38 public:
38 // Set and clear the edit command to execute on the next call to 39 // Set and clear the edit command to execute on the next call to
39 // WebViewClient::handleCurrentKeyboardEvent(). 40 // WebViewClient::handleCurrentKeyboardEvent().
40 virtual void clearEditCommand() = 0; 41 virtual void clearEditCommand() = 0;
41 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0; 42 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0;
42 43
43 // Set the gamepads to return from Platform::sampleGamepads(). 44 // XXX cm
jam 2014/06/18 23:23:42 ?
44 virtual void setGamepadData(const blink::WebGamepads&) = 0; 45 virtual void setGamepadProvider(RendererGamepadProvider*) = 0;
45
46 // Notifies blink about a new gamepad.
47 virtual void didConnectGamepad(int index, const blink::WebGamepad&) = 0;
48
49 // Notifies blink that a gamepad has been disconnected.
50 virtual void didDisconnectGamepad(int index, const blink::WebGamepad&) = 0;
51 46
52 // Set data to return when registering via Platform::setDeviceMotionListener (). 47 // Set data to return when registering via Platform::setDeviceMotionListener ().
53 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; 48 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0;
54 // Set data to return when registering via Platform::setDeviceOrientationLis tener(). 49 // Set data to return when registering via Platform::setDeviceOrientationLis tener().
55 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0; 50 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0;
56 51
57 // Set orientation to set when registering via Platform::setScreenOrientatio nListener(). 52 // Set orientation to set when registering via Platform::setScreenOrientatio nListener().
58 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0; 53 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0;
59 54
60 // Reset the screen orientation data used for testing. 55 // Reset the screen orientation data used for testing.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual bool allowExternalPages() = 0; 153 virtual bool allowExternalPages() = 0;
159 154
160 // Returns a text dump the back/forward history for the WebView associated 155 // Returns a text dump the back/forward history for the WebView associated
161 // with the given WebTestProxyBase. 156 // with the given WebTestProxyBase.
162 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0; 157 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0;
163 }; 158 };
164 159
165 } // namespace content 160 } // namespace content
166 161
167 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 162 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698