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

Unified Diff: ash/touch/touch_transformer_controller.cc

Issue 618283003: Adds special support to the device manager for keyboards devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to master. Created 6 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_info.h ('k') | ash/touch/touch_transformer_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_transformer_controller.cc
diff --git a/ash/touch/touch_transformer_controller.cc b/ash/touch/touch_transformer_controller.cc
index 8ff8ad5c3ea4afc931b2a3a412d7a4e81e6e4667..0cf36f3b327b4a5fd7e02ea17817451d2cefa100 100644
--- a/ash/touch/touch_transformer_controller.cc
+++ b/ash/touch/touch_transformer_controller.cc
@@ -35,7 +35,7 @@ DisplayManager* GetDisplayManager() {
// sqrt of (display_area / touchscreen_area)
double TouchTransformerController::GetTouchResolutionScale(
const DisplayInfo& touch_display) const {
- if (touch_display.touch_device_id() == 0)
+ if (touch_display.touch_device_id() == 0u)
return 1.0;
double min_x, max_x;
@@ -77,8 +77,7 @@ gfx::Transform
TouchTransformerController::GetExtendedModeTouchTransformer(
const DisplayInfo& touch_display, const gfx::Size& fb_size) const {
gfx::Transform ctm;
- if (touch_display.touch_device_id() == 0 ||
- fb_size.width() == 0.0 ||
+ if (touch_display.touch_device_id() == 0u || fb_size.width() == 0.0 ||
fb_size.height() == 0.0)
return ctm;
float width = touch_display.bounds_in_native().width();
@@ -92,7 +91,7 @@ bool TouchTransformerController::ShouldComputeMirrorModeTouchTransformer(
if (force_compute_mirror_mode_touch_transformer_)
return true;
- if (touch_display.touch_device_id() == 0)
+ if (touch_display.touch_device_id() == 0u)
return false;
if (touch_display.size_in_pixel() == touch_display.GetNativeModeSize() ||
« no previous file with comments | « ash/display/display_info.h ('k') | ash/touch/touch_transformer_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698