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 CC_TEST_FAKE_WEB_SCROLLBAR_H_ | 5 #ifndef CC_TEST_FAKE_WEB_SCROLLBAR_H_ |
6 #define CC_TEST_FAKE_WEB_SCROLLBAR_H_ | 6 #define CC_TEST_FAKE_WEB_SCROLLBAR_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual void getTickmarks( | 31 virtual void getTickmarks( |
32 WebKit::WebVector<WebKit::WebRect>& tickmarks /* NOLINT */) const | 32 WebKit::WebVector<WebKit::WebRect>& tickmarks /* NOLINT */) const |
33 OVERRIDE {} | 33 OVERRIDE {} |
34 virtual ScrollbarControlSize controlSize() const OVERRIDE; | 34 virtual ScrollbarControlSize controlSize() const OVERRIDE; |
35 virtual ScrollbarPart pressedPart() const OVERRIDE; | 35 virtual ScrollbarPart pressedPart() const OVERRIDE; |
36 virtual ScrollbarPart hoveredPart() const OVERRIDE; | 36 virtual ScrollbarPart hoveredPart() const OVERRIDE; |
37 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE; | 37 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const OVERRIDE; |
38 virtual bool isCustomScrollbar() const OVERRIDE; | 38 virtual bool isCustomScrollbar() const OVERRIDE; |
39 virtual Orientation orientation() const OVERRIDE; | 39 virtual Orientation orientation() const OVERRIDE; |
40 | 40 |
| 41 void SetLocation(const WebKit::WebPoint& location); |
| 42 |
41 private: | 43 private: |
42 FakeWebScrollbar(); | 44 FakeWebScrollbar(); |
43 | 45 |
44 bool is_overlay_; | 46 bool is_overlay_; |
| 47 WebKit::WebPoint location_; |
45 }; | 48 }; |
46 | 49 |
47 } // namespace cc | 50 } // namespace cc |
48 | 51 |
49 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_ | 52 #endif // CC_TEST_FAKE_WEB_SCROLLBAR_H_ |
OLD | NEW |