| 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" |
| 11 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
| 12 #include "third_party/WebKit/public/platform/WebURL.h" | 12 #include "third_party/WebKit/public/platform/WebURL.h" |
| 13 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
| 14 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" | |
| 15 | 14 |
| 16 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE | 15 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE |
| 17 | 16 |
| 18 namespace blink { | 17 namespace blink { |
| 19 class WebBatteryStatus; | 18 class WebBatteryStatus; |
| 20 class WebDeviceMotionData; | 19 class WebDeviceMotionData; |
| 21 class WebDeviceOrientationData; | 20 class WebDeviceOrientationData; |
| 22 class WebFrame; | 21 class WebFrame; |
| 23 class WebGamepad; | 22 class WebGamepad; |
| 24 class WebGamepads; | 23 class WebGamepads; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 virtual void CloseDevTools() = 0; | 127 virtual void CloseDevTools() = 0; |
| 129 | 128 |
| 130 // Evaluate the given script in the DevTools agent. | 129 // Evaluate the given script in the DevTools agent. |
| 131 virtual void EvaluateInWebInspector(long call_id, | 130 virtual void EvaluateInWebInspector(long call_id, |
| 132 const std::string& script) = 0; | 131 const std::string& script) = 0; |
| 133 | 132 |
| 134 // Controls WebSQL databases. | 133 // Controls WebSQL databases. |
| 135 virtual void ClearAllDatabases() = 0; | 134 virtual void ClearAllDatabases() = 0; |
| 136 virtual void SetDatabaseQuota(int quota) = 0; | 135 virtual void SetDatabaseQuota(int quota) = 0; |
| 137 | 136 |
| 138 // Controls Web Notification permissions. | 137 // Controls Web Notifications. |
| 139 virtual blink::WebNotificationPresenter::Permission | |
| 140 CheckWebNotificationPermission(const GURL& origin) = 0; | |
| 141 virtual void GrantWebNotificationPermission(const GURL& origin, | 138 virtual void GrantWebNotificationPermission(const GURL& origin, |
| 142 bool permission_granted) = 0; | 139 bool permission_granted) = 0; |
| 143 virtual void ClearWebNotificationPermissions() = 0; | 140 virtual void ClearWebNotificationPermissions() = 0; |
| 144 virtual void SimulateWebNotificationClick(const std::string& title) = 0; | 141 virtual void SimulateWebNotificationClick(const std::string& title) = 0; |
| 145 | 142 |
| 146 // Controls the device scale factor of the main WebView for hidpi tests. | 143 // Controls the device scale factor of the main WebView for hidpi tests. |
| 147 virtual void SetDeviceScaleFactor(float factor) = 0; | 144 virtual void SetDeviceScaleFactor(float factor) = 0; |
| 148 | 145 |
| 149 // Change the device color profile while running a layout test. | 146 // Change the device color profile while running a layout test. |
| 150 virtual void SetDeviceColorProfile(const std::string& name) = 0; | 147 virtual void SetDeviceColorProfile(const std::string& name) = 0; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 virtual bool AllowExternalPages() = 0; | 184 virtual bool AllowExternalPages() = 0; |
| 188 | 185 |
| 189 // 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 |
| 190 // with the given WebTestProxyBase. | 187 // with the given WebTestProxyBase. |
| 191 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; | 188 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) = 0; |
| 192 }; | 189 }; |
| 193 | 190 |
| 194 } // namespace content | 191 } // namespace content |
| 195 | 192 |
| 196 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 193 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |