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

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

Issue 8907005: Add support for new scroll valuators coming from CMT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 years 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/base/x/events_x.cc ('k') | ui/views/events/event_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/events/event.h
diff --git a/ui/views/events/event.h b/ui/views/events/event.h
index c0cf2e0ea8dd11454c46aca92bcf080ac0e93d5f..4d0d2f16bb9120ebf307709488991b61174cda6b 100644
--- a/ui/views/events/event.h
+++ b/ui/views/events/event.h
@@ -410,6 +410,19 @@ class VIEWS_EXPORT DropTargetEvent : public LocatedEvent {
DISALLOW_COPY_AND_ASSIGN(DropTargetEvent);
};
+class VIEWS_EXPORT ScrollEvent : public MouseEvent {
+ public:
+ explicit ScrollEvent(const NativeEvent& native_event);
+ float x_offset() const { return x_offset_; }
+ float y_offset() const { return y_offset_; }
+
+ private:
+ float x_offset_;
+ float y_offset_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScrollEvent);
+};
+
} // namespace views
#endif // UI_VIEWS_EVENTS_EVENT_H_
« no previous file with comments | « ui/base/x/events_x.cc ('k') | ui/views/events/event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698