Bug 1051862 Fix fallout from bug 983920 r=IanN

This commit is contained in:
Neil Rashbrook 2014-08-31 19:54:44 +01:00
Родитель 1849a2f84d
Коммит 426ec6fb36
3 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -6,7 +6,7 @@
XPIDL_SOURCES += [
'nsISessionStartup.idl',
'nsISessionStore.idl',
'nsISidebarPanel.idl',
'nsISidebar.idl',
'nsISuiteDownloadManagerUI.idl',
'nsISuiteGlue.idl',
]

Просмотреть файл

@ -12,11 +12,15 @@
#include "nsISupports.idl"
[scriptable, uuid(e0f4c5ee-2b35-4e99-81d2-ab956c4de0d1)]
interface nsISidebarPanel : nsISupports
[scriptable, uuid(97bfa970-8222-4c3f-bbe8-42141e4c7982)]
interface nsISidebar : nsISupports
{
void addPanel(in DOMString aTitle, in DOMString aContentURL,
in DOMString aCustomizeURL);
void addPersistentPanel(in DOMString aTitle, in DOMString aContentURL,
in DOMString aCustomizeURL);
void addSearchEngine(in DOMString engineURL, in DOMString iconURL,
in DOMString suggestedTitle, in DOMString suggestedCategory);
void AddSearchProvider(in DOMString aDescriptionURL);
unsigned long IsSearchProviderInstalled(in DOMString aSearchURL);
};

Просмотреть файл

@ -26,8 +26,6 @@ const CONTAINER_CONTRACTID = "@mozilla.org/rdf/container;1";
const NETSEARCH_CONTRACTID = "@mozilla.org/rdf/datasource;1?name=internetsearch"
const nsISupports = Components.interfaces.nsISupports;
const nsISidebar = Components.interfaces.nsISidebar;
const nsISidebarPanel = Components.interfaces.nsISidebarPanel;
const nsISidebarExternal = Components.interfaces.nsISidebarExternal;
const nsIRDFContainer = Components.interfaces.nsIRDFContainer;
const nsIProperties = Components.interfaces.nsIProperties;
const nsIFileURL = Components.interfaces.nsIFileURL;
@ -304,11 +302,11 @@ nsSidebar.prototype.classInfo = XPCOMUtils.generateCI({
classID: SIDEBAR_CID,
contractID: SIDEBAR_CONTRACTID,
classDescription: "Sidebar",
interfaces: [nsISidebar, nsISidebarPanel, nsISidebarExternal],
interfaces: [nsISidebar],
flags: nsIClassInfo.DOM_OBJECT});
nsSidebar.prototype.QueryInterface =
XPCOMUtils.generateQI([nsISidebar, nsISidebarPanel, nsISidebarExternal]);
XPCOMUtils.generateQI([nsISidebar]);
nsSidebar.prototype.classID = SIDEBAR_CID;