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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/input/scrollbar.h" 10 #include "cc/input/scrollbar.h"
(...skipping 28 matching lines...) Expand all
39 bool is_left_side_vertical_scrollbar() { 39 bool is_left_side_vertical_scrollbar() {
40 return is_left_side_vertical_scrollbar_; 40 return is_left_side_vertical_scrollbar_;
41 } 41 }
42 42
43 bool CanScrollOrientation() const; 43 bool CanScrollOrientation() const;
44 44
45 void PushPropertiesTo(LayerImpl* layer) override; 45 void PushPropertiesTo(LayerImpl* layer) override;
46 ScrollbarLayerImplBase* ToScrollbarLayer() override; 46 ScrollbarLayerImplBase* ToScrollbarLayer() override;
47 47
48 // Thumb quad rect in layer space. 48 // Thumb quad rect in layer space.
49 virtual gfx::Rect ComputeThumbQuadRect() const; 49 gfx::Rect ComputeThumbQuadRect() const;
50 gfx::Rect ComputeExpandedThumbQuadRect() const;
50 51
51 float thumb_thickness_scale_factor() { 52 float thumb_thickness_scale_factor() {
52 return thumb_thickness_scale_factor_; 53 return thumb_thickness_scale_factor_;
53 } 54 }
54 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); 55 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor);
55 56
56 virtual int ThumbThickness() const = 0; 57 virtual int ThumbThickness() const = 0;
57 58
58 // TODO(crbug.com/702832): No need for this function once there is element id 59 // TODO(crbug.com/702832): No need for this function once there is element id
59 // on overlay scrollbar layers. 60 // on overlay scrollbar layers.
(...skipping 30 matching lines...) Expand all
90 float vertical_adjust_; 91 float vertical_adjust_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); 93 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase);
93 }; 94 };
94 95
95 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; 96 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet;
96 97
97 } // namespace cc 98 } // namespace cc
98 99
99 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 100 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698