michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: [scriptable, uuid(fd2450a3-966b-44a9-a8eb-316256bb80b4)] michael@0: interface nsIShellService : nsISupports michael@0: { michael@0: /** michael@0: * This method displays a UI to switch to (or launch) a different task michael@0: */ michael@0: void switchTask(); michael@0: michael@0: /** michael@0: * This method creates a shortcut on a desktop or homescreen that opens in michael@0: * the our application. michael@0: * michael@0: * @param aTitle the user-friendly name of the shortcut. michael@0: * @param aURI the URI to open. michael@0: * @param aIconData a base64-encoded data: URI representation of the shortcut's icon, as accepted by the favicon decoder. michael@0: * @param aIntent how the URI should be opened. Examples: "default", "bookmark" and "webapp" michael@0: */ michael@0: void createShortcut(in AString aTitle, in AString aURI, in AString aIconData, in AString aIntent); michael@0: };