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 #include
"nsISupports.idl"
9 interface mozIDOMWindowProxy
;
10 interface imgIContainer
;
12 [scriptable
, builtinclass
, uuid(aa8a0ecf
-96a1
-418c
-b80e
-f24ae18bbedc
)]
13 interface nsIWindowsUIUtils
: nsISupports
15 readonly attribute
long systemSmallIconSize
;
16 readonly attribute
long systemLargeIconSize
;
18 void setWindowIcon
(in mozIDOMWindowProxy aWindow
, in imgIContainer aSmallIcon
, in imgIContainer aLargeIcon
);
20 void setWindowIconFromExe
(in mozIDOMWindowProxy aWindow
, in AString aExe
, in unsigned short aIndex
);
22 void setWindowIconNoData
(in mozIDOMWindowProxy aWindow
);
25 * Whether the OS is currently in Win10's Tablet Mode. Always false on
26 * versions of Windows other than Win10.
28 * (Win10 tablet mode is sufficiently different from Win11 tablet mode that
29 * there is no single getter to retrieve whether we're in a generic "tablet
32 readonly attribute
boolean inWin10TabletMode
;
35 * Whether the OS is currently in Windows 11's tablet mode. Always false on
36 * versions of Windows prior to Win11.
38 * (Win11 tablet mode is sufficiently different from Win10 tablet mode that
39 * there is no single getter to retrieve whether we're in a generic "tablet
42 readonly attribute
boolean inWin11TabletMode
;
47 void shareUrl
(in AString shareTitle
, in AString urlToShare
);