widget/nsIMacDockSupport.idl

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIStandaloneNativeMenu;
michael@0 8
michael@0 9 /**
michael@0 10 * Allow applications to interface with the Mac OS X Dock.
michael@0 11 *
michael@0 12 * Applications may indicate progress on their Dock icon. Only one such
michael@0 13 * progress indicator is available to the entire application.
michael@0 14 */
michael@0 15
michael@0 16 [scriptable, uuid(8BE66B0C-5F71-4B74-98CF-6C2551B999B1)]
michael@0 17 interface nsIMacDockSupport : nsISupports
michael@0 18 {
michael@0 19 /**
michael@0 20 * Menu to use for application-specific dock menu items.
michael@0 21 */
michael@0 22 attribute nsIStandaloneNativeMenu dockMenu;
michael@0 23
michael@0 24 /**
michael@0 25 * Activate the application. This should be used by an application to
michael@0 26 * activate itself when a dock menu is selected as selection of a dock menu
michael@0 27 * item does not automatically activate the application.
michael@0 28 *
michael@0 29 * @param aIgnoreOtherApplications If false, the application is activated
michael@0 30 * only if no other application is currently active. If true, the
michael@0 31 * application activates regardless.
michael@0 32 */
michael@0 33 void activateApplication(in boolean aIgnoreOtherApplications);
michael@0 34
michael@0 35 /**
michael@0 36 * Text used to badge the dock tile.
michael@0 37 */
michael@0 38 attribute AString badgeText;
michael@0 39 };

mercurial