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