From 895fe73248a6fd6099520abd1e4fe7eaace89e0f Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Tue, 2 Feb 1999 18:37:20 +0000 Subject: [PATCH] Initial checkin --- silentdl/tests/Example.html | 40 +++----- .../SDLEdit.html => xpfe/AppCores/MANIFEST | 0 xpfe/AppCores/Makefile.in | 33 +++++++ xpfe/AppCores/idl/AppCores.idl | 0 xpfe/AppCores/idl/BaseAppCore.idl | 14 +++ xpfe/AppCores/idl/BrowserAppCore.idl | 19 ++++ xpfe/AppCores/idl/MailCore.idl | 0 xpfe/AppCores/idl/Toolbar.idl | 13 +++ xpfe/AppCores/makefile.win | 95 +++++++++++++++++++ xpfe/AppCores/nsAppCores.cpp | 0 xpfe/AppCores/nsAppCores.h | 0 xpfe/AppCores/nsAppCoresCIDs.h | 0 xpfe/AppCores/nsAppCoresManager.cpp | 0 xpfe/AppCores/nsAppCoresManager.h | 0 xpfe/AppCores/nsAppCoresManagerFactory.cpp | 0 xpfe/AppCores/nsAppCoresManagerFactory.h | 0 xpfe/AppCores/nsAppCoresNameSet.cpp | 0 xpfe/AppCores/nsAppCoresNameSet.h | 0 xpfe/AppCores/nsBaseAppCore.cpp | 0 xpfe/AppCores/nsBaseAppCore.h | 0 xpfe/AppCores/nsBrowserAppCore.cpp | 0 xpfe/AppCores/nsBrowserAppCore.h | 0 xpfe/AppCores/nsBrowserAppCoreFactory.cpp | 0 xpfe/AppCores/nsBrowserAppCoreFactory.h | 0 xpfe/AppCores/nsIDOMAppCores.h | 0 xpfe/AppCores/nsIDOMBaseAppCore.h | 0 xpfe/AppCores/nsIDOMBrowserAppCore.h | 0 xpfe/AppCores/nsIDOMMailCore.h | 0 xpfe/AppCores/nsIDOMToolbarCore.h | 0 xpfe/AppCores/nsJSAppCores.cpp | 0 xpfe/AppCores/nsJSBaseAppCore.cpp | 0 xpfe/AppCores/nsJSBrowserAppCore.cpp | 0 xpfe/AppCores/nsJSMailCore.cpp | 0 xpfe/AppCores/nsJSToolbarCore.cpp | 0 xpfe/AppCores/nsMailCore.cpp | 0 xpfe/AppCores/nsMailCore.h | 0 xpfe/AppCores/nsMailCoreFactory.cpp | 0 xpfe/AppCores/nsMailCoreFactory.h | 0 xpfe/AppCores/nsToolbarCore.cpp | 0 xpfe/AppCores/nsToolbarCore.h | 0 xpfe/AppCores/nsToolbarCoreFactory.cpp | 0 xpfe/AppCores/nsToolbarCoreFactory.h | 0 42 files changed, 185 insertions(+), 29 deletions(-) rename silentdl/tests/SDLEdit.html => xpfe/AppCores/MANIFEST (100%) create mode 100644 xpfe/AppCores/Makefile.in create mode 100644 xpfe/AppCores/idl/AppCores.idl create mode 100644 xpfe/AppCores/idl/BaseAppCore.idl create mode 100644 xpfe/AppCores/idl/BrowserAppCore.idl create mode 100644 xpfe/AppCores/idl/MailCore.idl create mode 100644 xpfe/AppCores/idl/Toolbar.idl create mode 100644 xpfe/AppCores/makefile.win create mode 100644 xpfe/AppCores/nsAppCores.cpp create mode 100644 xpfe/AppCores/nsAppCores.h create mode 100644 xpfe/AppCores/nsAppCoresCIDs.h create mode 100644 xpfe/AppCores/nsAppCoresManager.cpp create mode 100644 xpfe/AppCores/nsAppCoresManager.h create mode 100644 xpfe/AppCores/nsAppCoresManagerFactory.cpp create mode 100644 xpfe/AppCores/nsAppCoresManagerFactory.h create mode 100644 xpfe/AppCores/nsAppCoresNameSet.cpp create mode 100644 xpfe/AppCores/nsAppCoresNameSet.h create mode 100644 xpfe/AppCores/nsBaseAppCore.cpp create mode 100644 xpfe/AppCores/nsBaseAppCore.h create mode 100644 xpfe/AppCores/nsBrowserAppCore.cpp create mode 100644 xpfe/AppCores/nsBrowserAppCore.h create mode 100644 xpfe/AppCores/nsBrowserAppCoreFactory.cpp create mode 100644 xpfe/AppCores/nsBrowserAppCoreFactory.h create mode 100644 xpfe/AppCores/nsIDOMAppCores.h create mode 100644 xpfe/AppCores/nsIDOMBaseAppCore.h create mode 100644 xpfe/AppCores/nsIDOMBrowserAppCore.h create mode 100644 xpfe/AppCores/nsIDOMMailCore.h create mode 100644 xpfe/AppCores/nsIDOMToolbarCore.h create mode 100644 xpfe/AppCores/nsJSAppCores.cpp create mode 100644 xpfe/AppCores/nsJSBaseAppCore.cpp create mode 100644 xpfe/AppCores/nsJSBrowserAppCore.cpp create mode 100644 xpfe/AppCores/nsJSMailCore.cpp create mode 100644 xpfe/AppCores/nsJSToolbarCore.cpp create mode 100644 xpfe/AppCores/nsMailCore.cpp create mode 100644 xpfe/AppCores/nsMailCore.h create mode 100644 xpfe/AppCores/nsMailCoreFactory.cpp create mode 100644 xpfe/AppCores/nsMailCoreFactory.h create mode 100644 xpfe/AppCores/nsToolbarCore.cpp create mode 100644 xpfe/AppCores/nsToolbarCore.h create mode 100644 xpfe/AppCores/nsToolbarCoreFactory.cpp create mode 100644 xpfe/AppCores/nsToolbarCoreFactory.h diff --git a/silentdl/tests/Example.html b/silentdl/tests/Example.html index 510a841d80f..609df8bad4c 100644 --- a/silentdl/tests/Example.html +++ b/silentdl/tests/Example.html @@ -1,43 +1,25 @@ - SilentDownload Test Page + AppProcesses Test Page diff --git a/silentdl/tests/SDLEdit.html b/xpfe/AppCores/MANIFEST similarity index 100% rename from silentdl/tests/SDLEdit.html rename to xpfe/AppCores/MANIFEST diff --git a/xpfe/AppCores/Makefile.in b/xpfe/AppCores/Makefile.in new file mode 100644 index 00000000000..2cc4694a6e9 --- /dev/null +++ b/xpfe/AppCores/Makefile.in @@ -0,0 +1,33 @@ +# +# The contents of this file are subject to the Netscape Public License +# Version 1.0 (the "NPL"); you may not use this file except in +# compliance with the NPL. You may obtain a copy of the NPL at +# http://www.mozilla.org/NPL/ +# +# Software distributed under the NPL is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL +# for the specific language governing rights and limitations under the +# NPL. +# +# The Initial Developer of this code under the NPL is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All Rights +# Reserved. +# + +DEPTH = .. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = silentdl +LIBRARY_NAME = silentdl + +EXPORTS = nsSilentDownload.h nsIDOMSilentDownloadTask.h nsIDOMSilentDownload.h + +EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) + +include $(topsrcdir)/config/rules.mk + diff --git a/xpfe/AppCores/idl/AppCores.idl b/xpfe/AppCores/idl/AppCores.idl new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/idl/BaseAppCore.idl b/xpfe/AppCores/idl/BaseAppCore.idl new file mode 100644 index 00000000000..79cc02ab20a --- /dev/null +++ b/xpfe/AppCores/idl/BaseAppCore.idl @@ -0,0 +1,14 @@ +interface BaseAppCore +{ +/* IID: { 0xbe5c13bd, 0xba9f, 0x11d2, \ + {0x96, 0xc4, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}} */ + + readonly attribute wstring id; + + void BaseAppCore(); + void Init(in wstring id); + + +}; + + diff --git a/xpfe/AppCores/idl/BrowserAppCore.idl b/xpfe/AppCores/idl/BrowserAppCore.idl new file mode 100644 index 00000000000..d8712407af2 --- /dev/null +++ b/xpfe/AppCores/idl/BrowserAppCore.idl @@ -0,0 +1,19 @@ +interface BrowserAppCore : BaseAppCore +{ +/* IID: { 0xb0ffb697, 0xbab4, 0x11d2, \ + {0x96, 0xc4, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}} */ + + void BrowserAppCore(); + + void back(); + void forward(); + void loadUrl(in wstring url); + + void setToolbarWindow(in Window win); + void setContentWindow(in Window win); + + void disableCallback(in wstring script); + void enableCallback(in wstring script); + +}; + diff --git a/xpfe/AppCores/idl/MailCore.idl b/xpfe/AppCores/idl/MailCore.idl new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/idl/Toolbar.idl b/xpfe/AppCores/idl/Toolbar.idl new file mode 100644 index 00000000000..aba560e4777 --- /dev/null +++ b/xpfe/AppCores/idl/Toolbar.idl @@ -0,0 +1,13 @@ +interface ToolbarCore : BaseAppCore +{ +/* IID: { 0xbf4ae23e, 0xba9b, 0x11d2, \ + {0x96, 0xc4, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}} */ + + void ToolbarCore(); + + void SetWindow(in Window win); + void SetStatus(in wstring msg); + +}; + + diff --git a/xpfe/AppCores/makefile.win b/xpfe/AppCores/makefile.win new file mode 100644 index 00000000000..213d6bf8faa --- /dev/null +++ b/xpfe/AppCores/makefile.win @@ -0,0 +1,95 @@ +#!gmake +# +# The contents of this file are subject to the Netscape Public License +# Version 1.0 (the "NPL"); you may not use this file except in +# compliance with the NPL. You may obtain a copy of the NPL at +# http://www.mozilla.org/NPL/ +# +# Software distributed under the NPL is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL +# for the specific language governing rights and limitations under the +# NPL. +# +# The Initial Developer of this code under the NPL is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All Rights +# Reserved. + + +DEPTH=..\.. +IGNORE_MANIFEST=1 + +MAKE_OBJ_TYPE = DLL +MODULE=appcores + +DLL=.\$(OBJDIR)\$(MODULE).dll + +DEFINES=-D_IMPL_NS_DOM -DWIN32_LEAN_AND_MEAN + +LCFLAGS = \ + $(LCFLAGS) \ + $(DEFINES) \ + $(NULL) + +LINCS= \ + -I$(XPDIST)\public\js \ + -I$(XPDIST)\public\netlib \ + -I$(XPDIST)\public\network \ + -I$(XPDIST)\public\dom \ + -I$(XPDIST)\public\xpcom \ + -I$(XPDIST)\public\util \ + -I$(XPDIST)\public\nspr2 \ + -I$(XPDIST)\public\pref \ + -I$(XPDIST)\public\raptor \ + $(NULL) + +LLIBS = \ + $(DIST)\lib\netlib.lib \ + $(DIST)\lib\xpcom32.lib \ + $(DIST)\lib\xppref32.lib \ + $(DIST)\lib\xplib.lib \ + $(DIST)\lib\js3250.lib \ + $(DIST)\lib\jsdombase_s.lib \ + $(DIST)\lib\raptorbase.lib \ + $(DIST)\lib\raptorgfxwin.lib \ + $(LIBNSPR) \ + $(DIST)\lib\libplc21.lib \ + $(NULL) + +OBJS = \ + .\$(OBJDIR)\nsBaseAppCore.obj \ + .\$(OBJDIR)\nsMailCore.obj \ + .\$(OBJDIR)\nsAppCoresNameSet.obj \ + .\$(OBJDIR)\nsToolbarCore.obj \ + .\$(OBJDIR)\nsBrowserAppCore.obj \ + .\$(OBJDIR)\nsMailCoreFactory.obj \ + .\$(OBJDIR)\nsToolbarCoreFactory.obj \ + .\$(OBJDIR)\nsBrowserAppCoreFactory.obj \ + .\$(OBJDIR)\nsAppCoresManager.obj \ + .\$(OBJDIR)\nsAppCoresManagerFactory.obj \ + .\$(OBJDIR)\nsJSBaseAppCore.obj \ + .\$(OBJDIR)\nsJSAppCores.obj \ + .\$(OBJDIR)\nsJSMailCore.obj \ + .\$(OBJDIR)\nsJSToolbarCore.obj \ + .\$(OBJDIR)\nsJSBrowserAppCore.obj \ + .\$(OBJDIR)\nsAppCores.obj \ + $(NULL) + + +EXPORTS= \ + nsIDOMAppCores.h \ + nsIDOMBaseAppCore.h \ + nsIDOMMailCore.h \ + nsIDOMToolbarCore.h \ + nsIDOMBrowserApprCore.h \ + nsAppCoresCIDs.h + +include <$(DEPTH)\config\rules.mak> + +install:: $(DLL) + $(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).dll $(DIST)\bin + $(MAKE_INSTALL) .\$(OBJDIR)\$(MODULE).lib $(DIST)\lib + +clobber:: + rm -f $(DIST)\lib\$(MODULE).lib + rm -f $(DIST)\bin\$(MODULE).dll diff --git a/xpfe/AppCores/nsAppCores.cpp b/xpfe/AppCores/nsAppCores.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCores.h b/xpfe/AppCores/nsAppCores.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresCIDs.h b/xpfe/AppCores/nsAppCoresCIDs.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresManager.cpp b/xpfe/AppCores/nsAppCoresManager.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresManager.h b/xpfe/AppCores/nsAppCoresManager.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresManagerFactory.cpp b/xpfe/AppCores/nsAppCoresManagerFactory.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresManagerFactory.h b/xpfe/AppCores/nsAppCoresManagerFactory.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresNameSet.cpp b/xpfe/AppCores/nsAppCoresNameSet.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsAppCoresNameSet.h b/xpfe/AppCores/nsAppCoresNameSet.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsBaseAppCore.cpp b/xpfe/AppCores/nsBaseAppCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsBaseAppCore.h b/xpfe/AppCores/nsBaseAppCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsBrowserAppCore.cpp b/xpfe/AppCores/nsBrowserAppCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsBrowserAppCore.h b/xpfe/AppCores/nsBrowserAppCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsBrowserAppCoreFactory.cpp b/xpfe/AppCores/nsBrowserAppCoreFactory.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsBrowserAppCoreFactory.h b/xpfe/AppCores/nsBrowserAppCoreFactory.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsIDOMAppCores.h b/xpfe/AppCores/nsIDOMAppCores.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsIDOMBaseAppCore.h b/xpfe/AppCores/nsIDOMBaseAppCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsIDOMBrowserAppCore.h b/xpfe/AppCores/nsIDOMBrowserAppCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsIDOMMailCore.h b/xpfe/AppCores/nsIDOMMailCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsIDOMToolbarCore.h b/xpfe/AppCores/nsIDOMToolbarCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsJSAppCores.cpp b/xpfe/AppCores/nsJSAppCores.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsJSBaseAppCore.cpp b/xpfe/AppCores/nsJSBaseAppCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsJSBrowserAppCore.cpp b/xpfe/AppCores/nsJSBrowserAppCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsJSMailCore.cpp b/xpfe/AppCores/nsJSMailCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsJSToolbarCore.cpp b/xpfe/AppCores/nsJSToolbarCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsMailCore.cpp b/xpfe/AppCores/nsMailCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsMailCore.h b/xpfe/AppCores/nsMailCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsMailCoreFactory.cpp b/xpfe/AppCores/nsMailCoreFactory.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsMailCoreFactory.h b/xpfe/AppCores/nsMailCoreFactory.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsToolbarCore.cpp b/xpfe/AppCores/nsToolbarCore.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsToolbarCore.h b/xpfe/AppCores/nsToolbarCore.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsToolbarCoreFactory.cpp b/xpfe/AppCores/nsToolbarCoreFactory.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpfe/AppCores/nsToolbarCoreFactory.h b/xpfe/AppCores/nsToolbarCoreFactory.h new file mode 100644 index 00000000000..e69de29bb2d