Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: components/test_runner/web_test_delegate.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/test_runner/web_test_delegate.h
diff --git a/components/test_runner/web_test_delegate.h b/components/test_runner/web_test_delegate.h
index fe05b2f98b948232aab215efab7893d49baf5ac7..c309bd2d5f4a38c99e15227363c6005817bd5688 100644
--- a/components/test_runner/web_test_delegate.h
+++ b/components/test_runner/web_test_delegate.h
@@ -276,16 +276,20 @@ class WebTestDelegate {
virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
- // Causes the beforeinstallprompt event to be sent to the renderer with a
- // request id of |request_id|. |event_platforms| are the platforms to be sent
- // with the event. Once the event listener completes, |callback| will be
- // called with a boolean argument. This argument will be true if the event is
- // canceled, and false otherwise.
+ // Causes the beforeinstallprompt event to be sent to the renderer.
+ // |event_platforms| are the platforms to be sent with the event. Once the
+ // event listener completes, |callback| will be called with a boolean
+ // argument. This argument will be true if the event is canceled, and false
+ // otherwise.
virtual void DispatchBeforeInstallPromptEvent(
- int request_id,
const std::vector<std::string>& event_platforms,
const base::Callback<void(bool)>& callback) = 0;
+ // Resolves the in-flight beforeinstallprompt event userChoice promise with a
+ // platform of |platform|.
+ virtual void ResolveBeforeInstallPromptPromise(
+ const std::string& platform) = 0;
+
virtual blink::WebPlugin* CreatePluginPlaceholder(
blink::WebLocalFrame* frame,
const blink::WebPluginParams& params) = 0;
« no previous file with comments | « components/test_runner/test_runner_for_specific_view.cc ('k') | components/test_runner/web_test_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698