Blame widget/nsITaskbarOverlayIconController.idl

Packit f0b94e
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
Packit f0b94e
 *
Packit f0b94e
 * This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
Packit f0b94e
#include "nsISupports.idl"
Packit f0b94e
Packit f0b94e
interface imgIContainer;
Packit f0b94e
Packit f0b94e
/**
Packit f0b94e
 * Starting in Windows 7, applications can display an overlay on the icon in
Packit f0b94e
 * the taskbar. This class wraps around the native functionality to do this.
Packit f0b94e
 */
Packit f0b94e
[scriptable, uuid(b1858889-a698-428a-a14b-b5d60cff6de2)]
Packit f0b94e
interface nsITaskbarOverlayIconController : nsISupports
Packit f0b94e
{
Packit f0b94e
  /**
Packit f0b94e
   * Sets the overlay icon and its corresponding alt text.
Packit f0b94e
   *
Packit f0b94e
   * @param statusIcon The handle to the overlay icon. The icon will be scaled
Packit f0b94e
   *                   to the small icon size (16x16 at 96 dpi). Can be null, in
Packit f0b94e
   *                   which case if the taskbar button represents a single window
Packit f0b94e
   *                   the icon is removed.
Packit f0b94e
   * @param statusDescription The alt text version of the information
Packit f0b94e
   *                          conveyed by the overlay, for accessibility
Packit f0b94e
   *                          purposes.
Packit f0b94e
   *
Packit f0b94e
   * @note The behavior for window groups is managed by Windows.
Packit f0b94e
   * - If an overlay icon is set for any window in a window group and another
Packit f0b94e
   *   overlay icon is already applied to the corresponding taskbar button, that
Packit f0b94e
   *   existing overlay is replaced.
Packit f0b94e
   * - If null is passed in to replace the overlay currently being displayed,
Packit f0b94e
   *   and if a previous overlay set for a different window in the group is
Packit f0b94e
   *   still available, then that previous overlay is displayed.
Packit f0b94e
   */
Packit f0b94e
  void setOverlayIcon(in imgIContainer statusIcon,
Packit f0b94e
                      in AString statusDescription);
Packit f0b94e
};