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

Unified Diff: cc/layers/layer.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/input/scrollbar_animation_controller.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index e18369303b6a5e655ededcc2641fd52ef80c5455..b8e77778b4857ba51a52e95d07ec4f3e81e45df8 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -437,6 +437,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
+ // Called on the scroll layer to trigger showing the overlay scrollbars.
+ void ShowScrollbars() { needs_show_scrollbars_ = true; }
+
protected:
friend class LayerImpl;
friend class TreeSynchronizer;
@@ -632,6 +635,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool subtree_property_changed_ : 1;
bool may_contain_video_ : 1;
bool is_scroll_clip_layer_ : 1;
+ bool needs_show_scrollbars_ : 1;
SkColor safe_opaque_background_color_;
// draw_blend_mode may be different than blend_mode_,
// when a RenderSurface re-parents the layer's blend_mode.
« no previous file with comments | « cc/input/scrollbar_animation_controller.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698