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

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

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Blink style. 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 fce55762b41d60740ebe853b59143a1b8a45b3a7..1301e1f96bd3e4e43bf6351fa1a618b15185d382 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