| 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_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 virtual void DispatchBeforeInstallPromptEvent( | 278 virtual void DispatchBeforeInstallPromptEvent( |
| 279 const std::vector<std::string>& event_platforms, | 279 const std::vector<std::string>& event_platforms, |
| 280 const base::Callback<void(bool)>& callback) = 0; | 280 const base::Callback<void(bool)>& callback) = 0; |
| 281 | 281 |
| 282 // Resolves the in-flight beforeinstallprompt event userChoice promise with a | 282 // Resolves the in-flight beforeinstallprompt event userChoice promise with a |
| 283 // platform of |platform|. | 283 // platform of |platform|. |
| 284 virtual void ResolveBeforeInstallPromptPromise( | 284 virtual void ResolveBeforeInstallPromptPromise( |
| 285 const std::string& platform) = 0; | 285 const std::string& platform) = 0; |
| 286 | 286 |
| 287 virtual blink::WebPlugin* CreatePluginPlaceholder( | 287 virtual blink::WebPlugin* CreatePluginPlaceholder( |
| 288 blink::WebLocalFrame* frame, | |
| 289 const blink::WebPluginParams& params) = 0; | 288 const blink::WebPluginParams& params) = 0; |
| 290 | 289 |
| 291 virtual float GetDeviceScaleFactor() const = 0; | 290 virtual float GetDeviceScaleFactor() const = 0; |
| 292 | 291 |
| 293 // Run all pending idle tasks, and then run callback. | 292 // Run all pending idle tasks, and then run callback. |
| 294 virtual void RunIdleTasks(const base::Closure& callback) = 0; | 293 virtual void RunIdleTasks(const base::Closure& callback) = 0; |
| 295 | 294 |
| 296 // Forces a text input state update for the client of WebFrameWidget | 295 // Forces a text input state update for the client of WebFrameWidget |
| 297 // associated with |frame|. | 296 // associated with |frame|. |
| 298 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0; | 297 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0; |
| 299 | 298 |
| 300 // PlzNavigate | 299 // PlzNavigate |
| 301 // Indicates if the navigation was initiated by the browser or renderer. | 300 // Indicates if the navigation was initiated by the browser or renderer. |
| 302 virtual bool IsNavigationInitiatedByRenderer( | 301 virtual bool IsNavigationInitiatedByRenderer( |
| 303 const blink::WebURLRequest& request) = 0; | 302 const blink::WebURLRequest& request) = 0; |
| 303 |
| 304 protected: |
| 305 virtual ~WebTestDelegate() {} |
| 304 }; | 306 }; |
| 305 | 307 |
| 306 } // namespace test_runner | 308 } // namespace test_runner |
| 307 | 309 |
| 308 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 310 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |