This commit is contained in:
sspitzer%netscape.com 2000-02-08 07:40:57 +00:00
Родитель 3a8ef3d85e
Коммит c18708e851
2 изменённых файлов: 17 добавлений и 13 удалений

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

@ -29,7 +29,6 @@
[scriptable, uuid(048afcc8-1dd2-11b2-bd86-a45b24375deb)] [scriptable, uuid(048afcc8-1dd2-11b2-bd86-a45b24375deb)]
interface nsIRemoteBrowserControl : nsISupports interface nsIRemoteBrowserControl : nsISupports
{ {
/* /*
If aURL is null, a dialog will ask for the url to open. If aURL is null, a dialog will ask for the url to open.
Setting newWindow to true will create a new window. Setting newWindow to true will create a new window.

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

@ -22,7 +22,7 @@
* Seth Spitzer <sspitzer@netscape.com> * Seth Spitzer <sspitzer@netscape.com>
*/ */
var remoteControlProgID = "component://netscape/browser/remote-browser-control" var remoteControlProgID = "component://netscape/browser/remote-browser-control";
var nsIRemoteBrowserControl = Components.interfaces.nsIRemoteBrowserControl; var nsIRemoteBrowserControl = Components.interfaces.nsIRemoteBrowserControl;
@ -35,27 +35,32 @@ function BrowserRemoteControl() {
var browserRemoteControl = { var browserRemoteControl = {
openURL: function(aURL, newWindow) openURL: function(aURL, newWindow)
{ {
dump("openURL(" + aURL + "," + newWindow + "\n"); dump("openURL(" + aURL + "," + newWindow + ")\n");
} return;
},
openFile: function(aURL) openFile: function(aURL)
{ {
dump("openFile(" + aURL+ "\n"); dump("openFile(" + aURL + ")\n");
} return;
},
saveAs: function(aURL) saveAs: function(aURL)
{ {
dump("saveAs(" + aURL + "\n"); dump("saveAs(" + aURL + ")\n");
} return;
},
mailto: function(mailToList) mailto: function(mailToList)
{ {
dump("mailto(" + mailToList + "\n"); dump("mailto(" + mailToList + ")\n");
} return;
},
addBookmark(aURL, aTitle) addBookmark: function(aURL, aTitle)
{ {
dump("addBookmark(" + aURL + "," + aTitle + "\n"); dump("addBookmark(" + aURL + "," + aTitle + ")\n");
return;
} }
}; };
@ -64,7 +69,7 @@ var module = {
dump("registerSelf for remoteControl\n"); dump("registerSelf for remoteControl\n");
compMgr.registerComponentWithType(this.myCID, compMgr.registerComponentWithType(this.myCID,
"Browser Remote Control", "Browser Remote Control",
remoteControlProgID remoteControlProgID,
fileSpec, location, true, true, fileSpec, location, true, true,
type); type);
}, },