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

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

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile. Created 7 years, 3 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/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
(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 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
18 OVERRIDE;
19
20 static scoped_refptr<SolidColorScrollbarLayer> Create(
21 ScrollbarOrientation orientation,
22 int thumb_thickness,
23 int scroll_layer_id);
24
25 // Layer overrides.
26 virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
27 virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE;
28
29 // ScrollbarLayerInterface
30 virtual int ScrollLayerId() const OVERRIDE;
31 virtual void SetScrollLayerId(int id) OVERRIDE;
32
33 virtual ScrollbarOrientation orientation() const OVERRIDE;
34
35 protected:
36 SolidColorScrollbarLayer(ScrollbarOrientation orientation,
37 int thumb_thickness,
38 int scroll_layer_id);
39 virtual ~SolidColorScrollbarLayer();
40
41 private:
42 int scroll_layer_id_;
43 ScrollbarOrientation orientation_;
44 int thumb_thickness_;
45
46 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer);
47 };
48
49 } // namespace cc
50
51 #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