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

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: Rebased patch as it's sat for a while. Created 7 years, 4 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 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_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 int scroll_layer_id() const { return scroll_layer_id_; }
17 virtual void SetScrollLayerId(int id) = 0;
18
19 ScrollbarOrientation orientation() const { return orientation_; }
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 // This member is set through the derived classes.
29 int scroll_layer_id_;
30
31 private:
32 ScrollbarOrientation orientation_;
33
34 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerBase);
35 };
36
37 } // namespace cc
38
39 #endif // CC_LAYERS_SCROLLBAR_LAYER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698