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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2118373002: Added more counters for PointerEvents UMA metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 990d75d7756cfcb7d8cd31ff06892f48470a26b9..f4f623c6866bb91a80a6d095d5e0aead6082aaa1 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -8,6 +8,7 @@
#include "core/dom/shadow/FlatTreeTraversal.h"
#include "core/events/MouseEvent.h"
#include "core/frame/FrameView.h"
+#include "core/frame/UseCounter.h"
#include "core/html/HTMLCanvasElement.h"
#include "core/input/EventHandler.h"
#include "core/input/TouchActionUtil.h"
@@ -154,6 +155,7 @@ WebInputEventResult PointerEventManager::dispatchPointerEvent(
if (!RuntimeEnabledFeatures::pointerEventEnabled())
return WebInputEventResult::NotHandled;
if (!checkForListener || target->hasEventListeners(eventType)) {
+ UseCounter::count(m_frame->document(), UseCounter::PointerEventDispatch);
DispatchEventResult dispatchResult = target->dispatchEvent(pointerEvent);
return EventHandler::toWebInputEventResult(dispatchResult);
}
@@ -748,6 +750,7 @@ void PointerEventManager::elementRemoved(EventTarget* target)
void PointerEventManager::setPointerCapture(int pointerId, EventTarget* target)
{
+ UseCounter::count(m_frame->document(), UseCounter::PointerEventSetCapture);
if (m_pointerEventFactory.isActiveButtonsState(pointerId))
m_pendingPointerCaptureTarget.set(pointerId, target);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698