Index: cc/layers/scrollbar_layer_base.h |
diff --git a/cc/layers/scrollbar_layer_base.h b/cc/layers/scrollbar_layer_base.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..172cc56fe62f17158ab48df4a12b24dbcde85110 |
--- /dev/null |
+++ b/cc/layers/scrollbar_layer_base.h |
@@ -0,0 +1,37 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_LAYERS_SCROLLBAR_LAYER_BASE_H_ |
+#define CC_LAYERS_SCROLLBAR_LAYER_BASE_H_ |
+ |
+#include "cc/input/scrollbar.h" |
+ |
+namespace cc { |
+ |
+class Layer; |
+ |
+class ScrollbarLayerBase { |
+ public: |
+ virtual int scroll_layer_id() const; |
+ virtual void SetScrollLayerId(int id) = 0; |
+ |
+ ScrollbarOrientation Orientation() const; |
+ |
+ protected: |
+ ScrollbarLayerBase(int scroll_layer_id, |
+ ScrollbarOrientation orientation) |
+ : scroll_layer_id_(scroll_layer_id), |
+ orientation_(orientation) {} |
+ virtual ~ScrollbarLayerBase(); |
+ |
+ int scroll_layer_id_; |
+ ScrollbarOrientation orientation_; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerBase); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_LAYERS_SCROLLBAR_LAYER_BASE_H_ |