summaryrefslogtreecommitdiffstats
path: root/widget/nsITaskbarTabPreview.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/nsITaskbarTabPreview.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/nsITaskbarTabPreview.idl')
-rw-r--r--widget/nsITaskbarTabPreview.idl63
1 files changed, 63 insertions, 0 deletions
diff --git a/widget/nsITaskbarTabPreview.idl b/widget/nsITaskbarTabPreview.idl
new file mode 100644
index 000000000..0b7ab03cc
--- /dev/null
+++ b/widget/nsITaskbarTabPreview.idl
@@ -0,0 +1,63 @@
+/* vim: se cin sw=2 ts=2 et : */
+/* -*- Mode: C++; 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 "nsITaskbarPreview.idl"
+interface imgIContainer;
+
+/*
+ * nsITaskbarTabPreview
+ *
+ * This interface controls tab preview-specific behavior. Creating an
+ * nsITaskbarTabPreview for a window will hide that window's
+ * nsITaskbarWindowPreview in the taskbar - the native API performs this
+ * unconditionally. When there are no more tab previews for a window, the
+ * nsITaskbarWindowPreview will automatically become visible again.
+ *
+ * An application may have as many tab previews per window as memory allows.
+ *
+ */
+[scriptable, uuid(11E4C8BD-5C2D-4E1A-A9A1-79DD5B0FE544)]
+interface nsITaskbarTabPreview : nsITaskbarPreview
+{
+ /**
+ * The title displayed above the thumbnail
+ *
+ * Default: an empty string
+ */
+ attribute DOMString title;
+
+ /**
+ * The icon displayed next to the title in the preview
+ *
+ * Default: null
+ */
+ attribute imgIContainer icon;
+
+ /**
+ * Rearranges the preview relative to another tab preview from the same window
+ * @param aNext The preview to the right of this one. A value of null
+ * indicates that the preview is the rightmost one.
+ */
+ void move(in nsITaskbarTabPreview aNext);
+
+ /**
+ * Used internally to grab the handle to the proxy window.
+ */
+ [notxpcom]
+ nativeWindow GetHWND();
+
+ /**
+ * Used internally to ensure that the taskbar knows about this preview. If a
+ * preview is not registered, then the API call to set its sibling (via move)
+ * will silently fail.
+ *
+ * This method is only invoked when it is safe to make taskbar API calls.
+ */
+ [notxpcom]
+ void EnsureRegistration();
+};
+