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

Unified Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 2841943002: Overlay scrollbars expand only when mouse is near thumb (Closed)
Patch Set: Created 3 years, 8 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: cc/layers/scrollbar_layer_impl_base.h
diff --git a/cc/layers/scrollbar_layer_impl_base.h b/cc/layers/scrollbar_layer_impl_base.h
index a7a7232d6b0930d549241ed0d7f2c0db8d1353dc..d128eaffc0e3c27d5dede0f8e6b3570abbd56efb 100644
--- a/cc/layers/scrollbar_layer_impl_base.h
+++ b/cc/layers/scrollbar_layer_impl_base.h
@@ -46,7 +46,8 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
ScrollbarLayerImplBase* ToScrollbarLayer() override;
// Thumb quad rect in layer space.
- virtual gfx::Rect ComputeThumbQuadRect() const;
+ gfx::Rect ComputeThumbQuadRect() const;
+ gfx::Rect ComputeExpandedThumbQuadRect() const;
float thumb_thickness_scale_factor() {
return thumb_thickness_scale_factor_;

Powered by Google App Engine
This is Rietveld 408576698