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

Unified Diff: ui/base/events/event_utils.h

Issue 13529009: Add UMA metrics for measuring number of coalesed events and their latency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 8 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 | « no previous file | ui/base/events/event_utils.cc » ('j') | ui/base/x/x11_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event_utils.h
diff --git a/ui/base/events/event_utils.h b/ui/base/events/event_utils.h
index 05ce2cd1135e701fd3c7af2f2518cd54c3f3fd76..4c73fe112c7babb6b05841df57b0142c0a040c77 100644
--- a/ui/base/events/event_utils.h
+++ b/ui/base/events/event_utils.h
@@ -68,6 +68,15 @@ UI_EXPORT KeyboardCode KeyboardCodeFromNative(
// Returns true if the message is a mouse event.
UI_EXPORT bool IsMouseEvent(const base::NativeEvent& native_event);
+// Returns true if |type| is a Key event type.
+UI_EXPORT bool IsKeyEventType(EventType type);
+
+// Returns true if |type| is a Mouse event type.
+UI_EXPORT bool IsMouseEventType(EventType type);
+
+// Returns true if |type| is a Touch event type.
+UI_EXPORT bool IsTouchEventType(EventType type);
+
// Returns the flags of the button that changed during a press/release.
UI_EXPORT int GetChangedMouseButtonFlagsFromNative(
const base::NativeEvent& native_event);
« no previous file with comments | « no previous file | ui/base/events/event_utils.cc » ('j') | ui/base/x/x11_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698