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