summaryrefslogtreecommitdiffstats
path: root/widget/nsITaskbarOverlayIconController.idl
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /widget/nsITaskbarOverlayIconController.idl
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'widget/nsITaskbarOverlayIconController.idl')
-rw-r--r--widget/nsITaskbarOverlayIconController.idl39
1 files changed, 39 insertions, 0 deletions
diff --git a/widget/nsITaskbarOverlayIconController.idl b/widget/nsITaskbarOverlayIconController.idl
new file mode 100644
index 000000000..f11cf16ed
--- /dev/null
+++ b/widget/nsITaskbarOverlayIconController.idl
@@ -0,0 +1,39 @@
+/* -*- Mode: IDL; 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/. */
+
+#include "nsISupports.idl"
+
+interface imgIContainer;
+
+/**
+ * Starting in Windows 7, applications can display an overlay on the icon in
+ * the taskbar. This class wraps around the native functionality to do this.
+ */
+[scriptable, uuid(b1858889-a698-428a-a14b-b5d60cff6de2)]
+interface nsITaskbarOverlayIconController : nsISupports
+{
+ /**
+ * Sets the overlay icon and its corresponding alt text.
+ *
+ * @param statusIcon The handle to the overlay icon. The icon will be scaled
+ * to the small icon size (16x16 at 96 dpi). Can be null, in
+ * which case if the taskbar button represents a single window
+ * the icon is removed.
+ * @param statusDescription The alt text version of the information
+ * conveyed by the overlay, for accessibility
+ * purposes.
+ *
+ * @note The behavior for window groups is managed by Windows.
+ * - If an overlay icon is set for any window in a window group and another
+ * overlay icon is already applied to the corresponding taskbar button, that
+ * existing overlay is replaced.
+ * - If null is passed in to replace the overlay currently being displayed,
+ * and if a previous overlay set for a different window in the group is
+ * still available, then that previous overlay is displayed.
+ */
+ void setOverlayIcon(in imgIContainer statusIcon,
+ in AString statusDescription);
+};