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

Unified Diff: cc/test/fake_web_scrollbar_theme_geometry.h

Issue 11108020: [cc] Change cc_tests.gyp filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 months 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_graphics_context_3d.h ('k') | cc/test/geometry_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_web_scrollbar_theme_geometry.h
diff --git a/cc/test/fake_web_scrollbar_theme_geometry.h b/cc/test/fake_web_scrollbar_theme_geometry.h
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..640da26b123ac8101f5a31d50443bee9c1d286f2 100644
--- a/cc/test/fake_web_scrollbar_theme_geometry.h
+++ b/cc/test/fake_web_scrollbar_theme_geometry.h
@@ -1,3 +1,48 @@
// 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 FakeWebScrollbarThemeGeometry_h
+#define FakeWebScrollbarThemeGeometry_h
+
+#include <public/WebScrollbarThemeGeometry.h>
+#include <wtf/PassOwnPtr.h>
+
+namespace WebKit {
+
+class FakeWebScrollbarThemeGeometry : public WebKit::WebScrollbarThemeGeometry {
+public:
+ static PassOwnPtr<WebKit::WebScrollbarThemeGeometry> create() { return adoptPtr(new WebKit::FakeWebScrollbarThemeGeometry()); }
+
+ virtual WebKit::WebScrollbarThemeGeometry* clone() const OVERRIDE
+ {
+ return new FakeWebScrollbarThemeGeometry();
+ }
+
+ virtual int thumbPosition(WebScrollbar*) OVERRIDE { return 0; }
+ virtual int thumbLength(WebScrollbar*) OVERRIDE { return 0; }
+ virtual int trackPosition(WebScrollbar*) OVERRIDE { return 0; }
+ virtual int trackLength(WebScrollbar*) OVERRIDE { return 0; }
+ virtual bool hasButtons(WebScrollbar*) OVERRIDE { return false; }
+ virtual bool hasThumb(WebScrollbar*) OVERRIDE { return false; }
+ virtual WebRect trackRect(WebScrollbar*) OVERRIDE { return WebRect(); }
+ virtual WebRect thumbRect(WebScrollbar*) OVERRIDE { return WebRect(); }
+ virtual int minimumThumbLength(WebScrollbar*) OVERRIDE { return 0; }
+ virtual int scrollbarThickness(WebScrollbar*) OVERRIDE { return 0; }
+ virtual WebRect backButtonStartRect(WebScrollbar*) OVERRIDE { return WebRect(); }
+ virtual WebRect backButtonEndRect(WebScrollbar*) OVERRIDE { return WebRect(); }
+ virtual WebRect forwardButtonStartRect(WebScrollbar*) OVERRIDE { return WebRect(); }
+ virtual WebRect forwardButtonEndRect(WebScrollbar*) OVERRIDE { return WebRect(); }
+ virtual WebRect constrainTrackRectToTrackPieces(WebScrollbar*, const WebRect&) OVERRIDE { return WebRect(); }
+
+ virtual void splitTrack(WebScrollbar*, const WebRect& track, WebRect& startTrack, WebRect& thumb, WebRect& endTrack) OVERRIDE
+ {
+ startTrack = WebRect();
+ thumb = WebRect();
+ endTrack = WebRect();
+ }
+};
+
+} // namespace WebKit
+
+#endif // FakeWebScrollbarThemeGeometry_h
« no previous file with comments | « cc/test/fake_web_graphics_context_3d.h ('k') | cc/test/geometry_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698