Bug 1761003 [wpt PR 33324] - Add comment pointing to followup bug, and fix typos...
[gecko.git] / widget / windows / WindowsUIUtils.h
blobbf0615608d5120fd17d17c55acea12418f8eed07
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"
10 #include "nsString.h"
11 #include "mozilla/MozPromise.h"
13 using SharePromise =
14 mozilla::MozPromise<bool, nsresult, /* IsExclusive */ true>;
16 class WindowsUIUtils final : public nsIWindowsUIUtils {
17 public:
18 NS_DECL_ISUPPORTS
19 NS_DECL_NSIWINDOWSUIUTILS
21 WindowsUIUtils();
23 static RefPtr<SharePromise> Share(nsAutoString aTitle, nsAutoString aText,
24 nsAutoString aUrl);
26 static void UpdateInTabletMode();
27 static bool GetInTabletMode();
29 // Use LookAndFeel for a cached getter.
30 static bool ComputeOverlayScrollbars();
32 protected:
33 ~WindowsUIUtils();
36 #endif // mozilla_widget_WindowsUIUtils_h__