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

Unified Diff: ui/views/view.h

Issue 2188133002: Scroll with Layers in views::ScrollView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollTrack
Patch Set: DCHECK for no layer Created 4 years, 4 months 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/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 6b45c6313baf3bee9f08047d3891e28b35de22d1..b1764ce58c85cae9d9d8e0ea7bf3011f14503d0f 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -970,6 +970,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// the child view, such as Viewport, to override appropriately.
virtual void ScrollRectToVisible(const gfx::Rect& rect);
+ // The closest parent() ScrollView in the hierarchy enclosing this View. Null
+ // if there is none.
+ virtual ScrollView* EnclosingScrollView();
+
// The following methods are used by ScrollView to determine the amount
// to scroll relative to the visible bounds of the view. For example, a
// return value of 10 indicates the scrollview should scroll 10 pixels in

Powered by Google App Engine
This is Rietveld 408576698