| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef LayoutScrollbarTheme_h | 26 #ifndef LayoutScrollbarTheme_h |
| 27 #define LayoutScrollbarTheme_h | 27 #define LayoutScrollbarTheme_h |
| 28 | 28 |
| 29 #include "platform/scroll/ScrollbarTheme.h" | 29 #include "platform/scroll/ScrollbarTheme.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class Page; |
| 33 class PlatformMouseEvent; | 34 class PlatformMouseEvent; |
| 34 | 35 |
| 35 class LayoutScrollbarTheme final : public ScrollbarTheme { | 36 class LayoutScrollbarTheme final : public ScrollbarTheme { |
| 36 public: | 37 public: |
| 37 ~LayoutScrollbarTheme() override { } | 38 ~LayoutScrollbarTheme() override { } |
| 38 | 39 |
| 39 int scrollbarThickness(ScrollbarControlSize controlSize) override { return S
crollbarTheme::theme().scrollbarThickness(controlSize); } | 40 int scrollbarThickness(ScrollbarControlSize controlSize) override { return S
crollbarTheme::theme().scrollbarThickness(controlSize); } |
| 40 | 41 |
| 41 WebScrollbarButtonsPlacement buttonsPlacement() const override { return Scro
llbarTheme::theme().buttonsPlacement(); } | 42 WebScrollbarButtonsPlacement buttonsPlacement() const override { return Scro
llbarTheme::theme().buttonsPlacement(); } |
| 42 | 43 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 66 IntRect trackRect(const ScrollbarThemeClient&, bool painting = false) overri
de; | 67 IntRect trackRect(const ScrollbarThemeClient&, bool painting = false) overri
de; |
| 67 | 68 |
| 68 void paintScrollbarBackground(GraphicsContext&, const ScrollbarThemeClient&)
override; | 69 void paintScrollbarBackground(GraphicsContext&, const ScrollbarThemeClient&)
override; |
| 69 void paintTrackBackground(GraphicsContext&, const ScrollbarThemeClient&, con
st IntRect&) override; | 70 void paintTrackBackground(GraphicsContext&, const ScrollbarThemeClient&, con
st IntRect&) override; |
| 70 void paintTrackPiece(GraphicsContext&, const ScrollbarThemeClient&, const In
tRect&, ScrollbarPart) override; | 71 void paintTrackPiece(GraphicsContext&, const ScrollbarThemeClient&, const In
tRect&, ScrollbarPart) override; |
| 71 void paintButton(GraphicsContext&, const ScrollbarThemeClient&, const IntRec
t&, ScrollbarPart) override; | 72 void paintButton(GraphicsContext&, const ScrollbarThemeClient&, const IntRec
t&, ScrollbarPart) override; |
| 72 void paintThumb(GraphicsContext&, const ScrollbarThemeClient&, const IntRect
&) override; | 73 void paintThumb(GraphicsContext&, const ScrollbarThemeClient&, const IntRect
&) override; |
| 73 void paintTickmarks(GraphicsContext&, const ScrollbarThemeClient&, const Int
Rect&) override; | 74 void paintTickmarks(GraphicsContext&, const ScrollbarThemeClient&, const Int
Rect&) override; |
| 74 | 75 |
| 75 IntRect constrainTrackRectToTrackPieces(const ScrollbarThemeClient&, const I
ntRect&) override; | 76 IntRect constrainTrackRectToTrackPieces(const ScrollbarThemeClient&, const I
ntRect&) override; |
| 77 |
| 78 private: |
| 79 static Page* page(const ScrollbarThemeClient&); |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 } // namespace blink | 82 } // namespace blink |
| 79 | 83 |
| 80 #endif // LayoutScrollbarTheme_h | 84 #endif // LayoutScrollbarTheme_h |
| OLD | NEW |