| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 virtual void TestFinished() = 0; | 224 virtual void TestFinished() = 0; |
| 225 | 225 |
| 226 // Invoked when the embedder should close all but the main WebView. | 226 // Invoked when the embedder should close all but the main WebView. |
| 227 virtual void CloseRemainingWindows() = 0; | 227 virtual void CloseRemainingWindows() = 0; |
| 228 | 228 |
| 229 virtual void DeleteAllCookies() = 0; | 229 virtual void DeleteAllCookies() = 0; |
| 230 | 230 |
| 231 // Returns the length of the back/forward history of the main WebView. | 231 // Returns the length of the back/forward history of the main WebView. |
| 232 virtual int NavigationEntryCount() = 0; | 232 virtual int NavigationEntryCount() = 0; |
| 233 | 233 |
| 234 // The following trigger navigations on the main WebViwe. | 234 // The following trigger navigations on the main WebView. |
| 235 virtual void GoToOffset(int offset) = 0; | 235 virtual void GoToOffset(int offset) = 0; |
| 236 virtual void Reload() = 0; | 236 virtual void Reload() = 0; |
| 237 virtual void LoadURLForFrame(const blink::WebURL& url, | 237 virtual void LoadURLForFrame(const blink::WebURL& url, |
| 238 const std::string& frame_name) = 0; | 238 const std::string& frame_name) = 0; |
| 239 | 239 |
| 240 // Returns true if resource requests to external URLs should be permitted. | 240 // Returns true if resource requests to external URLs should be permitted. |
| 241 virtual bool AllowExternalPages() = 0; | 241 virtual bool AllowExternalPages() = 0; |
| 242 | 242 |
| 243 // Returns a text dump the back/forward history for the WebView associated | 243 // Returns a text dump the back/forward history for the WebView associated |
| 244 // with the given WebTestProxyBase. | 244 // with the given WebTestProxyBase. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // to |platform|. If |platform| is not empty, result.outcome will be | 284 // to |platform|. If |platform| is not empty, result.outcome will be |
| 285 // 'accepted', otherwise it will be 'dismissed'. | 285 // 'accepted', otherwise it will be 'dismissed'. |
| 286 virtual void ResolveBeforeInstallPromptPromise( | 286 virtual void ResolveBeforeInstallPromptPromise( |
| 287 int request_id, | 287 int request_id, |
| 288 const std::string& platform) = 0; | 288 const std::string& platform) = 0; |
| 289 | 289 |
| 290 virtual blink::WebPlugin* CreatePluginPlaceholder( | 290 virtual blink::WebPlugin* CreatePluginPlaceholder( |
| 291 blink::WebLocalFrame* frame, | 291 blink::WebLocalFrame* frame, |
| 292 const blink::WebPluginParams& params) = 0; | 292 const blink::WebPluginParams& params) = 0; |
| 293 | 293 |
| 294 virtual void OnWebTestProxyBaseDestroy(WebTestProxyBase* proxy) = 0; | |
| 295 | |
| 296 // Convert the position in DIP to native coordinates. | 294 // Convert the position in DIP to native coordinates. |
| 297 virtual blink::WebPoint ConvertDIPToNative( | 295 virtual blink::WebPoint ConvertDIPToNative( |
| 298 const blink::WebPoint& point_in_dip) const = 0; | 296 const blink::WebPoint& point_in_dip) const = 0; |
| 299 }; | 297 }; |
| 300 | 298 |
| 301 } // namespace test_runner | 299 } // namespace test_runner |
| 302 | 300 |
| 303 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 301 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |