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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « cc/layers/solid_color_layer_impl_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
7
8 #include "cc/base/cc_export.h"
9 #include "cc/layers/layer.h"
10 #include "cc/layers/scrollbar_layer_interface.h"
11
12 namespace cc {
13
14 class CC_EXPORT SolidColorScrollbarLayer : public ScrollbarLayerInterface,
15 public Layer {
16 public:
17 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
18
19 static scoped_refptr<SolidColorScrollbarLayer> Create(
20 ScrollbarOrientation orientation,
21 int thumb_thickness,
22 int track_start,
23 bool is_left_side_vertical_scrollbar,
24 int scroll_layer_id);
25
26 // Layer overrides.
27 bool OpacityCanAnimateOnImplThread() const override;
28 ScrollbarLayerInterface* ToScrollbarLayer() override;
29
30 void PushPropertiesTo(LayerImpl* layer) override;
31 void PushScrollClipPropertiesTo(LayerImpl* layer) override;
32
33 void SetNeedsDisplayRect(const gfx::Rect& rect) override;
34
35 // ScrollbarLayerInterface
36 int ScrollLayerId() const override;
37 void SetScrollLayer(int layer_id) override;
38 void SetClipLayer(int layer_id) override;
39
40 ScrollbarOrientation orientation() const override;
41
42 protected:
43 SolidColorScrollbarLayer(ScrollbarOrientation orientation,
44 int thumb_thickness,
45 int track_start,
46 bool is_left_side_vertical_scrollbar,
47 int scroll_layer_id);
48 ~SolidColorScrollbarLayer() override;
49
50 private:
51 int scroll_layer_id_;
52 int clip_layer_id_;
53 ScrollbarOrientation orientation_;
54 int thumb_thickness_;
55 int track_start_;
56 bool is_left_side_vertical_scrollbar_;
57
58 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer);
59 };
60
61 } // namespace cc
62
63 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/solid_color_layer_impl_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