gecko-dev/widget/nsNativeBasicThemeCocoa.h

37 lines
1.3 KiB
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsNativeBasicThemeCocoa_h
#define nsNativeBasicThemeCocoa_h
#include "nsNativeBasicTheme.h"
#include "ScrollbarDrawingCocoa.h"
class nsNativeBasicThemeCocoa : public nsNativeBasicTheme {
protected:
using ScrollbarDrawingCocoa = mozilla::widget::ScrollbarDrawingCocoa;
public:
explicit nsNativeBasicThemeCocoa(
mozilla::UniquePtr<ScrollbarDrawing>&& aScrollbarDrawing)
: nsNativeBasicTheme(std::move(aScrollbarDrawing)) {}
NS_IMETHOD GetMinimumWidgetSize(nsPresContext* aPresContext, nsIFrame* aFrame,
StyleAppearance aAppearance,
mozilla::LayoutDeviceIntSize* aResult,
bool* aIsOverridable) override;
ThemeGeometryType ThemeGeometryTypeForWidget(nsIFrame*,
StyleAppearance) override;
bool ThemeSupportsWidget(nsPresContext*, nsIFrame*, StyleAppearance) override;
protected:
virtual ~nsNativeBasicThemeCocoa() = default;
};
#endif