| 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; }
|
|
|