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

Unified Diff: ui/gfx/display.h

Issue 42863003: cros: Default to natural scrolling if the internal diplay is a touchscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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 | « ui/events/event_utils.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.h
diff --git a/ui/gfx/display.h b/ui/gfx/display.h
index 324b96134e933e6be7a7648baaa8fdf2b66c4979..eb35a5f5c6f76cd60c7e928e649630636df8e3b0 100644
--- a/ui/gfx/display.h
+++ b/ui/gfx/display.h
@@ -30,6 +30,13 @@ class GFX_EXPORT Display {
ROTATE_270,
};
+ // Touch support for the display.
+ enum TouchSupport {
+ TOUCH_SUPPORT_UNKNOWN,
+ TOUCH_SUPPORT_AVAILABLE,
+ TOUCH_SUPPORT_UNAVAILABLE,
+ };
+
// Creates a display with kInvalidDisplayID as default.
Display();
explicit Display(int64 id);
@@ -67,6 +74,9 @@ class GFX_EXPORT Display {
Rotation rotation() const { return rotation_; }
void set_rotation(Rotation rotation) { rotation_ = rotation; }
+ TouchSupport touch_support() const { return touch_support_; }
+ void set_touch_support(TouchSupport support) { touch_support_ = support; }
+
// Utility functions that just return the size of display and
// work area.
const Size& size() const { return bounds_.size(); }
@@ -113,6 +123,7 @@ class GFX_EXPORT Display {
Rect work_area_;
float device_scale_factor_;
Rotation rotation_;
+ TouchSupport touch_support_;
};
} // namespace gfx
« no previous file with comments | « ui/events/event_utils.cc ('k') | ui/gfx/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698