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

Unified Diff: cc/test/fake_web_scrollbar.h

Issue 11609002: cc: Create a cc::ScrollbarThemePainter and an adapter class in compositor bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notry 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/test/fake_scrollbar_theme_painter.cc ('k') | cc/test/fake_web_scrollbar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_web_scrollbar.h
diff --git a/cc/test/fake_web_scrollbar.h b/cc/test/fake_web_scrollbar.h
new file mode 100644
index 0000000000000000000000000000000000000000..4d8504ab095f23394c1a3695504351f49c58d863
--- /dev/null
+++ b/cc/test/fake_web_scrollbar.h
@@ -0,0 +1,40 @@
+// 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_TEST_FAKE_WEB_SCROLLBAR_H_
+#define CC_TEST_FAKE_WEB_SCROLLBAR_H_
+
+#include "base/memory/scoped_ptr.h"
+#include <public/WebScrollbar.h>
+
+namespace cc {
+
+class FakeWebScrollbar : public WebKit::WebScrollbar {
+ public:
+ static scoped_ptr<FakeWebScrollbar> create() {
+ return make_scoped_ptr(new FakeWebScrollbar());
+ }
+
+ // WebScrollbar implementation
+ virtual bool isOverlay() const OVERRIDE;
+ virtual int value() const OVERRIDE;
+ virtual WebKit::WebPoint location() const OVERRIDE;
+ virtual WebKit::WebSize size() const OVERRIDE;
+ virtual bool enabled() const OVERRIDE;
+ virtual int maximum() const OVERRIDE;
+ virtual int totalSize() const OVERRIDE;
+ virtual bool isScrollViewScrollbar() const OVERRIDE;
+ virtual bool isScrollableAreaActive() const OVERRIDE;
+ virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const OVERRIDE {}
+ virtual ScrollbarControlSize controlSize() const OVERRIDE;
+ virtual ScrollbarPart pressedPart() const OVERRIDE;
+ virtual ScrollbarPart hoveredPart() const OVERRIDE;
+ virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE;
+ virtual bool isCustomScrollbar() const OVERRIDE;
+ virtual Orientation orientation() const OVERRIDE;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_
« no previous file with comments | « cc/test/fake_scrollbar_theme_painter.cc ('k') | cc/test/fake_web_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698