summaryrefslogtreecommitdiffstats
path: root/ui/views/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/view.h')
-rw-r--r--ui/views/view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/views/view.h b/ui/views/view.h
index f656747..10c2806 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -617,6 +617,12 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// will be given a chance.
virtual bool OnMouseWheel(const MouseWheelEvent& event);
+ // Invoked when user scrolls (e.g. using two-finger scroll on touch pad).
+ // Returns true if the event has been processed and false otherwise. The event
+ // is sent to the view where the event happens first. If it has not been
+ // processed, the parent will be given a chance.
+ virtual bool OnScrollEvent(const ScrollEvent& event);
+
// See field for description.
void set_notify_enter_exit_on_child(bool notify) {
notify_enter_exit_on_child_ = notify;