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
This commit is contained in:
pepper%netscape.com 2000-02-08 06:21:25 +00:00
parent 7fd1f6f8ed
commit 7765025177
6 changed files with 206 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1 @@
nsIRemoteBrowserControl.idl

View File

@ -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

View File

@ -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>

View File

@ -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"
%}