mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
bug 104118 - a non-rdf contractid for windowmediator, to reduce dependencies. r=mkaply, sr=dveditz
This commit is contained in:
parent
8d587ce55b
commit
cf011f78cd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user