1 /* -*- Mode: C++; tab-width: 2; 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_WindowsUIUtils_h__
7 #define mozilla_widget_WindowsUIUtils_h__
9 #include "nsIWindowsUIUtils.h"
11 #include "mozilla/MozPromise.h"
14 mozilla::MozPromise
<bool, nsresult
, /* IsExclusive */ true>;
16 class WindowsUIUtils final
: public nsIWindowsUIUtils
{
19 NS_DECL_NSIWINDOWSUIUTILS
23 static RefPtr
<SharePromise
> Share(nsAutoString aTitle
, nsAutoString aText
,
26 static void UpdateInTabletMode();
27 static bool GetInTabletMode();
29 // Use LookAndFeel for a cached getter.
30 static bool ComputeOverlayScrollbars();
36 #endif // mozilla_widget_WindowsUIUtils_h__