Bug 1884631 - Remove macOS native sheet support. r=mac-reviewers,aleca,kaie,bradwerth
[gecko.git] / widget / ScrollbarDrawingGTK.h
blob162997e127f54614dae20dbbcdffc07a470e71af
1 /* -*- Mode: C++; tab-width: 40; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_widget_ScrollbarDrawingGTK_h
7 #define mozilla_widget_ScrollbarDrawingGTK_h
9 #include "nsITheme.h"
10 #include "nsNativeTheme.h"
11 #include "ScrollbarDrawing.h"
13 namespace mozilla::widget {
15 class ScrollbarDrawingGTK final : public ScrollbarDrawing {
16 public:
17 ScrollbarDrawingGTK() : ScrollbarDrawing(Kind::Gtk) {}
18 virtual ~ScrollbarDrawingGTK() = default;
20 LayoutDeviceIntSize GetMinimumWidgetSize(nsPresContext*,
21 StyleAppearance aAppearance,
22 nsIFrame* aFrame) override;
24 Maybe<nsITheme::Transparency> GetScrollbarPartTransparency(
25 nsIFrame* aFrame, StyleAppearance aAppearance) override;
27 template <typename PaintBackendData>
28 bool DoPaintScrollbarThumb(PaintBackendData&, const LayoutDeviceRect&,
29 ScrollbarKind, nsIFrame*, const ComputedStyle&,
30 const ElementState& aElementState,
31 const DocumentState& aDocumentState, const Colors&,
32 const DPIRatio&);
33 bool PaintScrollbarThumb(DrawTarget&, const LayoutDeviceRect&, ScrollbarKind,
34 nsIFrame*, const ComputedStyle& aStyle,
35 const ElementState& aElementState,
36 const DocumentState& aDocumentState, const Colors&,
37 const DPIRatio&) override;
38 bool PaintScrollbarThumb(WebRenderBackendData&, const LayoutDeviceRect&,
39 ScrollbarKind, nsIFrame*,
40 const ComputedStyle& aStyle,
41 const ElementState& aElementState,
42 const DocumentState& aDocumentState, const Colors&,
43 const DPIRatio&) override;
45 void RecomputeScrollbarParams() override;
47 bool ShouldDrawScrollbarButtons() override;
50 } // namespace mozilla::widget
52 #endif