1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/nsITaskbarPreviewButton.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,63 @@ 1.4 +/* vim: se cin sw=2 ts=2 et : */ 1.5 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.6 + * 1.7 + * This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#include "nsISupports.idl" 1.12 + 1.13 +interface imgIContainer; 1.14 + 1.15 +/** 1.16 + * nsITaskbarPreviewButton 1.17 + * 1.18 + * Provides access to a window preview's toolbar button's properties. 1.19 + */ 1.20 +[scriptable, uuid(CED8842D-FE37-4767-9A8E-FDFA56510C75)] 1.21 +interface nsITaskbarPreviewButton : nsISupports 1.22 +{ 1.23 + /** 1.24 + * The button's tooltip. 1.25 + * 1.26 + * Default: an empty string 1.27 + */ 1.28 + attribute DOMString tooltip; 1.29 + 1.30 + /** 1.31 + * True if the array of previews should be dismissed when this button is clicked. 1.32 + * 1.33 + * Default: false 1.34 + */ 1.35 + attribute boolean dismissOnClick; 1.36 + 1.37 + /** 1.38 + * True if the taskbar should draw a border around this button's image. 1.39 + * 1.40 + * Default: true 1.41 + */ 1.42 + attribute boolean hasBorder; 1.43 + 1.44 + /** 1.45 + * True if the button is disabled. This is not the same as visible. 1.46 + * 1.47 + * Default: false 1.48 + */ 1.49 + attribute boolean disabled; 1.50 + 1.51 + /** 1.52 + * The icon used for the button. 1.53 + * 1.54 + * Default: null 1.55 + */ 1.56 + attribute imgIContainer image; 1.57 + 1.58 + /** 1.59 + * True if the button is shown. Buttons that are invisible do not 1.60 + * participate in the layout of buttons underneath the preview. 1.61 + * 1.62 + * Default: false 1.63 + */ 1.64 + attribute boolean visible; 1.65 +}; 1.66 +