OLD | NEW |
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_SCROLLBAR_LAYER_INTERFACE_H_ | 5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ |
6 #define CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ | 6 #define CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
9 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 class Layer; | 14 class Layer; |
14 class LayerImpl; | 15 class LayerImpl; |
15 | 16 |
16 class CC_EXPORT ScrollbarLayerInterface { | 17 class CC_EXPORT ScrollbarLayerInterface { |
17 public: | 18 public: |
18 virtual int ScrollLayerId() const = 0; | 19 virtual int ScrollLayerId() const = 0; |
19 virtual void SetScrollLayer(int layer_id) = 0; | 20 virtual void SetScrollLayer(int layer_id) = 0; |
20 | 21 |
21 virtual ScrollbarOrientation orientation() const = 0; | 22 virtual ScrollbarOrientation orientation() const = 0; |
22 | 23 |
23 protected: | 24 protected: |
24 ScrollbarLayerInterface() {} | 25 ScrollbarLayerInterface() {} |
25 virtual ~ScrollbarLayerInterface() {} | 26 virtual ~ScrollbarLayerInterface() {} |
26 | 27 |
27 private: | 28 private: |
28 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerInterface); | 29 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerInterface); |
29 }; | 30 }; |
30 | 31 |
31 } // namespace cc | 32 } // namespace cc |
32 | 33 |
33 #endif // CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ | 34 #endif // CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ |
OLD | NEW |