Chromium Code Reviews| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 | 146 |
| 147 // Controls the device scale factor of the main WebView for hidpi tests. | 147 // Controls the device scale factor of the main WebView for hidpi tests. |
| 148 virtual void SetDeviceScaleFactor(float factor) = 0; | 148 virtual void SetDeviceScaleFactor(float factor) = 0; |
| 149 | 149 |
| 150 // Change the device color profile while running a layout test. | 150 // Change the device color profile while running a layout test. |
| 151 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 151 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
| 152 | 152 |
| 153 // Change the bluetooth test data while running a layout test. | 153 // Change the bluetooth test data while running a layout test. |
| 154 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; | 154 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; |
| 155 | 155 |
| 156 // Enables mock geofencing service while running a layout test. | |
| 157 // |service_available| indicates if the mock service should mock geofencing | |
| 158 // being available or not. | |
| 159 virtual void SetGeofencingMockProvider(bool service_available) = 0; | |
| 160 // Disables mock geofencing service while running a layout test. | |
|
pfeldman
2014/12/10 08:59:52
ditto
Marijn Kruisselbrink
2014/12/10 18:13:37
Done.
| |
| 161 virtual void ClearGeofencingMockProvider() = 0; | |
| 162 // Set the mock geofencing position while running a layout test. | |
| 163 virtual void SetGeofencingMockPosition(double latitude, double longitude) = 0; | |
| 164 | |
| 156 // Controls which WebView should be focused. | 165 // Controls which WebView should be focused. |
| 157 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; | 166 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; |
| 158 | 167 |
| 159 // Controls whether all cookies should be accepted or writing cookies in a | 168 // Controls whether all cookies should be accepted or writing cookies in a |
| 160 // third-party context is blocked. | 169 // third-party context is blocked. |
| 161 virtual void SetAcceptAllCookies(bool accept) = 0; | 170 virtual void SetAcceptAllCookies(bool accept) = 0; |
| 162 | 171 |
| 163 // The same as RewriteLayoutTestsURL unless the resource is a path starting | 172 // The same as RewriteLayoutTestsURL unless the resource is a path starting |
| 164 // with /tmp/, then return a file URL to a temporary file. | 173 // with /tmp/, then return a file URL to a temporary file. |
| 165 virtual std::string PathToLocalResource(const std::string& resource) = 0; | 174 virtual std::string PathToLocalResource(const std::string& resource) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 188 virtual bool AllowExternalPages() = 0; | 197 virtual bool AllowExternalPages() = 0; |
| 189 | 198 |
| 190 // Returns a text dump the back/forward history for the WebView associated | 199 // Returns a text dump the back/forward history for the WebView associated |
| 191 // with the given WebTestProxyBase. | 200 // with the given WebTestProxyBase. |
| 192 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 201 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
| 193 }; | 202 }; |
| 194 | 203 |
| 195 } // namespace content | 204 } // namespace content |
| 196 | 205 |
| 197 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 206 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |