1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_widget_ThemeCocoa_h
8 #define mozilla_widget_ThemeCocoa_h
12 #include "ScrollbarDrawingCocoa.h"
14 namespace mozilla::widget
{
16 class ThemeCocoa
: public Theme
{
18 explicit ThemeCocoa(UniquePtr
<ScrollbarDrawing
>&& aScrollbarDrawing
)
19 : Theme(std::move(aScrollbarDrawing
)) {}
21 NS_IMETHOD
GetMinimumWidgetSize(nsPresContext
* aPresContext
, nsIFrame
* aFrame
,
22 StyleAppearance aAppearance
,
23 mozilla::LayoutDeviceIntSize
* aResult
,
24 bool* aIsOverridable
) override
;
26 ThemeGeometryType
ThemeGeometryTypeForWidget(nsIFrame
*,
27 StyleAppearance
) override
;
28 bool ThemeSupportsWidget(nsPresContext
*, nsIFrame
*, StyleAppearance
) override
;
31 virtual ~ThemeCocoa() = default;
34 } // namespace mozilla::widget