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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 virtual std::string EvaluateInWebInspectorOverlay( | 150 virtual std::string EvaluateInWebInspectorOverlay( |
151 const std::string& script) = 0; | 151 const std::string& script) = 0; |
152 | 152 |
153 // Controls WebSQL databases. | 153 // Controls WebSQL databases. |
154 virtual void ClearAllDatabases() = 0; | 154 virtual void ClearAllDatabases() = 0; |
155 virtual void SetDatabaseQuota(int quota) = 0; | 155 virtual void SetDatabaseQuota(int quota) = 0; |
156 | 156 |
157 // Controls Web Notifications. | 157 // Controls Web Notifications. |
158 virtual void SimulateWebNotificationClick(const std::string& title, | 158 virtual void SimulateWebNotificationClick(const std::string& title, |
159 int action_index) = 0; | 159 int action_index) = 0; |
| 160 virtual void SimulateWebNotificationClose(const std::string& title, |
| 161 bool by_user) = 0; |
160 | 162 |
161 // Controls the device scale factor of the main WebView for hidpi tests. | 163 // Controls the device scale factor of the main WebView for hidpi tests. |
162 virtual void SetDeviceScaleFactor(float factor) = 0; | 164 virtual void SetDeviceScaleFactor(float factor) = 0; |
163 | 165 |
164 // Enable zoom-for-dsf option. | 166 // Enable zoom-for-dsf option. |
165 virtual void EnableUseZoomForDSF() = 0; | 167 virtual void EnableUseZoomForDSF() = 0; |
166 | 168 |
167 // Change the device color profile while running a layout test. | 169 // Change the device color profile while running a layout test. |
168 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 170 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
169 | 171 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; | 288 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; |
287 | 289 |
288 // Convert the position in DIP to native coordinates. | 290 // Convert the position in DIP to native coordinates. |
289 virtual blink::WebPoint ConvertDIPToNative( | 291 virtual blink::WebPoint ConvertDIPToNative( |
290 const blink::WebPoint& point_in_dip) const = 0; | 292 const blink::WebPoint& point_in_dip) const = 0; |
291 }; | 293 }; |
292 | 294 |
293 } // namespace test_runner | 295 } // namespace test_runner |
294 | 296 |
295 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 297 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |