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

Unified Diff: third_party/WebKit/Source/core/events/EventTarget.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Rebase. 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/events/EventTarget.cpp
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
index 0814cb3a6188a26a4510f353648aa3c1e4537e48..fc5d07dd42c589d9b08403fa5004666aeb85fddd 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -309,6 +309,11 @@ void EventTarget::addedEventListener(
UseCounter::count(executingWindow->document(),
UseCounter::AuxclickAddListenerCount);
}
+ } else if (eventType == EventTypeNames::appinstalled) {
+ if (LocalDOMWindow* executingWindow = this->executingWindow()) {
+ UseCounter::count(executingWindow->document(),
+ UseCounter::AppInstalledEventAddListener);
+ }
} else if (EventUtil::isPointerEventType(eventType)) {
if (LocalDOMWindow* executingWindow = this->executingWindow()) {
UseCounter::count(executingWindow->document(),
« no previous file with comments | « content/public/app/mojo/content_renderer_manifest.json ('k') | third_party/WebKit/Source/core/events/EventTypeNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698