| 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 "base/macros.h" |
| 9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 class CC_EXPORT ScrollbarLayerInterface { | 14 class CC_EXPORT ScrollbarLayerInterface { |
| 15 public: | 15 public: |
| 16 virtual ElementId scroll_element_id() const = 0; | 16 virtual ElementId scroll_element_id() const = 0; |
| 17 // TODO(pdr): Remove layer_id and refactor scrollbars to just use element ids. | 17 virtual void SetScrollElementId(ElementId element_id) = 0; |
| 18 virtual void SetScrollInfo(int layer_id, ElementId element_id) = 0; | |
| 19 | 18 |
| 20 virtual ScrollbarOrientation orientation() const = 0; | 19 virtual ScrollbarOrientation orientation() const = 0; |
| 21 | 20 |
| 22 protected: | 21 protected: |
| 23 ScrollbarLayerInterface() {} | 22 ScrollbarLayerInterface() {} |
| 24 virtual ~ScrollbarLayerInterface() {} | 23 virtual ~ScrollbarLayerInterface() {} |
| 25 | 24 |
| 26 private: | 25 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerInterface); | 26 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerInterface); |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 } // namespace cc | 29 } // namespace cc |
| 31 | 30 |
| 32 #endif // CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ | 31 #endif // CC_LAYERS_SCROLLBAR_LAYER_INTERFACE_H_ |
| OLD | NEW |