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

Side by Side Diff: webkit/compositor/test/FakeWebScrollbarThemeGeometry.h

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FakeWebScrollbarThemeGeometry_h
6 #define FakeWebScrollbarThemeGeometry_h
7
8 #include <public/WebScrollbarThemeGeometry.h>
9 #include <wtf/PassOwnPtr.h>
10
11 namespace WebKit {
12
13 class FakeWebScrollbarThemeGeometry : public WebKit::WebScrollbarThemeGeometry {
14 public:
15 static PassOwnPtr<WebKit::WebScrollbarThemeGeometry> create() { return adopt Ptr(new WebKit::FakeWebScrollbarThemeGeometry()); }
16
17 virtual WebKit::WebScrollbarThemeGeometry* clone() const OVERRIDE
18 {
19 return new FakeWebScrollbarThemeGeometry();
20 }
21
22 virtual int thumbPosition(WebScrollbar*) OVERRIDE { return 0; }
23 virtual int thumbLength(WebScrollbar*) OVERRIDE { return 0; }
24 virtual int trackPosition(WebScrollbar*) OVERRIDE { return 0; }
25 virtual int trackLength(WebScrollbar*) OVERRIDE { return 0; }
26 virtual bool hasButtons(WebScrollbar*) OVERRIDE { return false; }
27 virtual bool hasThumb(WebScrollbar*) OVERRIDE { return false; }
28 virtual WebRect trackRect(WebScrollbar*) OVERRIDE { return WebRect(); }
29 virtual WebRect thumbRect(WebScrollbar*) OVERRIDE { return WebRect(); }
30 virtual int minimumThumbLength(WebScrollbar*) OVERRIDE { return 0; }
31 virtual int scrollbarThickness(WebScrollbar*) OVERRIDE { return 0; }
32 virtual WebRect backButtonStartRect(WebScrollbar*) OVERRIDE { return WebRect (); }
33 virtual WebRect backButtonEndRect(WebScrollbar*) OVERRIDE { return WebRect() ; }
34 virtual WebRect forwardButtonStartRect(WebScrollbar*) OVERRIDE { return WebR ect(); }
35 virtual WebRect forwardButtonEndRect(WebScrollbar*) OVERRIDE { return WebRec t(); }
36 virtual WebRect constrainTrackRectToTrackPieces(WebScrollbar*, const WebRect &) OVERRIDE { return WebRect(); }
37
38 virtual void splitTrack(WebScrollbar*, const WebRect& track, WebRect& startT rack, WebRect& thumb, WebRect& endTrack) OVERRIDE
39 {
40 startTrack = WebRect();
41 thumb = WebRect();
42 endTrack = WebRect();
43 }
44 };
45
46 } // namespace WebKit
47
48 #endif // FakeWebScrollbarThemeGeometry_h
OLDNEW
« no previous file with comments | « webkit/compositor/stubs/public/WebTransformationMatrix.h ('k') | webkit/compositor/test/WebLayerTreeViewTestCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698