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

Unified Diff: ui/views/controls/scrollbar/scroll_bar.h

Issue 2454323002: MacViews: Reveal scrollbars when resting on the trackpad. (Closed)
Patch Set: fix compile Created 4 years, 1 month 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
Index: ui/views/controls/scrollbar/scroll_bar.h
diff --git a/ui/views/controls/scrollbar/scroll_bar.h b/ui/views/controls/scrollbar/scroll_bar.h
index 25adc47ed09c4f103f08133fad66c43f10c0fa2d..ef0f82e445688165f0323724e96c653d72d0c1d5 100644
--- a/ui/views/controls/scrollbar/scroll_bar.h
+++ b/ui/views/controls/scrollbar/scroll_bar.h
@@ -93,6 +93,11 @@ class VIEWS_EXPORT ScrollBar : public View {
virtual void OnMouseEnteredScrollView(const ui::MouseEvent& event);
virtual void OnMouseExitedScrollView(const ui::MouseEvent& event);
+ // Called when a ScrollEvent (in any, or no, direction) is seen by the parent
+ // ScrollView. E.g., this may reveal an overlay scroll bar to indicate
spqchan 2016/11/14 23:27:58 "scroll bar" -> "scrollbar"
tapted 2016/11/15 12:22:23 Done.
+ // possible scrolling directions to the user.
+ virtual void ObserveScrollEvent(const ui::ScrollEvent& event);
+
protected:
// Create new scrollbar, either horizontal or vertical. These are protected
// since you need to be creating either a NativeScrollBar or a

Powered by Google App Engine
This is Rietveld 408576698