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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 // Evaluate the given script in the DevTools agent. | 143 // Evaluate the given script in the DevTools agent. |
144 virtual void EvaluateInWebInspector(long call_id, | 144 virtual void EvaluateInWebInspector(long call_id, |
145 const std::string& script) = 0; | 145 const std::string& script) = 0; |
146 | 146 |
147 // Controls WebSQL databases. | 147 // Controls WebSQL databases. |
148 virtual void ClearAllDatabases() = 0; | 148 virtual void ClearAllDatabases() = 0; |
149 virtual void SetDatabaseQuota(int quota) = 0; | 149 virtual void SetDatabaseQuota(int quota) = 0; |
150 | 150 |
151 // Controls Web Notifications. | 151 // Controls Web Notifications. |
152 virtual void SimulateWebNotificationClick(const std::string& title) = 0; | 152 virtual void SimulateWebNotificationClick(const std::string& title, |
| 153 int action_index) = 0; |
153 | 154 |
154 // Controls the device scale factor of the main WebView for hidpi tests. | 155 // Controls the device scale factor of the main WebView for hidpi tests. |
155 virtual void SetDeviceScaleFactor(float factor) = 0; | 156 virtual void SetDeviceScaleFactor(float factor) = 0; |
156 | 157 |
157 // Change the device color profile while running a layout test. | 158 // Change the device color profile while running a layout test. |
158 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 159 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
159 | 160 |
160 // Change the bluetooth test data while running a layout test. | 161 // Change the bluetooth test data while running a layout test. |
161 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; | 162 virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0; |
162 | 163 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 const std::string& platform) = 0; | 256 const std::string& platform) = 0; |
256 | 257 |
257 virtual blink::WebPlugin* CreatePluginPlaceholder( | 258 virtual blink::WebPlugin* CreatePluginPlaceholder( |
258 blink::WebLocalFrame* frame, | 259 blink::WebLocalFrame* frame, |
259 const blink::WebPluginParams& params) = 0; | 260 const blink::WebPluginParams& params) = 0; |
260 }; | 261 }; |
261 | 262 |
262 } // namespace test_runner | 263 } // namespace test_runner |
263 | 264 |
264 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 265 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |