Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: cc/scrollbar_layer_impl_base.h

Issue 11573015: Create abstract common base class for impl scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased for landing Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scrollbar_layer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_layer_impl_base.h
diff --git a/cc/scrollbar_layer_impl_base.h b/cc/scrollbar_layer_impl_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..4a0f54ae77a8bed448eae03e6a21e712f4cb2eeb
--- /dev/null
+++ b/cc/scrollbar_layer_impl_base.h
@@ -0,0 +1,30 @@
+// 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_SCROLLBAR_LAYER_IMPL_BASE_H_
+#define CC_SCROLLBAR_LAYER_IMPL_BASE_H_
+
+#include "cc/cc_export.h"
+#include "cc/layer_impl.h"
+#include <public/WebScrollbar.h>
+
+namespace cc {
+
+class CC_EXPORT ScrollbarLayerImplBase : public LayerImpl {
+public:
+ virtual ~ScrollbarLayerImplBase() { }
+
+ virtual float currentPos() const = 0;
+ virtual int totalSize() const = 0;
+ virtual int maximum() const = 0;
+ virtual WebKit::WebScrollbar::Orientation orientation() const = 0;
+
+protected:
+ ScrollbarLayerImplBase(LayerTreeImpl* treeImpl, int id)
+ : LayerImpl(treeImpl, id) { }
+
+};
+
+} // namespace cc
+#endif // CC_SCROLLBAR_LAYER_IMPL_BASE_H_
« no previous file with comments | « cc/scrollbar_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698