Bug 1847324 - Add use counter for rewritable YouTube flash embeds r=emilio
[gecko.git] / widget / nsITaskbarPreview.idl
blob9bb5f079e71cae2a399f9327c4150b57799d7140
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;
13 /**
14 * nsITaskbarPreview
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
23 /**
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;
39 /**
40 * The tooltip displayed above the preview when the user hovers over it
42 * Default: an empty string
44 attribute AString tooltip;
46 /**
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.
55 * Default: false
57 attribute boolean visible;
59 /**
60 * Gets/sets whether or not the preview is marked active (selected) in the
61 * taskbar.
63 attribute boolean active;
65 /**
66 * Invalidates the taskbar's cached image of this preview, forcing a redraw
67 * if necessary
69 void invalidate();