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

Unified Diff: ash/touch/touch_transformer_controller.h

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build Created 4 years, 4 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/touch/touch_transformer_controller.h
diff --git a/ash/touch/touch_transformer_controller.h b/ash/touch/touch_transformer_controller.h
index 2c6cb35df700308184a63ad7c9ac2b217b71f1d6..9eb679068355367bde05df7bed92dc405542e4f6 100644
--- a/ash/touch/touch_transformer_controller.h
+++ b/ash/touch/touch_transformer_controller.h
@@ -53,8 +53,8 @@ class ASH_EXPORT TouchTransformerController
// |framebuffer_size| is used for scaling.
// On Ozone events are reported in the touchscreen's resolution, so
// |touch_display| is used to determine the size and scale the event.
- gfx::Transform GetTouchTransform(const DisplayInfo& display,
- const DisplayInfo& touch_display,
+ gfx::Transform GetTouchTransform(const ui::ManagedDisplayInfo& display,
+ const ui::ManagedDisplayInfo& touch_display,
const ui::TouchscreenDevice& touchscreen,
const gfx::Size& framebuffer_size) const;
@@ -62,11 +62,11 @@ class ASH_EXPORT TouchTransformerController
// radius from |touch_device|'s coordinate system to the |touch_display|'s
// coordinate system.
double GetTouchResolutionScale(
- const DisplayInfo& touch_display,
+ const ui::ManagedDisplayInfo& touch_display,
const ui::TouchscreenDevice& touch_device) const;
// For the provided |display| update the touch radius mapping.
- void UpdateTouchRadius(const DisplayInfo& display) const;
+ void UpdateTouchRadius(const ui::ManagedDisplayInfo& display) const;
// For a given |target_display| and |target_display_id| update the touch
// transformation based on the touchscreen associated with |touch_display|.
@@ -77,8 +77,8 @@ class ASH_EXPORT TouchTransformerController
// |target_display| provides the dimensions to which the touch event will be
// transformed.
void UpdateTouchTransform(int64_t target_display_id,
- const DisplayInfo& touch_display,
- const DisplayInfo& target_display) const;
+ const ui::ManagedDisplayInfo& touch_display,
+ const ui::ManagedDisplayInfo& target_display) const;
DISALLOW_COPY_AND_ASSIGN(TouchTransformerController);
};

Powered by Google App Engine
This is Rietveld 408576698