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

Unified Diff: ui/events/event_utils.h

Issue 134773004: Include external touchscreen vid/pid in UMA hardware profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 30092bc27c6772a5154fb540fda836b93cccbc9e..082cf55960bacc5086266fddd7347f368804b154 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -24,6 +24,12 @@ namespace base {
class TimeDelta;
}
+enum InternalDisplayHasTouchSupport {
+ INTERNAL_DISPLAY_HAS_TOUCH_SUPPORT,
+ INTERNAL_DISPLAY_NO_TOUCH_SUPPORT,
+ INTERNAL_DISPLAY_UNKNOWN_TOUCH_SUPPORT
+};
oshima 2014/01/14 22:35:01 can you just use gfx::Display:TouchSupport?
tdresser 2014/01/17 20:38:35 Oh, absolutely, thanks. Done.
+
namespace ui {
class Event;
@@ -133,6 +139,9 @@ EVENTS_EXPORT bool IsNaturalScrollEnabled();
// Returns whether natural scrolling should be used for touchpad.
EVENTS_EXPORT bool ShouldDefaultToNaturalScroll();
+// Returns whether or not the internal display produces touch events.
+EVENTS_EXPORT InternalDisplayHasTouchSupport InternalDisplaySupportsTouch();
+
// Was this event generated by a touchpad device?
// The caller is responsible for ensuring that this is a mouse/touchpad event
// before calling this function.

Powered by Google App Engine
This is Rietveld 408576698