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

Unified Diff: ash/display/display_info.cc

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_info.h ('k') | ash/host/ash_window_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 315985379b16c12282da056ea476496d2f454f10..9682efa425b90633264e989a7f94f48bf441400d 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -179,6 +179,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),
@@ -194,6 +195,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),
@@ -215,6 +217,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
@@ -295,7 +298,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(),
@@ -307,7 +311,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 {
« no previous file with comments | « ash/display/display_info.h ('k') | ash/host/ash_window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698