OLD | NEW |
| (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 | |
OLD | NEW |