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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Respond to review / fix compile. Created 4 years 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: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index eff2a0ca095333329cdc9880221ce0fc37ee5136..ac23b156c513d1c0c58b9280087f5edd92b96516 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -861,6 +861,10 @@ bool LocalFrame::shouldThrottleRendering() const {
return view() && view()->shouldThrottleRendering();
}
+void LocalFrame::onAppInstalled() {
+ m_domWindow->dispatchEvent(Event::create(EventTypeNames::appinstalled));
+}
+
inline LocalFrame::LocalFrame(FrameLoaderClient* client,
FrameHost* host,
FrameOwner* owner,

Powered by Google App Engine
This is Rietveld 408576698