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 | |
76 // Add a message to the text dump for the layout test. | 73 // Add a message to the text dump for the layout test. |
77 virtual void PrintMessage(const std::string& message) = 0; | 74 virtual void PrintMessage(const std::string& message) = 0; |
78 | 75 |
79 // The delegate takes ownership of the WebTask objects and is responsible | 76 // The delegate takes ownership of the WebTask objects and is responsible |
80 // for deleting them. | 77 // for deleting them. |
81 virtual void PostTask(WebTask* task) = 0; | 78 virtual void PostTask(WebTask* task) = 0; |
82 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; | 79 virtual void PostDelayedTask(WebTask* task, long long ms) = 0; |
83 | 80 |
84 // Register a new isolated filesystem with the given files, and return the | 81 // Register a new isolated filesystem with the given files, and return the |
85 // new filesystem id. | 82 // new filesystem id. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 virtual bool AllowExternalPages() = 0; | 199 virtual bool AllowExternalPages() = 0; |
203 | 200 |
204 // Returns a text dump the back/forward history for the WebView associated | 201 // Returns a text dump the back/forward history for the WebView associated |
205 // with the given WebTestProxyBase. | 202 // with the given WebTestProxyBase. |
206 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 203 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
207 }; | 204 }; |
208 | 205 |
209 } // namespace content | 206 } // namespace content |
210 | 207 |
211 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 208 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |