From 77650251776ee8bc063d47a9703a8cbb7bb10f4d Mon Sep 17 00:00:00 2001 From: "pepper%netscape.com" Date: Tue, 8 Feb 2000 06:21:25 +0000 Subject: [PATCH] Adding the generic remote public interface and makefiles. Not hooked up to the core build yet. r=sspitzer git-svn-id: svn://10.0.0.236/trunk@60092 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/components/remote/Makefile.in | 32 ++++++++ mozilla/xpfe/components/remote/makefile.win | 26 ++++++ .../components/remote/public/MANIFEST_IDL | 1 + .../xpfe/components/remote/public/Makefile.in | 34 ++++++++ .../components/remote/public/makefile.win | 31 +++++++ .../remote/public/nsIRemoteBrowserControl.idl | 82 +++++++++++++++++++ 6 files changed, 206 insertions(+) create mode 100644 mozilla/xpfe/components/remote/Makefile.in create mode 100644 mozilla/xpfe/components/remote/makefile.win create mode 100644 mozilla/xpfe/components/remote/public/MANIFEST_IDL create mode 100644 mozilla/xpfe/components/remote/public/Makefile.in create mode 100644 mozilla/xpfe/components/remote/public/makefile.win create mode 100644 mozilla/xpfe/components/remote/public/nsIRemoteBrowserControl.idl diff --git a/mozilla/xpfe/components/remote/Makefile.in b/mozilla/xpfe/components/remote/Makefile.in new file mode 100644 index 00000000000..8e79579887a --- /dev/null +++ b/mozilla/xpfe/components/remote/Makefile.in @@ -0,0 +1,32 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = public src + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/xpfe/components/remote/makefile.win b/mozilla/xpfe/components/remote/makefile.win new file mode 100644 index 00000000000..09d593e23d0 --- /dev/null +++ b/mozilla/xpfe/components/remote/makefile.win @@ -0,0 +1,26 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +DIRS=public src + +include <$(DEPTH)\config\rules.mak> diff --git a/mozilla/xpfe/components/remote/public/MANIFEST_IDL b/mozilla/xpfe/components/remote/public/MANIFEST_IDL new file mode 100644 index 00000000000..158bf137975 --- /dev/null +++ b/mozilla/xpfe/components/remote/public/MANIFEST_IDL @@ -0,0 +1 @@ +nsIRemoteBrowserControl.idl diff --git a/mozilla/xpfe/components/remote/public/Makefile.in b/mozilla/xpfe/components/remote/public/Makefile.in new file mode 100644 index 00000000000..ef5a637d189 --- /dev/null +++ b/mozilla/xpfe/components/remote/public/Makefile.in @@ -0,0 +1,34 @@ +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): pepper@netscape.com +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = remote + +XPIDLSRCS = nsIRemoteBrowserControl.idl + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/xpfe/components/remote/public/makefile.win b/mozilla/xpfe/components/remote/public/makefile.win new file mode 100644 index 00000000000..e40d92b7425 --- /dev/null +++ b/mozilla/xpfe/components/remote/public/makefile.win @@ -0,0 +1,31 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public +# License Version 1.1 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy of +# the License at http://www.mozilla.org/NPL/ +# +# Software distributed under the License is distributed on an "AS +# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or +# implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\..\.. + +MODULE=remote + +XPIDLSRCS = \ + .\nsIRemoteBrowserControl.idl \ + $(NULL) + +include <$(DEPTH)\config\rules.mak> + diff --git a/mozilla/xpfe/components/remote/public/nsIRemoteBrowserControl.idl b/mozilla/xpfe/components/remote/public/nsIRemoteBrowserControl.idl new file mode 100644 index 00000000000..31fdaf9c643 --- /dev/null +++ b/mozilla/xpfe/components/remote/public/nsIRemoteBrowserControl.idl @@ -0,0 +1,82 @@ + * -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): pepper@netscape.com + */ + +/* + + The interface to the Remote Browser Component. + +*/ + +#include "nsISupports.idl" + +%{ C++ +#include "nscore.h" // for PRUnichar +%} + +[scriptable, uuid(BCE83AE2-1DD1-11B2-BC0E-A9E997E21AD2)] +interface nsIRemoteBrowserControl : nsISupports +{ + + /* + If aURL is null, a dialog will ask for the url to open. + Setting newWindow to true will create a new window. + */ + + void openURL(in string aURL, in boolean newWindow); + + /* + If URL is null, a dialog will ask for the File to open. + */ + + void openFile(in string aURL); + + /* + If aURL is null, a save as dialog will open. + */ + + void saveAs(in string aURL); + + /* + Pops up a mail dialog with a comma separated list of + addresses in the TO: field. The TO: field may also be NULL. + */ + + void mailto(in wstring mailtoList); + + /* + This will add a bookmark. If the URL is NULL, it will add + the currently opened page. Also accepts an optional title + if aURL is specified. + */ + + void addBookmark(in string aURL, in wstring aTitle); + +}; + +%{ C++ +/* {BCE83AE2-1DD1-11B2-BC0E-A9E997E21AD2} */ +#define NS_REMOTEBROWSERCONTROL_CID \ +{ 0xbce83ae2, 0x1dd1, 0x11b2, { 0xbc, 0x0e, 0xa9, 0xe9, 0x97, 0xe2, 0x1a, 0xd2} } + +#define NS_REMOTEBROWSERCONTROL_PROGID \ + "component://netscape/browser/remote-browser-control" +%}