| 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 23 matching lines...) Expand all Loading... |
| 34 gfx::Point Location() const override; | 34 gfx::Point Location() const override; |
| 35 int ThumbThickness() const override; | 35 int ThumbThickness() const override; |
| 36 int ThumbLength() const override; | 36 int ThumbLength() const override; |
| 37 gfx::Rect TrackRect() const override; | 37 gfx::Rect TrackRect() const override; |
| 38 float ThumbOpacity() const override; | 38 float ThumbOpacity() const override; |
| 39 bool NeedsPaintPart(cc::ScrollbarPart part) const override; | 39 bool NeedsPaintPart(cc::ScrollbarPart part) const override; |
| 40 void PaintPart(cc::PaintCanvas* canvas, | 40 void PaintPart(cc::PaintCanvas* canvas, |
| 41 cc::ScrollbarPart part, | 41 cc::ScrollbarPart part, |
| 42 const gfx::Rect& content_rect) override; | 42 const gfx::Rect& content_rect) override; |
| 43 | 43 |
| 44 bool UsesNinePatchThumbResource() const override; |
| 45 gfx::Size NinePatchThumbCanvasSize() const override; |
| 46 gfx::Rect NinePatchThumbAperture() const override; |
| 47 |
| 44 private: | 48 private: |
| 45 std::unique_ptr<blink::WebScrollbar> scrollbar_; | 49 std::unique_ptr<blink::WebScrollbar> scrollbar_; |
| 46 blink::WebScrollbarThemePainter painter_; | 50 blink::WebScrollbarThemePainter painter_; |
| 47 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry_; | 51 std::unique_ptr<blink::WebScrollbarThemeGeometry> geometry_; |
| 48 | 52 |
| 49 DISALLOW_COPY_AND_ASSIGN(ScrollbarImpl); | 53 DISALLOW_COPY_AND_ASSIGN(ScrollbarImpl); |
| 50 }; | 54 }; |
| 51 | 55 |
| 52 } // namespace cc_blink | 56 } // namespace cc_blink |
| 53 | 57 |
| 54 #endif // CC_BLINK_SCROLLBAR_IMPL_H_ | 58 #endif // CC_BLINK_SCROLLBAR_IMPL_H_ |
| OLD | NEW |