| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool permission_granted) = 0; | 142 bool permission_granted) = 0; |
| 143 virtual void ClearWebNotificationPermissions() = 0; | 143 virtual void ClearWebNotificationPermissions() = 0; |
| 144 virtual void SimulateWebNotificationClick(const std::string& title) = 0; | 144 virtual void SimulateWebNotificationClick(const std::string& title) = 0; |
| 145 | 145 |
| 146 // Controls the device scale factor of the main WebView for hidpi tests. | 146 // Controls the device scale factor of the main WebView for hidpi tests. |
| 147 virtual void SetDeviceScaleFactor(float factor) = 0; | 147 virtual void SetDeviceScaleFactor(float factor) = 0; |
| 148 | 148 |
| 149 // Change the device color profile while running a layout test. | 149 // Change the device color profile while running a layout test. |
| 150 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 150 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
| 151 | 151 |
| 152 // Change the bluetooth test data while running a layout test. |
| 153 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; |
| 154 |
| 152 // Controls which WebView should be focused. | 155 // Controls which WebView should be focused. |
| 153 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; | 156 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; |
| 154 | 157 |
| 155 // Controls whether all cookies should be accepted or writing cookies in a | 158 // Controls whether all cookies should be accepted or writing cookies in a |
| 156 // third-party context is blocked. | 159 // third-party context is blocked. |
| 157 virtual void SetAcceptAllCookies(bool accept) = 0; | 160 virtual void SetAcceptAllCookies(bool accept) = 0; |
| 158 | 161 |
| 159 // The same as RewriteLayoutTestsURL unless the resource is a path starting | 162 // The same as RewriteLayoutTestsURL unless the resource is a path starting |
| 160 // with /tmp/, then return a file URL to a temporary file. | 163 // with /tmp/, then return a file URL to a temporary file. |
| 161 virtual std::string PathToLocalResource(const std::string& resource) = 0; | 164 virtual std::string PathToLocalResource(const std::string& resource) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 184 virtual bool AllowExternalPages() = 0; | 187 virtual bool AllowExternalPages() = 0; |
| 185 | 188 |
| 186 // Returns a text dump the back/forward history for the WebView associated | 189 // Returns a text dump the back/forward history for the WebView associated |
| 187 // with the given WebTestProxyBase. | 190 // with the given WebTestProxyBase. |
| 188 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 191 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
| 189 }; | 192 }; |
| 190 | 193 |
| 191 } // namespace content | 194 } // namespace content |
| 192 | 195 |
| 193 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 196 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |