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

Unified Diff: Source/modules/app_banner/BeforeInstallPromptEvent.h

Issue 1160413004: Add hooks for BeforeInstallPromptEvent to be redispatched. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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: Source/modules/app_banner/BeforeInstallPromptEvent.h
diff --git a/Source/modules/app_banner/BeforeInstallPromptEvent.h b/Source/modules/app_banner/BeforeInstallPromptEvent.h
index 3a7aac581fe5f812821d1d266184e72aa56fa4dc..ad9a23268d40c4b7f9fcb30484802325c3c3645f 100644
--- a/Source/modules/app_banner/BeforeInstallPromptEvent.h
+++ b/Source/modules/app_banner/BeforeInstallPromptEvent.h
@@ -40,6 +40,10 @@ public:
virtual const AtomicString& interfaceName() const override;
+ // This is called after the site has first called preventDefault(), and now
+ // wishes to redispatch the event at a later point in their own context.
mlamouri (slow - plz ping) 2015/06/06 21:40:55 I don't think this comment is useful. prompt() is
+ void prompt();
+
private:
BeforeInstallPromptEvent();
BeforeInstallPromptEvent(const AtomicString& name, const Vector<String>& platforms, int requestId, WebAppBannerClient*);
@@ -50,6 +54,7 @@ private:
int m_requestId;
WebAppBannerClient* m_client;
+ bool m_redispatched;
};
DEFINE_TYPE_CASTS(BeforeInstallPromptEvent, Event, event, event->interfaceName() == EventNames::BeforeInstallPromptEvent, event.interfaceName() == EventNames::BeforeInstallPromptEvent);

Powered by Google App Engine
This is Rietveld 408576698