Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / widget / nsITaskbarOverlayIconController.idl
blobbde6efc99a35f6a1dfa1e8d0af87a1c5b77dc340
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 interface imgIContainer;
10 interface nsIURI;
11 interface nsISVGPaintContext;
13 /**
14 * Starting in Windows 7, applications can display an overlay on the icon in
15 * the taskbar. This class wraps around the native functionality to do this.
17 [scriptable, uuid(b1858889-a698-428a-a14b-b5d60cff6de2)]
18 interface nsITaskbarOverlayIconController : nsISupports
20 /**
21 * Sets the overlay icon and its corresponding alt text.
23 * @param statusIcon The handle to the overlay icon. The icon will be scaled
24 * to the small icon size (16x16 at 96 dpi). Can be null, in
25 * which case if the taskbar button represents a single window
26 * the icon is removed.
27 * @param statusDescription The alt text version of the information
28 * conveyed by the overlay, for accessibility
29 * purposes.
30 * @param paintContext Optional context information used when passing an SVG
31 * image. This allows the caller to set the context-fill
32 * and context-stroke properties that would normally
33 * be provided by CSS.
35 * @note The behavior for window groups is managed by Windows.
36 * - If an overlay icon is set for any window in a window group and another
37 * overlay icon is already applied to the corresponding taskbar button, that
38 * existing overlay is replaced.
39 * - If null is passed in to replace the overlay currently being displayed,
40 * and if a previous overlay set for a different window in the group is
41 * still available, then that previous overlay is displayed.
43 void setOverlayIcon(in imgIContainer statusIcon,
44 in AString statusDescription,
45 [optional] in nsISVGPaintContext paintContext);