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

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

Issue 146713002: Revert of Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.cc ('k') | cc/layers/solid_color_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_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_ 6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layers/scrollbar_layer_impl_base.h" 9 #include "cc/layers/scrollbar_layer_impl_base.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class CC_EXPORT SolidColorScrollbarLayerImpl : public ScrollbarLayerImplBase { 13 class CC_EXPORT SolidColorScrollbarLayerImpl : public ScrollbarLayerImplBase {
14 public: 14 public:
15 static scoped_ptr<SolidColorScrollbarLayerImpl> Create( 15 static scoped_ptr<SolidColorScrollbarLayerImpl> Create(
16 LayerTreeImpl* tree_impl, 16 LayerTreeImpl* tree_impl,
17 int id, 17 int id,
18 ScrollbarOrientation orientation, 18 ScrollbarOrientation orientation,
19 int thumb_thickness, 19 int thumb_thickness,
20 bool is_left_side_vertical_scrollbar, 20 bool is_left_side_vertical_scrollbar);
21 bool is_overlay);
22 virtual ~SolidColorScrollbarLayerImpl(); 21 virtual ~SolidColorScrollbarLayerImpl();
23 22
24 // LayerImpl overrides. 23 // LayerImpl overrides.
25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 24 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
26 OVERRIDE; 25 OVERRIDE;
27 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 26 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
28 27
29 virtual void AppendQuads(QuadSink* quad_sink, 28 virtual void AppendQuads(QuadSink* quad_sink,
30 AppendQuadsData* append_quads_data) OVERRIDE; 29 AppendQuadsData* append_quads_data) OVERRIDE;
31 30
32 31
33 protected: 32 protected:
34 SolidColorScrollbarLayerImpl(LayerTreeImpl* tree_impl, 33 SolidColorScrollbarLayerImpl(LayerTreeImpl* tree_impl,
35 int id, 34 int id,
36 ScrollbarOrientation orientation, 35 ScrollbarOrientation orientation,
37 int thumb_thickness, 36 int thumb_thickness,
38 bool is_left_side_vertical_scrollbar, 37 bool is_left_side_vertical_scrollbar);
39 bool is_overlay);
40 38
41 // ScrollbarLayerImplBase implementation. 39 // ScrollbarLayerImplBase implementation.
42 virtual int ThumbThickness() const OVERRIDE; 40 virtual int ThumbThickness() const OVERRIDE;
43 virtual int ThumbLength() const OVERRIDE; 41 virtual int ThumbLength() const OVERRIDE;
44 virtual float TrackLength() const OVERRIDE; 42 virtual float TrackLength() const OVERRIDE;
45 virtual int TrackStart() const OVERRIDE; 43 virtual int TrackStart() const OVERRIDE;
46 virtual bool IsThumbResizable() const OVERRIDE; 44 virtual bool IsThumbResizable() const OVERRIDE;
47 45
48 private: 46 private:
49 int thumb_thickness_; 47 int thumb_thickness_;
50 SkColor color_; 48 SkColor color_;
51 }; 49 };
52 50
53 } // namespace cc 51 } // namespace cc
54 52
55 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_ 53 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.cc ('k') | cc/layers/solid_color_scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698