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

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

Issue 11743013: Scaling scroll/fling events in multi-monitor setup (Closed) Base URL: https://chromium.googlesource.com/chromium/src@git-svn
Patch Set: Fix lint errors Created 7 years, 12 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/shell.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 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_; }
« no previous file with comments | « ash/shell.cc ('k') | ui/base/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698