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

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

Issue 2728253002: Remove indirection: setup scrollbar scroll layers in the scrollbar constructor (Closed)
Patch Set: Really fix reivewer comment 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/scrollbar_layer_unittest.cc ('k') | cc/layers/solid_color_scrollbar_layer.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_SOLID_COLOR_SCROLLBAR_LAYER_H_ 5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_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/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 18 matching lines...) Expand all
29 bool AlwaysUseActiveTreeOpacity() const override; 29 bool AlwaysUseActiveTreeOpacity() const override;
30 ScrollbarLayerInterface* ToScrollbarLayer() override; 30 ScrollbarLayerInterface* ToScrollbarLayer() override;
31 31
32 void SetOpacity(float opacity) override; 32 void SetOpacity(float opacity) override;
33 void PushPropertiesTo(LayerImpl* layer) override; 33 void PushPropertiesTo(LayerImpl* layer) override;
34 34
35 void SetNeedsDisplayRect(const gfx::Rect& rect) override; 35 void SetNeedsDisplayRect(const gfx::Rect& rect) override;
36 36
37 // ScrollbarLayerInterface 37 // ScrollbarLayerInterface
38 int ScrollLayerId() const override; 38 int ScrollLayerId() const override;
39 void SetScrollLayer(int layer_id) override;
40 39
41 ScrollbarOrientation orientation() const override; 40 ScrollbarOrientation orientation() const override;
42 41
43 int thumb_thickness() const { 42 int thumb_thickness() const {
44 return solid_color_scrollbar_layer_inputs_.thumb_thickness; 43 return solid_color_scrollbar_layer_inputs_.thumb_thickness;
45 } 44 }
46 45
47 int track_start() const { 46 int track_start() const {
48 return solid_color_scrollbar_layer_inputs_.track_start; 47 return solid_color_scrollbar_layer_inputs_.track_start;
49 } 48 }
(...skipping 30 matching lines...) Expand all
80 }; 79 };
81 80
82 SolidColorScrollbarLayerInputs solid_color_scrollbar_layer_inputs_; 81 SolidColorScrollbarLayerInputs solid_color_scrollbar_layer_inputs_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); 83 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer);
85 }; 84 };
86 85
87 } // namespace cc 86 } // namespace cc
88 87
89 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ 88 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/solid_color_scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698