Chromium Code Reviews| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 virtual void ClearAllDatabases() = 0; | 149 virtual void ClearAllDatabases() = 0; |
| 150 virtual void SetDatabaseQuota(int quota) = 0; | 150 virtual void SetDatabaseQuota(int quota) = 0; |
| 151 | 151 |
| 152 // Controls Web Notifications. | 152 // Controls Web Notifications. |
| 153 virtual void SimulateWebNotificationClick(const std::string& title, | 153 virtual void SimulateWebNotificationClick(const std::string& title, |
| 154 int action_index) = 0; | 154 int action_index) = 0; |
| 155 virtual void SimulateWebNotificationClose(const std::string& title, | 155 virtual void SimulateWebNotificationClose(const std::string& title, |
| 156 bool by_user) = 0; | 156 bool by_user) = 0; |
| 157 | 157 |
| 158 // Controls the device scale factor of the main WebView for hidpi tests. | 158 // Controls the device scale factor of the main WebView for hidpi tests. |
| 159 virtual void SetDeviceScaleFactor(float factor) = 0; | 159 // Returns whether or not the use-zoom-for-dsf flag is enabled. |
|
oshima
2016/06/22 01:11:51
TODO(oshima): Remove return value when all platfor
Bret
2016/06/22 17:42:26
Added in TestRunnerForSpecificView since that's th
| |
| 160 virtual bool SetDeviceScaleFactor(float factor) = 0; | |
|
oshima
2016/06/22 01:11:51
I have a slight preference to have a separate IsUs
Bret
2016/06/22 17:42:27
I kinda like that better too, so I changed it.
| |
| 160 | 161 |
| 161 // Enable zoom-for-dsf option. | 162 // Enable zoom-for-dsf option. |
| 162 virtual void EnableUseZoomForDSF() = 0; | 163 virtual void EnableUseZoomForDSF() = 0; |
| 163 | 164 |
| 164 // Change the device color profile while running a layout test. | 165 // Change the device color profile while running a layout test. |
| 165 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 166 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
| 166 | 167 |
| 167 // Set the bluetooth adapter while running a layout test, uses Mojo to | 168 // Set the bluetooth adapter while running a layout test, uses Mojo to |
| 168 // communicate with the browser. | 169 // communicate with the browser. |
| 169 virtual void SetBluetoothFakeAdapter(const std::string& adapter_name, | 170 virtual void SetBluetoothFakeAdapter(const std::string& adapter_name, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 266 | 267 |
| 267 virtual float GetDeviceScaleFactorForTest() const = 0; | 268 virtual float GetDeviceScaleFactorForTest() const = 0; |
| 268 | 269 |
| 269 // Run all pending idle tasks, and then run callback. | 270 // Run all pending idle tasks, and then run callback. |
| 270 virtual void RunIdleTasks(const base::Closure& callback) = 0; | 271 virtual void RunIdleTasks(const base::Closure& callback) = 0; |
| 271 }; | 272 }; |
| 272 | 273 |
| 273 } // namespace test_runner | 274 } // namespace test_runner |
| 274 | 275 |
| 275 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 276 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |