OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef FakeWebScrollbarThemeGeometry_h | 5 #ifndef CC_TEST_FAKE_WEB_SCROLLBAR_THEME_GEOMETRY_H_ |
6 #define FakeWebScrollbarThemeGeometry_h | 6 #define CC_TEST_FAKE_WEB_SCROLLBAR_THEME_GEOMETRY_H_ |
7 | 7 |
8 #include <public/WebScrollbarThemeGeometry.h> | 8 #include <public/WebScrollbarThemeGeometry.h> |
9 | 9 |
10 namespace WebKit { | 10 namespace WebKit { |
11 | 11 |
12 class FakeWebScrollbarThemeGeometry : public WebKit::WebScrollbarThemeGeometry { | 12 class FakeWebScrollbarThemeGeometry : public WebKit::WebScrollbarThemeGeometry { |
13 public: | 13 public: |
14 static scoped_ptr<WebKit::WebScrollbarThemeGeometry> create() { return scope
d_ptr<WebKit::WebScrollbarThemeGeometry>(new WebKit::FakeWebScrollbarThemeGeomet
ry()); } | 14 static scoped_ptr<WebKit::WebScrollbarThemeGeometry> create() { return scope
d_ptr<WebKit::WebScrollbarThemeGeometry>(new WebKit::FakeWebScrollbarThemeGeomet
ry()); } |
15 | 15 |
16 virtual WebKit::WebScrollbarThemeGeometry* clone() const OVERRIDE | 16 virtual WebKit::WebScrollbarThemeGeometry* clone() const OVERRIDE |
(...skipping 20 matching lines...) Expand all Loading... |
37 virtual void splitTrack(WebScrollbar*, const WebRect& track, WebRect& startT
rack, WebRect& thumb, WebRect& endTrack) OVERRIDE | 37 virtual void splitTrack(WebScrollbar*, const WebRect& track, WebRect& startT
rack, WebRect& thumb, WebRect& endTrack) OVERRIDE |
38 { | 38 { |
39 startTrack = WebRect(); | 39 startTrack = WebRect(); |
40 thumb = WebRect(); | 40 thumb = WebRect(); |
41 endTrack = WebRect(); | 41 endTrack = WebRect(); |
42 } | 42 } |
43 }; | 43 }; |
44 | 44 |
45 } // namespace WebKit | 45 } // namespace WebKit |
46 | 46 |
47 #endif // FakeWebScrollbarThemeGeometry_h | 47 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_THEME_GEOMETRY_H_ |
OLD | NEW |