| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Enable zoom-for-dsf option. | 127 // Enable zoom-for-dsf option. |
| 128 // TODO(oshima): Remove this once all platforms migrated. | 128 // TODO(oshima): Remove this once all platforms migrated. |
| 129 void EnableUseZoomForDSF(v8::Local<v8::Function> callback); | 129 void EnableUseZoomForDSF(v8::Local<v8::Function> callback); |
| 130 | 130 |
| 131 // Change the device color profile while running a layout test. | 131 // Change the device color profile while running a layout test. |
| 132 void SetColorProfile(const std::string& name, | 132 void SetColorProfile(const std::string& name, |
| 133 v8::Local<v8::Function> callback); | 133 v8::Local<v8::Function> callback); |
| 134 | 134 |
| 135 // Causes the beforeinstallprompt event to be sent to the renderer. | 135 // Causes the beforeinstallprompt event to be sent to the renderer. |
| 136 void DispatchBeforeInstallPromptEvent( | 136 void DispatchBeforeInstallPromptEvent( |
| 137 int request_id, | |
| 138 const std::vector<std::string>& event_platforms, | 137 const std::vector<std::string>& event_platforms, |
| 139 v8::Local<v8::Function> callback); | 138 v8::Local<v8::Function> callback); |
| 140 void DispatchBeforeInstallPromptCallback( | 139 void DispatchBeforeInstallPromptCallback( |
| 141 v8::UniquePersistent<v8::Function> callback, | 140 v8::UniquePersistent<v8::Function> callback, |
| 142 bool canceled); | 141 bool canceled); |
| 143 | 142 |
| 144 // Immediately run all pending idle tasks, including all pending | 143 // Immediately run all pending idle tasks, including all pending |
| 145 // requestIdleCallback calls. Invoke the callback when all | 144 // requestIdleCallback calls. Invoke the callback when all |
| 146 // idle tasks are complete. | 145 // idle tasks are complete. |
| 147 void RunIdleTasks(v8::Local<v8::Function> callback); | 146 void RunIdleTasks(v8::Local<v8::Function> callback); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 WebViewTestProxyBase* web_view_test_proxy_base_; | 222 WebViewTestProxyBase* web_view_test_proxy_base_; |
| 224 | 223 |
| 225 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; | 224 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; |
| 226 | 225 |
| 227 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); | 226 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); |
| 228 }; | 227 }; |
| 229 | 228 |
| 230 } // namespace test_runner | 229 } // namespace test_runner |
| 231 | 230 |
| 232 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 231 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| OLD | NEW |