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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // * "select" - simulates the user selecting a device whose device ID is in | 193 // * "select" - simulates the user selecting a device whose device ID is in |
194 // |argument|. | 194 // |argument|. |
195 virtual void SendBluetoothManualChooserEvent(const std::string& event, | 195 virtual void SendBluetoothManualChooserEvent(const std::string& event, |
196 const std::string& argument) = 0; | 196 const std::string& argument) = 0; |
197 | 197 |
198 // Controls which WebView should be focused. | 198 // Controls which WebView should be focused. |
199 virtual void SetFocus(blink::WebView* web_view, bool focus) = 0; | 199 virtual void SetFocus(blink::WebView* web_view, bool focus) = 0; |
200 | 200 |
201 // Controls whether all cookies should be accepted or writing cookies in a | 201 // Controls whether all cookies should be accepted or writing cookies in a |
202 // third-party context is blocked. | 202 // third-party context is blocked. |
203 virtual void SetAcceptAllCookies(bool accept) = 0; | 203 virtual void SetBlockThirdPartyCookies(bool block) = 0; |
204 | 204 |
205 // The same as RewriteLayoutTestsURL unless the resource is a path starting | 205 // The same as RewriteLayoutTestsURL unless the resource is a path starting |
206 // with /tmp/, then return a file URL to a temporary file. | 206 // with /tmp/, then return a file URL to a temporary file. |
207 virtual std::string PathToLocalResource(const std::string& resource) = 0; | 207 virtual std::string PathToLocalResource(const std::string& resource) = 0; |
208 | 208 |
209 // Sets the POSIX locale of the current process. | 209 // Sets the POSIX locale of the current process. |
210 virtual void SetLocale(const std::string& locale) = 0; | 210 virtual void SetLocale(const std::string& locale) = 0; |
211 | 211 |
212 // Invoked when layout test runtime flags change. | 212 // Invoked when layout test runtime flags change. |
213 virtual void OnLayoutTestRuntimeFlagsChanged( | 213 virtual void OnLayoutTestRuntimeFlagsChanged( |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 274 |
275 virtual float GetDeviceScaleFactor() const = 0; | 275 virtual float GetDeviceScaleFactor() const = 0; |
276 | 276 |
277 // Run all pending idle tasks, and then run callback. | 277 // Run all pending idle tasks, and then run callback. |
278 virtual void RunIdleTasks(const base::Closure& callback) = 0; | 278 virtual void RunIdleTasks(const base::Closure& callback) = 0; |
279 }; | 279 }; |
280 | 280 |
281 } // namespace test_runner | 281 } // namespace test_runner |
282 | 282 |
283 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 283 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |