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_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void SetScreenOrientation( | 63 virtual void SetScreenOrientation( |
64 const blink::WebScreenOrientationType& orientation) = 0; | 64 const blink::WebScreenOrientationType& orientation) = 0; |
65 | 65 |
66 // Reset the screen orientation data used for testing. | 66 // Reset the screen orientation data used for testing. |
67 virtual void ResetScreenOrientation() = 0; | 67 virtual void ResetScreenOrientation() = 0; |
68 | 68 |
69 // Notifies blink about a change in battery status. | 69 // Notifies blink about a change in battery status. |
70 virtual void DidChangeBatteryStatus( | 70 virtual void DidChangeBatteryStatus( |
71 const blink::WebBatteryStatus& status) = 0; | 71 const blink::WebBatteryStatus& status) = 0; |
72 | 72 |
| 73 // Sets second screen availability for the Presentation API. |
| 74 virtual void SetScreenAvailability(bool available) = 0; |
| 75 |
73 // Add a message to the text dump for the layout test. | 76 // Add a message to the text dump for the layout test. |
74 virtual void PrintMessage(const std::string& message) = 0; | 77 virtual void PrintMessage(const std::string& message) = 0; |
75 | 78 |
76 // The delegate takes ownership of the WebTask objects and is responsible | 79 // The delegate takes ownership of the WebTask objects and is responsible |
77 // for deleting them. | 80 // for deleting them. |
78 virtual void PostTask(WebTask* task) = 0; | 81 virtual void PostTask(WebTask* task) = 0; |
79 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; | 82 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; |
80 | 83 |
81 // Register a new isolated filesystem with the given files, and return the | 84 // Register a new isolated filesystem with the given files, and return the |
82 // new filesystem id. | 85 // new filesystem id. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 virtual bool AllowExternalPages() = 0; | 202 virtual bool AllowExternalPages() = 0; |
200 | 203 |
201 // Returns a text dump the back/forward history for the WebView associated | 204 // Returns a text dump the back/forward history for the WebView associated |
202 // with the given WebTestProxyBase. | 205 // with the given WebTestProxyBase. |
203 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 206 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
204 }; | 207 }; |
205 | 208 |
206 } // namespace content | 209 } // namespace content |
207 | 210 |
208 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 211 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |