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

Unified Diff: cc/layers/layer_impl.h

Issue 2770293003: Feed ScrollableArea::showOverlayScrollbars into ScrollbarAnimationController. (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index c977c56e2ff04c76895a80f830e1d22fa82af492..15dcdbbac6762571095de95b72555d893b551c12 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -439,6 +439,9 @@ class CC_EXPORT LayerImpl {
ElementListType GetElementTypeForAnimation() const;
+ void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; }
+ bool needs_show_scrollbars() { return needs_show_scrollbars_; }
+
protected:
LayerImpl(LayerTreeImpl* layer_impl,
int id,
@@ -556,6 +559,11 @@ class CC_EXPORT LayerImpl {
bool needs_push_properties_ : 1;
bool scrollbars_hidden_ : 1;
+ // The needs_show_scrollbars_ bit tracks a pending request from Blink to show
+ // the overlay scrollbars. It's set on the scroll layer (not the scrollbar
+ // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation.
+ bool needs_show_scrollbars_ : 1;
+
DISALLOW_COPY_AND_ASSIGN(LayerImpl);
};
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698