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

Unified Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 2841943002: Overlay scrollbars expand only when mouse is near thumb (Closed)
Patch Set: weiliangc comment addressed 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..d5bc0f8be412b6af942f84ae011b29c4f0917818 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_;
@@ -75,6 +76,9 @@ class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
virtual bool IsThumbResizable() const = 0;
private:
+ gfx::Rect ComputeThumbQuadRectWithThumbThicknessScale(
+ float thumb_thickness_scale_factor) const;
+
ElementId scroll_element_id_;
bool is_overlay_scrollbar_;
« no previous file with comments | « cc/input/single_scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/layers/scrollbar_layer_impl_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698