Bug 1855360 - Fix the skip-if syntax. a=bustage-fix
[gecko.git] / widget / nsITaskbarTabPreview.idl
blob47520e38a6a9e35045524e95a05d794800c4f64e
1 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "nsITaskbarPreview.idl"
9 interface imgIContainer;
12 * nsITaskbarTabPreview
14 * This interface controls tab preview-specific behavior. Creating an
15 * nsITaskbarTabPreview for a window will hide that window's
16 * nsITaskbarWindowPreview in the taskbar - the native API performs this
17 * unconditionally. When there are no more tab previews for a window, the
18 * nsITaskbarWindowPreview will automatically become visible again.
20 * An application may have as many tab previews per window as memory allows.
23 [scriptable, builtinclass, uuid(11E4C8BD-5C2D-4E1A-A9A1-79DD5B0FE544)]
24 interface nsITaskbarTabPreview : nsITaskbarPreview
26 /**
27 * The title displayed above the thumbnail
29 * Default: an empty string
31 attribute AString title;
33 /**
34 * The icon displayed next to the title in the preview
36 * Default: null
38 attribute imgIContainer icon;
40 /**
41 * Rearranges the preview relative to another tab preview from the same window
42 * @param aNext The preview to the right of this one. A value of null
43 * indicates that the preview is the rightmost one.
45 void move(in nsITaskbarTabPreview aNext);
47 /**
48 * Used internally to grab the handle to the proxy window.
50 [notxpcom]
51 nativeWindow GetHWND();
53 /**
54 * Used internally to ensure that the taskbar knows about this preview. If a
55 * preview is not registered, then the API call to set its sibling (via move)
56 * will silently fail.
58 * This method is only invoked when it is safe to make taskbar API calls.
60 [notxpcom]
61 void EnsureRegistration();