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
"nsISupports.idl"
9 #include
"nsIBaseWindow.idl"
11 interface nsITaskbarPreviewController
;
16 * Common interface for both window and tab taskbar previews. This interface
17 * cannot be instantiated directly.
20 [scriptable
, uuid(CBFDF766
-D002
-403B
-A3D9
-B091C9AD465B
)]
21 interface nsITaskbarPreview
: nsISupports
24 * The controller for this preview. A controller is required to provide
25 * the behavior and appearance of the taskbar previews. It is responsible for
26 * determining the size and contents of the preview, which buttons are
27 * displayed and how the application responds to user actions on the preview.
29 * Neither preview makes full use of the controller. See the documentation
30 * for nsITaskbarWindowPreview and nsITaskbarTabPreview for details on which
31 * controller methods are used.
33 * The controller is not allowed to be null.
35 * @see nsITaskbarPreviewController
37 attribute nsITaskbarPreviewController controller
;
40 * The tooltip displayed above the preview when the user hovers over it
42 * Default: an empty string
44 attribute AString tooltip
;
47 * Whether or not the preview is visible.
49 * Changing this option is expensive for tab previews since toggling this
50 * option will destroy/create the proxy window and its registration with the
51 * taskbar. If any step of that fails, an exception will be thrown.
53 * For window previews, this operation is very cheap.
57 attribute
boolean visible
;
60 * Gets/sets whether or not the preview is marked active (selected) in the
63 attribute
boolean active
;
66 * Invalidates the taskbar's cached image of this preview, forcing a redraw