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

Side by Side Diff: cc/layers/scrollbar_layer_base.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: Address tfarina@'s comments. Created 7 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2012 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_SCROLLBAR_LAYER_BASE_H_
6 #define CC_LAYERS_SCROLLBAR_LAYER_BASE_H_
7
8 #include "cc/input/scrollbar.h"
9
10 namespace cc {
11
12 class Layer;
13
14 class ScrollbarLayerBase {
15 public:
16 virtual int scroll_layer_id() const;
17 virtual void SetScrollLayerId(int id) = 0;
18
19 ScrollbarOrientation Orientation() const;
20
21 protected:
22 ScrollbarLayerBase(int scroll_layer_id,
23 ScrollbarOrientation orientation)
24 : scroll_layer_id_(scroll_layer_id),
25 orientation_(orientation) {}
26 virtual ~ScrollbarLayerBase();
27
28 int scroll_layer_id_;
29 ScrollbarOrientation orientation_;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerBase);
33 };
34
35 } // namespace cc
36
37 #endif // CC_LAYERS_SCROLLBAR_LAYER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698