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

Unified Diff: ash/display/display_info.h

Issue 280833002: Re-land "Issue 191223007: Move touch CTM from X into Chrome" (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: adding missing file again Created 6 years, 7 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 38e16d8e9e0e9cf5ad49d592b560c8b6f4d73476..62f9210078b609c72d5b9c153a9bc54b494db92e 100644
--- a/ash/display/display_info.h
+++ b/ash/display/display_info.h
@@ -103,6 +103,9 @@ class ASH_EXPORT DisplayInfo {
}
gfx::Display::TouchSupport touch_support() const { return touch_support_; }
+ void set_touch_device_id(int id) { touch_device_id_ = id; }
+ int touch_device_id() const { return touch_device_id_; }
+
// 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; }
@@ -201,6 +204,10 @@ class ASH_EXPORT DisplayInfo {
gfx::Display::Rotation rotation_;
gfx::Display::TouchSupport touch_support_;
+ // If the display is also a touch device, it will have a positive
+ // |touch_device_id_|. Otherwise |touch_device_id_| is 0.
+ int touch_device_id_;
+
// This specifies the device's pixel density. (For example, a
// display whose DPI is higher than the threshold is considered to have
// device_scale_factor = 2.0 on Chrome OS). This is used by the
« 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