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

Side by Side Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 2716453005: Aura Overlay Scrollbars appear when mouse hovers over scroller edge (Closed)
Patch Set: rename fade in to show 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 unified diff | Download patch
« no previous file with comments | « cc/layers/painted_scrollbar_layer_impl.h ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/input/scrollbar.h" 10 #include "cc/input/scrollbar.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ScrollbarLayerImplBase* ToScrollbarLayer() override; 47 ScrollbarLayerImplBase* ToScrollbarLayer() override;
48 48
49 // Thumb quad rect in layer space. 49 // Thumb quad rect in layer space.
50 virtual gfx::Rect ComputeThumbQuadRect() const; 50 virtual gfx::Rect ComputeThumbQuadRect() const;
51 51
52 float thumb_thickness_scale_factor() { 52 float thumb_thickness_scale_factor() {
53 return thumb_thickness_scale_factor_; 53 return thumb_thickness_scale_factor_;
54 } 54 }
55 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); 55 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor);
56 56
57 virtual int ThumbThickness() const = 0;
58
57 protected: 59 protected:
58 ScrollbarLayerImplBase(LayerTreeImpl* tree_impl, 60 ScrollbarLayerImplBase(LayerTreeImpl* tree_impl,
59 int id, 61 int id,
60 ScrollbarOrientation orientation, 62 ScrollbarOrientation orientation,
61 bool is_left_side_vertical_scrollbar, 63 bool is_left_side_vertical_scrollbar,
62 bool is_overlay); 64 bool is_overlay);
63 ~ScrollbarLayerImplBase() override; 65 ~ScrollbarLayerImplBase() override;
64 66
65 virtual int ThumbThickness() const = 0;
66 virtual int ThumbLength() const = 0; 67 virtual int ThumbLength() const = 0;
67 virtual float TrackLength() const = 0; 68 virtual float TrackLength() const = 0;
68 virtual int TrackStart() const = 0; 69 virtual int TrackStart() const = 0;
69 // Indicates whether the thumb length can be changed without going back to the 70 // Indicates whether the thumb length can be changed without going back to the
70 // main thread. 71 // main thread.
71 virtual bool IsThumbResizable() const = 0; 72 virtual bool IsThumbResizable() const = 0;
72 73
73 private: 74 private:
74 int scroll_layer_id_; 75 int scroll_layer_id_;
75 bool is_overlay_scrollbar_; 76 bool is_overlay_scrollbar_;
(...skipping 10 matching lines...) Expand all
86 float vertical_adjust_; 87 float vertical_adjust_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); 89 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase);
89 }; 90 };
90 91
91 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; 92 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet;
92 93
93 } // namespace cc 94 } // namespace cc
94 95
95 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 96 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
OLDNEW
« no previous file with comments | « cc/layers/painted_scrollbar_layer_impl.h ('k') | cc/layers/scrollbar_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698