OLD | NEW |
(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_ |
OLD | NEW |