Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / widget / nsIWindowsUIUtils.idl
blobe0904fe4a72be021915139a649f66752573a2770
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);
24 /**
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
30 * mode".)
32 readonly attribute boolean inWin10TabletMode;
34 /**
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
40 * mode".)
42 readonly attribute boolean inWin11TabletMode;
44 /**
45 * Share URL
47 void shareUrl(in AString shareTitle, in AString urlToShare);