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

Unified Diff: ash/display/display_info.cc

Issue 191223007: Move touch CTM from X into Chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move CTM update code into a separate file ash/touch/touch_ctm_controller.cc Created 6 years, 9 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: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 17a1bc1f8867cbe7197f781fc9d54cb2e9797934..634ce6f54098933acdb74fe15bdd96638992d4b5 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -170,6 +170,7 @@ DisplayInfo::DisplayInfo()
has_overscan_(false),
rotation_(gfx::Display::ROTATE_0),
touch_support_(gfx::Display::TOUCH_SUPPORT_UNKNOWN),
+ touch_device_id_(0),
device_scale_factor_(1.0f),
overscan_insets_in_dip_(0, 0, 0, 0),
configured_ui_scale_(1.0f),
@@ -184,6 +185,7 @@ DisplayInfo::DisplayInfo(int64 id,
has_overscan_(has_overscan),
rotation_(gfx::Display::ROTATE_0),
touch_support_(gfx::Display::TOUCH_SUPPORT_UNKNOWN),
+ touch_device_id_(0),
device_scale_factor_(1.0f),
overscan_insets_in_dip_(0, 0, 0, 0),
configured_ui_scale_(1.0f),
@@ -204,6 +206,7 @@ void DisplayInfo::Copy(const DisplayInfo& native_info) {
device_scale_factor_ = native_info.device_scale_factor_;
display_modes_ = native_info.display_modes_;
touch_support_ = native_info.touch_support_;
+ touch_device_id_ = native_info.touch_device_id_;
// Copy overscan_insets_in_dip_ if it's not empty. This is for test
// cases which use "/o" annotation which sets the overscan inset
@@ -266,7 +269,8 @@ std::string DisplayInfo::ToString() const {
int rotation_degree = static_cast<int>(rotation_) * 90;
return base::StringPrintf(
"DisplayInfo[%lld] native bounds=%s, size=%s, scale=%f, "
- "overscan=%s, rotation=%d, ui-scale=%f, touchscreen=%s",
+ "overscan=%s, rotation=%d, ui-scale=%f, touchscreen=%s, "
+ "touch-device-id=%d",
static_cast<long long int>(id_),
bounds_in_native_.ToString().c_str(),
size_in_pixel_.ToString().c_str(),
@@ -278,7 +282,8 @@ std::string DisplayInfo::ToString() const {
? "yes"
: touch_support_ == gfx::Display::TOUCH_SUPPORT_UNAVAILABLE
? "no"
- : "unknown");
+ : "unknown",
+ touch_device_id_);
}
std::string DisplayInfo::ToFullString() const {

Powered by Google App Engine
This is Rietveld 408576698