OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BLINK_SCROLLBAR_IMPL_H_ | 5 #ifndef CC_BLINK_SCROLLBAR_IMPL_H_ |
6 #define CC_BLINK_SCROLLBAR_IMPL_H_ | 6 #define CC_BLINK_SCROLLBAR_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 gfx::Point Location() const override; | 33 gfx::Point Location() const override; |
34 int ThumbThickness() const override; | 34 int ThumbThickness() const override; |
35 int ThumbLength() const override; | 35 int ThumbLength() const override; |
36 gfx::Rect TrackRect() const override; | 36 gfx::Rect TrackRect() const override; |
37 float ThumbOpacity() const override; | 37 float ThumbOpacity() const override; |
38 bool NeedsPaintPart(cc::ScrollbarPart part) const override; | 38 bool NeedsPaintPart(cc::ScrollbarPart part) const override; |
39 void PaintPart(SkCanvas* canvas, | 39 void PaintPart(SkCanvas* canvas, |
40 cc::ScrollbarPart part, | 40 cc::ScrollbarPart part, |
41 const gfx::Rect& content_rect) override; | 41 const gfx::Rect& content_rect) override; |
42 | 42 |
| 43 bool UsesNinePatchThumbResource() const override; |
| 44 gfx::Size NinePatchThumbCanvasSize() const override; |
| 45 gfx::Rect NinePatchThumbAperture() const override; |
| 46 |
43 private: | 47 private: |
44 std::unique_ptr<blink::WebScrollbar> scrollbar_; | 48 std::unique_ptr<blink::WebScrollbar> scrollbar_; |
45 blink::WebScrollbarThemePainter painter_; | 49 blink::WebScrollbarThemePainter painter_; |
46 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry_; | 50 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry_; |
47 | 51 |
48 DISALLOW_COPY_AND_ASSIGN(ScrollbarImpl); | 52 DISALLOW_COPY_AND_ASSIGN(ScrollbarImpl); |
49 }; | 53 }; |
50 | 54 |
51 } // namespace cc_blink | 55 } // namespace cc_blink |
52 | 56 |
53 #endif // CC_BLINK_SCROLLBAR_IMPL_H_ | 57 #endif // CC_BLINK_SCROLLBAR_IMPL_H_ |
OLD | NEW |