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 22 matching lines...) Expand all Loading... |
33 class PlatformMouseEvent; | 33 class PlatformMouseEvent; |
34 | 34 |
35 class LayoutScrollbarTheme final : public ScrollbarTheme { | 35 class LayoutScrollbarTheme final : public ScrollbarTheme { |
36 public: | 36 public: |
37 ~LayoutScrollbarTheme() override { } | 37 ~LayoutScrollbarTheme() override { } |
38 | 38 |
39 int scrollbarThickness(ScrollbarControlSize controlSize) override { return S
crollbarTheme::theme()->scrollbarThickness(controlSize); } | 39 int scrollbarThickness(ScrollbarControlSize controlSize) override { return S
crollbarTheme::theme()->scrollbarThickness(controlSize); } |
40 | 40 |
41 ScrollbarButtonsPlacement buttonsPlacement() const override { return Scrollb
arTheme::theme()->buttonsPlacement(); } | 41 ScrollbarButtonsPlacement buttonsPlacement() const override { return Scrollb
arTheme::theme()->buttonsPlacement(); } |
42 | 42 |
43 void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrapper&, co
nst IntRect& cornerRect) override; | 43 void paintScrollCorner(GraphicsContext*, const DisplayItemClient&, const Int
Rect& cornerRect) override; |
44 | 44 |
45 bool shouldCenterOnThumb(const ScrollbarThemeClient* scrollbar, const Platfo
rmMouseEvent& event) override { return ScrollbarTheme::theme()->shouldCenterOnTh
umb(scrollbar, event); } | 45 bool shouldCenterOnThumb(const ScrollbarThemeClient* scrollbar, const Platfo
rmMouseEvent& event) override { return ScrollbarTheme::theme()->shouldCenterOnTh
umb(scrollbar, event); } |
46 bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient* scrollbar, const
PlatformMouseEvent& event) override { return ScrollbarTheme::theme()->shouldSna
pBackToDragOrigin(scrollbar, event); } | 46 bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient* scrollbar, const
PlatformMouseEvent& event) override { return ScrollbarTheme::theme()->shouldSna
pBackToDragOrigin(scrollbar, event); } |
47 | 47 |
48 double initialAutoscrollTimerDelay() override { return ScrollbarTheme::theme
()->initialAutoscrollTimerDelay(); } | 48 double initialAutoscrollTimerDelay() override { return ScrollbarTheme::theme
()->initialAutoscrollTimerDelay(); } |
49 double autoscrollTimerDelay() override { return ScrollbarTheme::theme()->aut
oscrollTimerDelay(); } | 49 double autoscrollTimerDelay() override { return ScrollbarTheme::theme()->aut
oscrollTimerDelay(); } |
50 | 50 |
51 void registerScrollbar(ScrollbarThemeClient* scrollbar) override { return Sc
rollbarTheme::theme()->registerScrollbar(scrollbar); } | 51 void registerScrollbar(ScrollbarThemeClient* scrollbar) override { return Sc
rollbarTheme::theme()->registerScrollbar(scrollbar); } |
52 void unregisterScrollbar(ScrollbarThemeClient* scrollbar) override { return
ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); } | 52 void unregisterScrollbar(ScrollbarThemeClient* scrollbar) override { return
ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); } |
53 | 53 |
(...skipping 17 matching lines...) Expand all Loading... |
71 void paintButton(GraphicsContext*, const ScrollbarThemeClient*, const IntRec
t&, ScrollbarPart) override; | 71 void paintButton(GraphicsContext*, const ScrollbarThemeClient*, const IntRec
t&, ScrollbarPart) override; |
72 void paintThumb(GraphicsContext*, const ScrollbarThemeClient*, const IntRect
&) override; | 72 void paintThumb(GraphicsContext*, const ScrollbarThemeClient*, const IntRect
&) override; |
73 void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, const Int
Rect&) override; | 73 void paintTickmarks(GraphicsContext*, const ScrollbarThemeClient*, const Int
Rect&) override; |
74 | 74 |
75 IntRect constrainTrackRectToTrackPieces(const ScrollbarThemeClient*, const I
ntRect&) override; | 75 IntRect constrainTrackRectToTrackPieces(const ScrollbarThemeClient*, const I
ntRect&) override; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // LayoutScrollbarTheme_h | 80 #endif // LayoutScrollbarTheme_h |
OLD | NEW |