From 39a2ecfa89981b4636aa9c9b39ae102031205f02 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Thu, 5 Apr 2001 23:09:35 +0000 Subject: [PATCH] new embedding promptservice component. bug 72112 r=hyatt,pinkerton --- allmakefiles.sh | 3 ++ build/mac/build_scripts/MozillaBuildList.pm | 1 + embedding/components/Makefile.in | 2 +- embedding/components/build/Makefile.in | 5 ++- .../build/macbuild/EmbedComponents.mcp | Bin 112506 -> 112506 bytes .../build/macbuild/EmbedComponentsIDL.mcp | Bin 58927 -> 57647 bytes embedding/components/build/makefile.win | 2 + embedding/components/build/nsModule.cpp | 3 ++ embedding/components/makefile.win | 1 + .../components/promptservice/Makefile.in | 0 .../components/promptservice/makefile.win | 0 .../promptservice/public/MANIFEST_IDL | 0 .../promptservice/public/Makefile.in | 0 .../promptservice/public/makefile.win | 0 .../promptservice/public/nsIPromptService.idl | 0 .../components/promptservice/src/Makefile.in | 40 ++++++++++++++++++ .../components/promptservice/src/makefile.win | 0 .../promptservice/src/nsPromptService.cpp | 0 .../promptservice/src/nsPromptService.h | 0 19 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 embedding/components/promptservice/Makefile.in create mode 100644 embedding/components/promptservice/makefile.win create mode 100644 embedding/components/promptservice/public/MANIFEST_IDL create mode 100644 embedding/components/promptservice/public/Makefile.in create mode 100644 embedding/components/promptservice/public/makefile.win create mode 100644 embedding/components/promptservice/public/nsIPromptService.idl create mode 100644 embedding/components/promptservice/src/Makefile.in create mode 100644 embedding/components/promptservice/src/makefile.win create mode 100644 embedding/components/promptservice/src/nsPromptService.cpp create mode 100644 embedding/components/promptservice/src/nsPromptService.h diff --git a/allmakefiles.sh b/allmakefiles.sh index 2792a385310..b7dc071e3f1 100755 --- a/allmakefiles.sh +++ b/allmakefiles.sh @@ -745,6 +745,9 @@ embedding/browser/photon/src/Makefile embedding/browser/photon/tests/Makefile embedding/components/Makefile embedding/components/build/Makefile +embedding/components/promptservice/Makefile +embedding/components/promptservice/public/Makefile +embedding/components/promptservice/src/Makefile embedding/components/windowwatcher/Makefile embedding/components/windowwatcher/public/Makefile embedding/components/windowwatcher/src/Makefile diff --git a/build/mac/build_scripts/MozillaBuildList.pm b/build/mac/build_scripts/MozillaBuildList.pm index 060b3469812..bf323b47b23 100644 --- a/build/mac/build_scripts/MozillaBuildList.pm +++ b/build/mac/build_scripts/MozillaBuildList.pm @@ -719,6 +719,7 @@ sub BuildClientDist() #EMBEDDING InstallFromManifest(":mozilla:embedding:base:MANIFEST_IDL", "$distdirectory:idl:"); InstallFromManifest(":mozilla:embedding:browser:webbrowser:MANIFEST_IDL", "$distdirectory:idl:"); + InstallFromManifest(":mozilla:embedding:components:promptservice:public:MANIFEST_IDL", "$distdirectory:idl:"); InstallFromManifest(":mozilla:embedding:components:windowwatcher:public:MANIFEST_IDL", "$distdirectory:idl:"); InstallFromManifest(":mozilla:embedding:components:appstartup:src:MANIFEST", "$distdirectory:embedding:components:"); diff --git a/embedding/components/Makefile.in b/embedding/components/Makefile.in index 9e8806a1bc7..1fa8f6af894 100644 --- a/embedding/components/Makefile.in +++ b/embedding/components/Makefile.in @@ -24,6 +24,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -DIRS = windowwatcher appstartup build +DIRS = promptservice windowwatcher appstartup build include $(topsrcdir)/config/rules.mk diff --git a/embedding/components/build/Makefile.in b/embedding/components/build/Makefile.in index 07c2d483d7d..a4f17da5753 100644 --- a/embedding/components/build/Makefile.in +++ b/embedding/components/build/Makefile.in @@ -27,12 +27,13 @@ MODULE = embedcomponents LIBRARY_NAME = embedcomponents SHORT_LIBNAME = embedcmp IS_COMPONENT = 1 -REQUIRES = js xpcom string windowwatcher embed_base +REQUIRES = js xpcom string promptservice windowwatcher embed_base CPPSRCS = nsModule.cpp ifeq ($(MOZ_WIDGET_TOOLKIT),os2) EXTRA_DSO_LIBS = \ + promptservice_s \ windowwatcher_s \ appstartupnotifier_s \ $(NULL) @@ -45,6 +46,7 @@ endif else SHARED_LIBRARY_LIBS = \ + $(DIST)/lib/libpromptservice_s.$(LIB_SUFFIX) \ $(DIST)/lib/libwindowwatcher_s.$(LIB_SUFFIX) \ $(DIST)/lib/libappstartupnotifier_s.$(LIB_SUFFIX) \ $(NULL) @@ -56,6 +58,7 @@ endif endif LOCAL_INCLUDES = \ + -I$(srcdir)/../promptservice/src \ -I$(srcdir)/../windowwatcher/src \ -I$(srcdir)/../appstartup/src \ $(NULL) diff --git a/embedding/components/build/macbuild/EmbedComponents.mcp b/embedding/components/build/macbuild/EmbedComponents.mcp index 28e6ed0d4fba7d2f946e91cdcc2c2529018d1584..4f45ae9e9016bd87fd1bf26628e415ca8b67e7d0 100644 GIT binary patch delta 740 zcmZ8fT}YEr7(VaWx9{_3n?DnWO>4W*A_jURm|oQUE7RPEle`J1)Ut(}V}3J(F6u^1 zyl@=ou$zn`(hQlN^b0ByiXf=)sxAzTu0le@pq2&peoHUx9L_oK5AXXt=Q(G4L*Cwy zQ!`+-5JFsl8?F}i1UyBCfqo`I(ZJOv(lBKl*RewP?`->Aro463n#a8&aLV?&|yL7uWgDO1!S$eyumAc?SnWeUWf5qSaqLD*~NkHMxd#QU=bZA9O*T1Vk*S zEmXp|Riu76sBA%5p%&RGlx<#+n3~LHl_lk@{?_+|`qBsqHR+RuufNd5H^X3_pD2?P zs&h9}XA;%iK}9r~1~GdN0HtUI@p-ME zh$Bg_2}>oDXkG5f67FxEvht5_p18KPkFE{rmQZ}P|Hz7h9qLXr9pc>%Xw-|VVF7fz z3*L`H75_2?cjb;r)NqN9O~X;T@{BJ|LuJ`lM9&Xv(GZ@-&)OaK8Z@eO`VeLnnlsAh z=dk8aT3?-mchpJ7u`Fja8Vg<|wzU=Pdg@=@9opTxYryfn3~q|t<86bX3gp-@l|wZ&rc2!Vi#&A|wwLZU??c!(ZE zN)JA_xG2&Dd$6@2#;JLN9(oYLgC(?}La`R{;6Y09q(O|6S_fw4+wYqhc4r&wT4P;% zItT4O##jU>kPnL&5bq?sNp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XJ*9C=K0K?ym9 zHBl4#zMm8}f{05(8+sQ))`TVE1?W2kB_uEdA!|b2@hbFPf)a8X$qd(odR+X)?A9@9 Q5&s}gxxt@v(Dw-bHy=r&!~g&Q diff --git a/embedding/components/build/makefile.win b/embedding/components/build/makefile.win index 58cba14bf6a..f75a15f2374 100644 --- a/embedding/components/build/makefile.win +++ b/embedding/components/build/makefile.win @@ -35,11 +35,13 @@ LLIBS = \ $(LIBNSPR) \ $(DIST)\lib\js3250.lib \ $(DIST)\lib\xpcom.lib \ + $(DIST)\lib\promptservice_s.lib \ $(DIST)\lib\windowwatcher_s.lib \ $(DIST)\lib\appstartupnotifier_s.lib \ $(NULL) INCS = $(INCS) \ + -I$(DEPTH)\embedding\components\promptservice\src \ -I$(DEPTH)\embedding\components\windowwatcher\src \ -I$(DEPTH)\embedding\components\appstartup\src \ $(NULL) diff --git a/embedding/components/build/nsModule.cpp b/embedding/components/build/nsModule.cpp index 7ed9a0d279a..7ba88a3f1b5 100644 --- a/embedding/components/build/nsModule.cpp +++ b/embedding/components/build/nsModule.cpp @@ -21,14 +21,17 @@ */ #include "nsIGenericFactory.h" +#include "nsPromptService.h" #include "nsWindowWatcher.h" #include "nsAppStartupNotifier.h" +NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPromptService, Init) NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsWindowWatcher, Init) NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppStartupNotifier) static nsModuleComponentInfo components[] = { + { "Prompt Service", NS_PROMPTSERVICE_CID, NS_PROMPTSERVICE_CONTRACTID, nsPromptServiceConstructor }, { "Window Watcher", NS_WINDOWWATCHER_CID, NS_WINDOWWATCHER_CONTRACTID, nsWindowWatcherConstructor }, { NS_APPSTARTUPNOTIFIER_CLASSNAME, NS_APPSTARTUPNOTIFIER_CID, NS_APPSTARTUPNOTIFIER_CONTRACTID, nsAppStartupNotifierConstructor } }; diff --git a/embedding/components/makefile.win b/embedding/components/makefile.win index 6f343158981..e2d153a85f9 100644 --- a/embedding/components/makefile.win +++ b/embedding/components/makefile.win @@ -21,6 +21,7 @@ DEPTH=..\.. DIRS= \ + promptservice \ windowwatcher \ appstartup \ build \ diff --git a/embedding/components/promptservice/Makefile.in b/embedding/components/promptservice/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/makefile.win b/embedding/components/promptservice/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/public/MANIFEST_IDL b/embedding/components/promptservice/public/MANIFEST_IDL new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/public/Makefile.in b/embedding/components/promptservice/public/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/public/makefile.win b/embedding/components/promptservice/public/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/public/nsIPromptService.idl b/embedding/components/promptservice/public/nsIPromptService.idl new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/src/Makefile.in b/embedding/components/promptservice/src/Makefile.in new file mode 100644 index 00000000000..fcafc389ec8 --- /dev/null +++ b/embedding/components/promptservice/src/Makefile.in @@ -0,0 +1,40 @@ +# +# The contents of this file are subject to the Mozilla 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/MPL/ +# +# 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, Inc. Portions created by Netscape are +# Copyright (C) 2001, Mozilla. All Rights Reserved. +# +# Contributor(s): + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = embedcomponents +LIBRARY_NAME = promptservice_s +REQUIRES = xpcom string dom promptservice widget js xpconnect caps layout uriloader necko docshell locale webbrwsr embed_base gfx2 + +CPPSRCS = nsPromptService.cpp \ + $(NULL) + +# we don't want the shared lib, but we want to force the creation of a +# static lib. +override NO_SHARED_LIB=1 +override NO_STATIC_LIB= + +include $(topsrcdir)/config/rules.mk + diff --git a/embedding/components/promptservice/src/makefile.win b/embedding/components/promptservice/src/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/src/nsPromptService.cpp b/embedding/components/promptservice/src/nsPromptService.cpp new file mode 100644 index 00000000000..e69de29bb2d diff --git a/embedding/components/promptservice/src/nsPromptService.h b/embedding/components/promptservice/src/nsPromptService.h new file mode 100644 index 00000000000..e69de29bb2d