| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 const base::Callback<void(bool)>& callback) = 0; | 269 const base::Callback<void(bool)>& callback) = 0; |
| 270 | 270 |
| 271 virtual blink::WebPlugin* CreatePluginPlaceholder( | 271 virtual blink::WebPlugin* CreatePluginPlaceholder( |
| 272 blink::WebLocalFrame* frame, | 272 blink::WebLocalFrame* frame, |
| 273 const blink::WebPluginParams& params) = 0; | 273 const blink::WebPluginParams& params) = 0; |
| 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 |
| 280 virtual void SetMockMonotonicTimeFunction( |
| 281 const base::Callback<double()>& time_function) const = 0; |
| 279 }; | 282 }; |
| 280 | 283 |
| 281 } // namespace test_runner | 284 } // namespace test_runner |
| 282 | 285 |
| 283 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 286 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |