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

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

Issue 2930763002: Prevent create ScrollbarAnimationController for Mac Overlay Scrollbar (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | cc/layers/painted_scrollbar_layer_impl.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_PAINTED_SCROLLBAR_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_
6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ 6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void set_thumb_opacity(float opacity) { thumb_opacity_ = opacity; } 50 void set_thumb_opacity(float opacity) { thumb_opacity_ = opacity; }
51 51
52 void set_internal_contents_scale_and_bounds(float content_scale, 52 void set_internal_contents_scale_and_bounds(float content_scale,
53 const gfx::Size& content_bounds) { 53 const gfx::Size& content_bounds) {
54 internal_contents_scale_ = content_scale; 54 internal_contents_scale_ = content_scale;
55 internal_content_bounds_ = content_bounds; 55 internal_content_bounds_ = content_bounds;
56 } 56 }
57 57
58 int ThumbThickness() const override; 58 int ThumbThickness() const override;
59 59
60 LayerTreeSettings::ScrollbarAnimator GetScrollbarAnimator() const override;
61
60 protected: 62 protected:
61 PaintedScrollbarLayerImpl(LayerTreeImpl* tree_impl, 63 PaintedScrollbarLayerImpl(LayerTreeImpl* tree_impl,
62 int id, 64 int id,
63 ScrollbarOrientation orientation, 65 ScrollbarOrientation orientation,
64 bool is_left_side_vertical_scrollbar, 66 bool is_left_side_vertical_scrollbar,
65 bool is_overlay); 67 bool is_overlay);
66 68
67 // ScrollbarLayerImplBase implementation. 69 // ScrollbarLayerImplBase implementation.
68 int ThumbLength() const override; 70 int ThumbLength() const override;
69 float TrackLength() const override; 71 float TrackLength() const override;
(...skipping 14 matching lines...) Expand all
84 int thumb_thickness_; 86 int thumb_thickness_;
85 int thumb_length_; 87 int thumb_length_;
86 int track_start_; 88 int track_start_;
87 int track_length_; 89 int track_length_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); 91 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl);
90 }; 92 };
91 93
92 } // namespace cc 94 } // namespace cc
93 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ 95 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/painted_scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698