bug 104118 - a non-rdf contractid for windowmediator, to reduce dependencies. r=mkaply, sr=dveditz

This commit is contained in:
alecf%netscape.com 2001-10-12 21:03:40 +00:00
parent 8d587ce55b
commit cf011f78cd
5 changed files with 5 additions and 7 deletions

View File

@ -41,6 +41,9 @@
%{C++
#define NS_WINDOWMEDIATOR_CID \
{ 0x0659cb83, 0xfaad, 0x11d2, { 0x8e, 0x19, 0xb2, 0x06, 0x62, 0x0a, 0x65, 0x7c } }
#define NS_WINDOWMEDIATOR_CONTRACTID \
"@mozilla.org/appshell/window-mediator;1"
%}
interface nsIXULWindow;

View File

@ -58,7 +58,6 @@ REQUIRES += \
intl \
profile \
xpconnect \
rdf \
$(NULL)
endif

View File

@ -31,11 +31,9 @@ REQUIRES = xpcom \
appshell \
layout \
chrome \
rdf \
xpinstall \
xpicleanup \
uriloader \
editor \
view \
windowwatcher \
embed_base \

View File

@ -44,7 +44,6 @@
#include "nsIWidget.h"
#include "nsIAppShellService.h"
#include "nsIProfileInternal.h"
#include "rdf.h"
#include "nsIXULWindow.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
@ -112,7 +111,7 @@ static
nsresult
GetMostRecentWindow(const PRUnichar* aType, nsIDOMWindowInternal** aWindow) {
nsresult rv;
nsCOMPtr<nsIWindowMediator> med( do_GetService( NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator", &rv ) );
nsCOMPtr<nsIWindowMediator> med( do_GetService( NS_WINDOWMEDIATOR_CONTRACTID, &rv ) );
if ( NS_FAILED( rv ) )
return rv;

View File

@ -59,7 +59,6 @@
#include "nsIWidget.h"
#include "nsIAppShellService.h"
#include "nsIProfileInternal.h"
#include "rdf.h"
#include "nsIXULWindow.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
@ -114,7 +113,7 @@ static
nsresult
GetMostRecentWindow(const PRUnichar* aType, nsIDOMWindowInternal** aWindow) {
nsresult rv;
nsCOMPtr<nsIWindowMediator> med( do_GetService( NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator", &rv ) );
nsCOMPtr<nsIWindowMediator> med( do_GetService( NS_WINDOWMEDIATOR_CONTRACTID, &rv ) );
if ( NS_FAILED( rv ) )
return rv;