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

Unified Diff: ui/views/events/event_aura.cc

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/views/events/event.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/events/event_aura.cc
diff --git a/ui/views/events/event_aura.cc b/ui/views/events/event_aura.cc
index 39ae3f7293a43b085fbf992865739e8aba862781..9b3af839c25f7fba11d4682b4529d85f4c197c40 100644
--- a/ui/views/events/event_aura.cc
+++ b/ui/views/events/event_aura.cc
@@ -59,4 +59,10 @@ MouseWheelEvent::MouseWheelEvent(const NativeEvent& native_event)
offset_(ui::GetMouseWheelOffset(native_event->native_event())) {
}
+ScrollEvent::ScrollEvent(const NativeEvent& native_event)
+ : MouseEvent(native_event) {
+ CHECK(ui::GetScrollOffsets(
+ native_event->native_event(), &x_offset_, &y_offset_));
+}
+
} // namespace views
« no previous file with comments | « ui/views/events/event.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698