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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 } 302 }
303 303
304 void EventTarget::addedEventListener( 304 void EventTarget::addedEventListener(
305 const AtomicString& eventType, 305 const AtomicString& eventType,
306 RegisteredEventListener& registeredListener) { 306 RegisteredEventListener& registeredListener) {
307 if (eventType == EventTypeNames::auxclick) { 307 if (eventType == EventTypeNames::auxclick) {
308 if (LocalDOMWindow* executingWindow = this->executingWindow()) { 308 if (LocalDOMWindow* executingWindow = this->executingWindow()) {
309 UseCounter::count(executingWindow->document(), 309 UseCounter::count(executingWindow->document(),
310 UseCounter::AuxclickAddListenerCount); 310 UseCounter::AuxclickAddListenerCount);
311 } 311 }
312 } else if (eventType == EventTypeNames::appinstalled) {
313 if (LocalDOMWindow* executingWindow = this->executingWindow()) {
314 UseCounter::count(executingWindow->document(),
315 UseCounter::AppInstalledEventAddListener);
316 }
312 } else if (EventUtil::isPointerEventType(eventType)) { 317 } else if (EventUtil::isPointerEventType(eventType)) {
313 if (LocalDOMWindow* executingWindow = this->executingWindow()) { 318 if (LocalDOMWindow* executingWindow = this->executingWindow()) {
314 UseCounter::count(executingWindow->document(), 319 UseCounter::count(executingWindow->document(),
315 UseCounter::PointerEventAddListenerCount); 320 UseCounter::PointerEventAddListenerCount);
316 } 321 }
317 } else if (eventType == EventTypeNames::slotchange) { 322 } else if (eventType == EventTypeNames::slotchange) {
318 if (LocalDOMWindow* executingWindow = this->executingWindow()) { 323 if (LocalDOMWindow* executingWindow = this->executingWindow()) {
319 UseCounter::count(executingWindow->document(), 324 UseCounter::count(executingWindow->document(),
320 UseCounter::SlotChangeEventAddListener); 325 UseCounter::SlotChangeEventAddListener);
321 } 326 }
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 // they have one less listener to invoke. 759 // they have one less listener to invoke.
755 if (d->firingEventIterators) { 760 if (d->firingEventIterators) {
756 for (const auto& iterator : *d->firingEventIterators) { 761 for (const auto& iterator : *d->firingEventIterators) {
757 iterator.iterator = 0; 762 iterator.iterator = 0;
758 iterator.end = 0; 763 iterator.end = 0;
759 } 764 }
760 } 765 }
761 } 766 }
762 767
763 } // namespace blink 768 } // namespace blink
OLDNEW
« 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