summaryrefslogtreecommitdiffstats
path: root/ui/base/events/event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/events/event.cc')
-rw-r--r--ui/base/events/event.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index 6a44c33..5086822 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -275,6 +275,11 @@ MouseWheelEvent::MouseWheelEvent(const ScrollEvent& scroll_event)
set_type(ET_MOUSEWHEEL);
}
+MouseWheelEvent::MouseWheelEvent(const MouseEvent& mouse_event, int offset)
+ : MouseEvent(mouse_event), offset_(offset) {
+ DCHECK(type() == ET_MOUSEWHEEL);
+}
+
#if defined(OS_WIN)
// This value matches windows WHEEL_DELTA.
// static