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

Unified Diff: ash/display/display_info.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 | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.h
diff --git a/ash/display/display_info.h b/ash/display/display_info.h
index e81ad17aeadc79d976e069c58f07beb6bb63f3cf..958b6d4d88dc1fd733c98d134520b3c2386c453a 100644
--- a/ash/display/display_info.h
+++ b/ash/display/display_info.h
@@ -89,6 +89,11 @@ class ASH_EXPORT DisplayInfo {
void set_rotation(gfx::Display::Rotation rotation) { rotation_ = rotation; }
gfx::Display::Rotation rotation() const { return rotation_; }
+ void set_touch_support(gfx::Display::TouchSupport support) {
+ touch_support_ = support;
+ }
+ gfx::Display::TouchSupport touch_support() const { return touch_support_; }
+
// Gets/Sets the device scale factor of the display.
float device_scale_factor() const { return device_scale_factor_; }
void set_device_scale_factor(float scale) { device_scale_factor_ = scale; }
@@ -150,6 +155,7 @@ class ASH_EXPORT DisplayInfo {
std::string name_;
bool has_overscan_;
gfx::Display::Rotation rotation_;
+ gfx::Display::TouchSupport touch_support_;
// This specifies the device's pixel density. (For example, a
// display whose DPI is higher than the threshold is considered to have
« no previous file with comments | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698