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
Родитель 419aa0c675
Коммит 8db59e0dba
5 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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