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

Unified Diff: ui/base/events/event.h

Issue 10905163: aura-x11: Fix touch-calibration for multi-monitor setups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 | « ui/aura/root_window_host_linux.cc ('k') | ui/base/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.h
diff --git a/ui/base/events/event.h b/ui/base/events/event.h
index a370c39137f45cc6528f5aff324368eb8d9626ed..89831f24c55df0abb679758ac72d0e4231640f36 100644
--- a/ui/base/events/event.h
+++ b/ui/base/events/event.h
@@ -402,6 +402,12 @@ class UI_EXPORT TouchEvent : public LocatedEvent {
float rotation_angle() const { return rotation_angle_; }
float force() const { return force_; }
+ // Calibrate the touch-point. This is useful when the touch-surface that
+ // generates the events need to be remapped to a surface of a different
+ // size. |from| is the size of the native surface, and |to| is the size
+ // of the target surface.
+ void CalibrateLocation(const gfx::Size& from, const gfx::Size& to);
+
// Used for unit tests.
void set_radius_x(const float r) { radius_x_ = r; }
void set_radius_y(const float r) { radius_y_ = r; }
« no previous file with comments | « ui/aura/root_window_host_linux.cc ('k') | ui/base/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698