Chromium Code Reviews| Index: ui/base/events/event.h |
| diff --git a/ui/base/events/event.h b/ui/base/events/event.h |
| index 99b2eecc5a99e2d9f72dae63fae98b586988e079..21f5fc272508478813930734fd0830c04da0ca71 100644 |
| --- a/ui/base/events/event.h |
| +++ b/ui/base/events/event.h |
| @@ -632,6 +632,11 @@ class UI_EXPORT ScrollEvent : public MouseEvent { |
| float x_offset, |
| float y_offset); |
| + // Rescale the scroll event's offset value. |
| + // This is useful in the multi-monitor setup where it needs to be scaled |
| + // to provide a consistent user experience. |
| + void Rescale(const float factor); |
|
DaveMoore
2013/01/07 04:31:45
Nit: The naming of this is a bit strange. Isn't it
|
| + |
| float x_offset() const { return x_offset_; } |
| float y_offset() const { return y_offset_; } |
| int finger_count() const { return finger_count_; } |