| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Set data to return when registering via | 76 // Set data to return when registering via |
| 77 // Platform::setDeviceOrientationListener(). | 77 // Platform::setDeviceOrientationListener(). |
| 78 virtual void SetDeviceOrientationData( | 78 virtual void SetDeviceOrientationData( |
| 79 const blink::WebDeviceOrientationData& data) = 0; | 79 const blink::WebDeviceOrientationData& data) = 0; |
| 80 | 80 |
| 81 // Add a message to the text dump for the layout test. | 81 // Add a message to the text dump for the layout test. |
| 82 virtual void PrintMessage(const std::string& message) = 0; | 82 virtual void PrintMessage(const std::string& message) = 0; |
| 83 | 83 |
| 84 // The delegate takes ownership of the WebTask objects and is responsible | 84 // The delegate takes ownership of the WebTask objects and is responsible |
| 85 // for deleting them. | 85 // for deleting them. |
| 86 virtual void PostTask(blink::WebTaskRunner::Task* task) = 0; | 86 virtual void PostTask(const base::Closure& task) = 0; |
| 87 virtual void PostDelayedTask(blink::WebTaskRunner::Task* task, | 87 virtual void PostDelayedTask(const base::Closure& task, long long ms) = 0; |
| 88 long long ms) = 0; | |
| 89 | 88 |
| 90 // Register a new isolated filesystem with the given files, and return the | 89 // Register a new isolated filesystem with the given files, and return the |
| 91 // new filesystem id. | 90 // new filesystem id. |
| 92 virtual blink::WebString RegisterIsolatedFileSystem( | 91 virtual blink::WebString RegisterIsolatedFileSystem( |
| 93 const blink::WebVector<blink::WebString>& absolute_filenames) = 0; | 92 const blink::WebVector<blink::WebString>& absolute_filenames) = 0; |
| 94 | 93 |
| 95 // Gets the current time in milliseconds since the UNIX epoch. | 94 // Gets the current time in milliseconds since the UNIX epoch. |
| 96 virtual long long GetCurrentTimeInMillisecond() = 0; | 95 virtual long long GetCurrentTimeInMillisecond() = 0; |
| 97 | 96 |
| 98 // Convert the provided relative path into an absolute path. | 97 // Convert the provided relative path into an absolute path. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 273 |
| 275 virtual float GetDeviceScaleFactor() const = 0; | 274 virtual float GetDeviceScaleFactor() const = 0; |
| 276 | 275 |
| 277 // Run all pending idle tasks, and then run callback. | 276 // Run all pending idle tasks, and then run callback. |
| 278 virtual void RunIdleTasks(const base::Closure& callback) = 0; | 277 virtual void RunIdleTasks(const base::Closure& callback) = 0; |
| 279 }; | 278 }; |
| 280 | 279 |
| 281 } // namespace test_runner | 280 } // namespace test_runner |
| 282 | 281 |
| 283 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 282 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |