| 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 COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 callback) = 0; | 196 callback) = 0; |
| 197 | 197 |
| 198 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid | 198 // Calls the BluetoothChooser::EventHandler with the arguments here. Valid |
| 199 // event strings are: | 199 // event strings are: |
| 200 // * "cancel" - simulates the user canceling the chooser. | 200 // * "cancel" - simulates the user canceling the chooser. |
| 201 // * "select" - simulates the user selecting a device whose device ID is in | 201 // * "select" - simulates the user selecting a device whose device ID is in |
| 202 // |argument|. | 202 // |argument|. |
| 203 virtual void SendBluetoothManualChooserEvent(const std::string& event, | 203 virtual void SendBluetoothManualChooserEvent(const std::string& event, |
| 204 const std::string& argument) = 0; | 204 const std::string& argument) = 0; |
| 205 | 205 |
| 206 // Clears the bluetooth allowed devices map. |
| 207 virtual void ResetBluetoothAllowedDevicesMap() = 0; |
| 208 |
| 206 // Controls which WebView should be focused. | 209 // Controls which WebView should be focused. |
| 207 virtual void SetFocus(blink::WebView* web_view, bool focus) = 0; | 210 virtual void SetFocus(blink::WebView* web_view, bool focus) = 0; |
| 208 | 211 |
| 209 // Controls whether all cookies should be accepted or writing cookies in a | 212 // Controls whether all cookies should be accepted or writing cookies in a |
| 210 // third-party context is blocked. | 213 // third-party context is blocked. |
| 211 virtual void SetBlockThirdPartyCookies(bool block) = 0; | 214 virtual void SetBlockThirdPartyCookies(bool block) = 0; |
| 212 | 215 |
| 213 // The same as RewriteLayoutTestsURL unless the resource is a path starting | 216 // The same as RewriteLayoutTestsURL unless the resource is a path starting |
| 214 // with /tmp/, then return a file URL to a temporary file. | 217 // with /tmp/, then return a file URL to a temporary file. |
| 215 virtual std::string PathToLocalResource(const std::string& resource) = 0; | 218 virtual std::string PathToLocalResource(const std::string& resource) = 0; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 298 |
| 296 // PlzNavigate | 299 // PlzNavigate |
| 297 // Indicates if the navigation was initiated by the browser or renderer. | 300 // Indicates if the navigation was initiated by the browser or renderer. |
| 298 virtual bool IsNavigationInitiatedByRenderer( | 301 virtual bool IsNavigationInitiatedByRenderer( |
| 299 const blink::WebURLRequest& request) = 0; | 302 const blink::WebURLRequest& request) = 0; |
| 300 }; | 303 }; |
| 301 | 304 |
| 302 } // namespace test_runner | 305 } // namespace test_runner |
| 303 | 306 |
| 304 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 307 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |