diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/paint/custom_scrollbar_theme.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/paint/custom_scrollbar_theme.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/paint/custom_scrollbar_theme.h b/chromium/third_party/blink/renderer/core/paint/custom_scrollbar_theme.h index 7b72703ac91..eecbdda3cd1 100644 --- a/chromium/third_party/blink/renderer/core/paint/custom_scrollbar_theme.h +++ b/chromium/third_party/blink/renderer/core/paint/custom_scrollbar_theme.h @@ -44,8 +44,8 @@ class CustomScrollbarTheme final : public ScrollbarTheme { return GetTheme().ScrollbarThickness(control_size); } - WebScrollbarButtonsPlacement ButtonsPlacement() const override { - return GetTheme().ButtonsPlacement(); + bool NativeThemeHasButtons() override { + return GetTheme().NativeThemeHasButtons(); } void PaintScrollCorner(GraphicsContext&, @@ -89,11 +89,13 @@ class CustomScrollbarTheme final : public ScrollbarTheme { const CustomScrollbar* = nullptr); protected: + ScrollbarPart HitTest(const Scrollbar&, const IntPoint&) override; + bool HasButtons(const Scrollbar&) override; bool HasThumb(const Scrollbar&) override; - IntRect BackButtonRect(const Scrollbar&, ScrollbarPart) override; - IntRect ForwardButtonRect(const Scrollbar&, ScrollbarPart) override; + IntRect BackButtonRect(const Scrollbar&) override; + IntRect ForwardButtonRect(const Scrollbar&) override; IntRect TrackRect(const Scrollbar&) override; void PaintTrackAndButtons(GraphicsContext&, @@ -112,6 +114,7 @@ class CustomScrollbarTheme final : public ScrollbarTheme { const IntRect&) override; private: + IntRect ButtonRect(const Scrollbar&, ScrollbarPart); void PaintScrollbarBackground(GraphicsContext&, const Scrollbar&); void PaintTrackBackground(GraphicsContext&, const Scrollbar&, const IntRect&); void PaintTrackPiece(GraphicsContext&, |