OLD | NEW |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void didDisconnectGamepad(int index, const blink::WebGamepad&) = 0; | 49 virtual void didDisconnectGamepad(int index, const blink::WebGamepad&) = 0; |
50 | 50 |
51 // Set data to return when registering via Platform::setDeviceMotionListener
(). | 51 // Set data to return when registering via Platform::setDeviceMotionListener
(). |
52 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; | 52 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; |
53 // Set data to return when registering via Platform::setDeviceOrientationLis
tener(). | 53 // Set data to return when registering via Platform::setDeviceOrientationLis
tener(). |
54 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData&
) = 0; | 54 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData&
) = 0; |
55 | 55 |
56 // Set orientation to set when registering via Platform::setScreenOrientatio
nListener(). | 56 // Set orientation to set when registering via Platform::setScreenOrientatio
nListener(). |
57 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) =
0; | 57 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) =
0; |
58 | 58 |
| 59 // Reset the screen orientation data used for testing. |
| 60 virtual void resetScreenOrientation() = 0; |
| 61 |
59 // Add a message to the text dump for the layout test. | 62 // Add a message to the text dump for the layout test. |
60 virtual void printMessage(const std::string& message) = 0; | 63 virtual void printMessage(const std::string& message) = 0; |
61 | 64 |
62 // The delegate takes ownership of the WebTask objects and is responsible | 65 // The delegate takes ownership of the WebTask objects and is responsible |
63 // for deleting them. | 66 // for deleting them. |
64 virtual void postTask(WebTask*) = 0; | 67 virtual void postTask(WebTask*) = 0; |
65 virtual void postDelayedTask(WebTask*, long long ms) = 0; | 68 virtual void postDelayedTask(WebTask*, long long ms) = 0; |
66 | 69 |
67 // Register a new isolated filesystem with the given files, and return the | 70 // Register a new isolated filesystem with the given files, and return the |
68 // new filesystem id. | 71 // new filesystem id. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual bool allowExternalPages() = 0; | 154 virtual bool allowExternalPages() = 0; |
152 | 155 |
153 // Returns a text dump the back/forward history for the WebView associated | 156 // Returns a text dump the back/forward history for the WebView associated |
154 // with the given WebTestProxyBase. | 157 // with the given WebTestProxyBase. |
155 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0; | 158 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0; |
156 }; | 159 }; |
157 | 160 |
158 } // namespace content | 161 } // namespace content |
159 | 162 |
160 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ | 163 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ |
OLD | NEW |