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

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

Issue 2163893003: Start sending auxclick instead of click for non-primary buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing auxclick polyfill for remote devtools Created 4 years, 4 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: 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 cd8b30c521c9f4219c1ad85a184bb37cbd7d4c27..5efe54a1fea00a4c6d0d0b5807fea9cfc7c6d39e 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -295,7 +295,11 @@ bool EventTarget::addEventListenerInternal(const AtomicString& eventType, EventL
void EventTarget::addedEventListener(const AtomicString& eventType, RegisteredEventListener& registeredListener)
{
- if (EventUtil::isPointerEventType(eventType)) {
+ if (eventType == EventTypeNames::auxclick) {
+ if (LocalDOMWindow* executingWindow = this->executingWindow()) {
+ UseCounter::count(executingWindow->document(), UseCounter::AuxclickAddListenerCount);
+ }
+ } else if (EventUtil::isPointerEventType(eventType)) {
if (LocalDOMWindow* executingWindow = this->executingWindow()) {
UseCounter::count(executingWindow->document(), UseCounter::PointerEventAddListenerCount);
}

Powered by Google App Engine
This is Rietveld 408576698