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

Unified Diff: ui/events/gesture_detection/motion_event.h

Issue 2536413003: Added UMA counters for Android tool-types. (Closed)
Patch Set: Add MotionEvent.TOOL_TYPE_LAST etc. 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
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/motion_event.h
diff --git a/ui/events/gesture_detection/motion_event.h b/ui/events/gesture_detection/motion_event.h
index 11f6476027b4d80658deb54400baa235dc29284a..f38cb96c1a290775a541bb9ccebaa6b1a8669f9b 100644
--- a/ui/events/gesture_detection/motion_event.h
+++ b/ui/events/gesture_detection/motion_event.h
@@ -31,7 +31,8 @@ class GESTURE_DETECTION_EXPORT MotionEvent {
ACTION_HOVER_EXIT,
ACTION_HOVER_MOVE,
ACTION_BUTTON_PRESS,
- ACTION_BUTTON_RELEASE
+ ACTION_BUTTON_RELEASE,
+ ACTION_LAST = ACTION_BUTTON_RELEASE
};
enum ToolType {
@@ -39,7 +40,8 @@ class GESTURE_DETECTION_EXPORT MotionEvent {
TOOL_TYPE_FINGER,
TOOL_TYPE_STYLUS,
TOOL_TYPE_MOUSE,
- TOOL_TYPE_ERASER
+ TOOL_TYPE_ERASER,
+ TOOL_TYPE_LAST = TOOL_TYPE_ERASER
};
enum ButtonType {
@@ -49,7 +51,7 @@ class GESTURE_DETECTION_EXPORT MotionEvent {
BUTTON_BACK = 1 << 3,
BUTTON_FORWARD = 1 << 4,
BUTTON_STYLUS_PRIMARY = 1 << 5,
- BUTTON_STYLUS_SECONDARY = 1 << 6,
+ BUTTON_STYLUS_SECONDARY = 1 << 6
};
// The implementer promises that |GetPointerId()| will never exceed
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698