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

Unified Diff: cc/test/fake_web_scrollbar.cc

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_web_scrollbar.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_web_scrollbar.cc
diff --git a/cc/test/fake_web_scrollbar.cc b/cc/test/fake_web_scrollbar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..eafda6705f7ef1ca2ba8436cd02de60232770cb1
--- /dev/null
+++ b/cc/test/fake_web_scrollbar.cc
@@ -0,0 +1,69 @@
+// 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.
+
+#include "cc/test/fake_web_scrollbar.h"
+
+namespace cc {
+
+bool FakeWebScrollbar::isOverlay() const {
+ return false;
+}
+
+int FakeWebScrollbar::value() const {
+ return 0;
+}
+
+WebKit::WebPoint FakeWebScrollbar::location() const {
+ return WebKit::WebPoint();
+}
+
+WebKit::WebSize FakeWebScrollbar::size() const {
+ return WebKit::WebSize();
+}
+
+bool FakeWebScrollbar::enabled() const {
+ return true;
+}
+
+int FakeWebScrollbar::maximum() const {
+ return 0;
+}
+
+int FakeWebScrollbar::totalSize() const {
+ return 0;
+}
+
+bool FakeWebScrollbar::isScrollViewScrollbar() const {
+ return false;
+}
+
+bool FakeWebScrollbar::isScrollableAreaActive() const {
+ return true;
+}
+
+WebKit::WebScrollbar::ScrollbarControlSize FakeWebScrollbar::controlSize() const {
+ return WebScrollbar::RegularScrollbar;
+}
+
+WebKit::WebScrollbar::ScrollbarPart FakeWebScrollbar::pressedPart() const {
+ return WebScrollbar::NoPart;
+}
+
+WebKit::WebScrollbar::ScrollbarPart FakeWebScrollbar::hoveredPart() const {
+ return WebScrollbar::NoPart;
+}
+
+WebKit::WebScrollbar::ScrollbarOverlayStyle FakeWebScrollbar::scrollbarOverlayStyle() const {
+ return WebScrollbar::ScrollbarOverlayStyleDefault;
+}
+
+bool FakeWebScrollbar::isCustomScrollbar() const {
+ return false;
+}
+
+WebKit::WebScrollbar::Orientation FakeWebScrollbar::orientation() const {
+ return WebScrollbar::Horizontal;
+}
+
+} // namespace cc
« no previous file with comments | « cc/test/fake_web_scrollbar.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698