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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Controls WebSQL databases. | 134 // Controls WebSQL databases. |
135 virtual void ClearAllDatabases() = 0; | 135 virtual void ClearAllDatabases() = 0; |
136 virtual void SetDatabaseQuota(int quota) = 0; | 136 virtual void SetDatabaseQuota(int quota) = 0; |
137 | 137 |
138 // Controls Web Notification permissions. | 138 // Controls Web Notification permissions. |
139 virtual blink::WebNotificationPresenter::Permission | 139 virtual blink::WebNotificationPresenter::Permission |
140 CheckWebNotificationPermission(const GURL& origin) = 0; | 140 CheckWebNotificationPermission(const GURL& origin) = 0; |
141 virtual void GrantWebNotificationPermission(const GURL& origin, | 141 virtual void GrantWebNotificationPermission(const GURL& origin, |
142 bool permission_granted) = 0; | 142 bool permission_granted) = 0; |
143 virtual void ClearWebNotificationPermissions() = 0; | 143 virtual void ClearWebNotificationPermissions() = 0; |
| 144 virtual void SimulateWebNotificationClick(const std::string& title) = 0; |
144 | 145 |
145 // Controls the device scale factor of the main WebView for hidpi tests. | 146 // Controls the device scale factor of the main WebView for hidpi tests. |
146 virtual void SetDeviceScaleFactor(float factor) = 0; | 147 virtual void SetDeviceScaleFactor(float factor) = 0; |
147 | 148 |
148 // Change the device color profile while running a layout test. | 149 // Change the device color profile while running a layout test. |
149 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 150 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
150 | 151 |
151 // Controls which WebView should be focused. | 152 // Controls which WebView should be focused. |
152 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; | 153 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0; |
153 | 154 |
(...skipping 29 matching lines...) Expand all Loading... |
183 virtual bool AllowExternalPages() = 0; | 184 virtual bool AllowExternalPages() = 0; |
184 | 185 |
185 // Returns a text dump the back/forward history for the WebView associated | 186 // Returns a text dump the back/forward history for the WebView associated |
186 // with the given WebTestProxyBase. | 187 // with the given WebTestProxyBase. |
187 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 188 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
188 }; | 189 }; |
189 | 190 |
190 } // namespace content | 191 } // namespace content |
191 | 192 |
192 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 193 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
OLD | NEW |