Chromium Code Reviews| 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. |