michael@0: /* vim: se cin sw=2 ts=2 et : */ michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface imgIContainer; michael@0: michael@0: /** michael@0: * nsITaskbarPreviewButton michael@0: * michael@0: * Provides access to a window preview's toolbar button's properties. michael@0: */ michael@0: [scriptable, uuid(CED8842D-FE37-4767-9A8E-FDFA56510C75)] michael@0: interface nsITaskbarPreviewButton : nsISupports michael@0: { michael@0: /** michael@0: * The button's tooltip. michael@0: * michael@0: * Default: an empty string michael@0: */ michael@0: attribute DOMString tooltip; michael@0: michael@0: /** michael@0: * True if the array of previews should be dismissed when this button is clicked. michael@0: * michael@0: * Default: false michael@0: */ michael@0: attribute boolean dismissOnClick; michael@0: michael@0: /** michael@0: * True if the taskbar should draw a border around this button's image. michael@0: * michael@0: * Default: true michael@0: */ michael@0: attribute boolean hasBorder; michael@0: michael@0: /** michael@0: * True if the button is disabled. This is not the same as visible. michael@0: * michael@0: * Default: false michael@0: */ michael@0: attribute boolean disabled; michael@0: michael@0: /** michael@0: * The icon used for the button. michael@0: * michael@0: * Default: null michael@0: */ michael@0: attribute imgIContainer image; michael@0: michael@0: /** michael@0: * True if the button is shown. Buttons that are invisible do not michael@0: * participate in the layout of buttons underneath the preview. michael@0: * michael@0: * Default: false michael@0: */ michael@0: attribute boolean visible; michael@0: }; michael@0: