WindowsJumpListShortcutDescription.webidl (1489B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 */ 6 7 /** 8 * A WindowsJumpListShortcutDescription is a structure that describes an entry 9 * to be created in the Windows Jump List. Both tasks, as well as custom 10 * items can be described using this structure. 11 * 12 * nsIJumpListBuilder.populateJumpList accepts arrays of these structures. 13 */ 14 [GenerateInit, GenerateConversionToJS] 15 dictionary WindowsJumpListShortcutDescription { 16 /** 17 * The title of the Jump List item to be displayed to the user. 18 */ 19 required DOMString title; 20 21 /** 22 * The path to the executable that Windows should run when the item is 23 * selected in the Jump List. 24 */ 25 required DOMString path; 26 27 /** 28 * Arguments to be supplied to the executable when the item is selected in 29 * the Jump List. 30 */ 31 DOMString arguments; 32 33 /** 34 * A description of the item that is displayed as a tooltip. 35 */ 36 required DOMString description; 37 38 /** 39 * The path to an icon to assign to the Jump List item. If this is not 40 * supplied then the fallbackIconIndex is used instead. 41 */ 42 DOMString iconPath; 43 44 /** 45 * The icon index associated with the executable at the path to use in the 46 * event that no iconPath is supplied. 47 */ 48 required long fallbackIconIndex; 49 };