| 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 CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 6 #define COMPONENTS_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> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
| 16 #include "third_party/WebKit/public/platform/WebVector.h" | 16 #include "third_party/WebKit/public/platform/WebVector.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 virtual void DispatchBeforeInstallPromptEvent( | 274 virtual void DispatchBeforeInstallPromptEvent( |
| 275 const std::vector<std::string>& event_platforms, | 275 const std::vector<std::string>& event_platforms, |
| 276 const base::Callback<void(bool)>& callback) = 0; | 276 const base::Callback<void(bool)>& callback) = 0; |
| 277 | 277 |
| 278 // Resolves the in-flight beforeinstallprompt event userChoice promise with a | 278 // Resolves the in-flight beforeinstallprompt event userChoice promise with a |
| 279 // platform of |platform|. | 279 // platform of |platform|. |
| 280 virtual void ResolveBeforeInstallPromptPromise( | 280 virtual void ResolveBeforeInstallPromptPromise( |
| 281 const std::string& platform) = 0; | 281 const std::string& platform) = 0; |
| 282 | 282 |
| 283 virtual blink::WebPlugin* CreatePluginPlaceholder( | 283 virtual blink::WebPlugin* CreatePluginPlaceholder( |
| 284 blink::WebLocalFrame* frame, | 284 blink::WebLocalFrame* frame, |
| 285 const blink::WebPluginParams& params) = 0; | 285 const blink::WebPluginParams& params) = 0; |
| 286 | 286 |
| 287 virtual float GetDeviceScaleFactor() const = 0; | 287 virtual float GetDeviceScaleFactor() const = 0; |
| 288 | 288 |
| 289 // Run all pending idle tasks, and then run callback. | 289 // Run all pending idle tasks, and then run callback. |
| 290 virtual void RunIdleTasks(const base::Closure& callback) = 0; | 290 virtual void RunIdleTasks(const base::Closure& callback) = 0; |
| 291 | 291 |
| 292 // Forces a text input state update for the client of WebFrameWidget | 292 // Forces a text input state update for the client of WebFrameWidget |
| 293 // associated with |frame|. | 293 // associated with |frame|. |
| 294 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0; | 294 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0; |
| 295 | 295 |
| 296 // PlzNavigate | 296 // PlzNavigate |
| 297 // Indicates if the navigation was initiated by the browser or renderer. | 297 // Indicates if the navigation was initiated by the browser or renderer. |
| 298 virtual bool IsNavigationInitiatedByRenderer( | 298 virtual bool IsNavigationInitiatedByRenderer( |
| 299 const blink::WebURLRequest& request) = 0; | 299 const blink::WebURLRequest& request) = 0; |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 } // namespace test_runner | 302 } // namespace test_runner |
| 303 | 303 |
| 304 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 304 #endif // CONTENT_SHELL_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |