mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 4e4be087175e (bug 852687) for failing to compile on a CLOSED TREE
This commit is contained in:
parent
b0a9e78705
commit
e5bb1b7502
@ -8,8 +8,8 @@
|
||||
|
||||
%{C++
|
||||
#define NS_WINDOWMEDIATOR_CID \
|
||||
{ 0x79a2b7cc, 0xf05b, 0x4605, \
|
||||
{ 0xbf, 0xa0, 0xfa, 0xc5, 0x4f, 0x27, 0xee, 0xc8 } }
|
||||
{ 0x808b2fa3, 0x8a02, 0x49ca, \
|
||||
{ 0x91, 0x04, 0x5f, 0x77, 0x29, 0x9e, 0x09, 0x0b } }
|
||||
|
||||
#define NS_WINDOWMEDIATOR_CONTRACTID \
|
||||
"@mozilla.org/appshell/window-mediator;1"
|
||||
@ -74,13 +74,6 @@ interface nsIWindowMediator: nsISupports
|
||||
*/
|
||||
nsIDOMWindow getOuterWindowWithId(in unsigned long long aOuterWindowID);
|
||||
|
||||
/**
|
||||
* Return the outer window with the given current window ID, if any.
|
||||
* Can return null if no inner window with the ID exists or if it's not
|
||||
* a current inner anymore.
|
||||
*/
|
||||
nsIDOMWindow getCurrentInnerWindowWithId(in unsigned long long aInnerWindowID);
|
||||
|
||||
/** Add the window to the list of known windows. Listeners (see
|
||||
* addListener) will be notified through their onOpenWindow method.
|
||||
* @param aWindow the window to add
|
||||
|
@ -330,28 +330,6 @@ nsWindowMediator::GetOuterWindowWithId(uint64_t aWindowID,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWindowMediator::GetCurrentInnerWindowWithId(uint64_t aWindowID,
|
||||
nsIDOMWindow** aWindow)
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindow> inner = nsGlobalWindow::GetInnerWindowWithId(aWindowID);
|
||||
|
||||
// not found
|
||||
if (!inner)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsPIDOMWindow> outer = inner->GetOuterWindow();
|
||||
NS_ENSURE_TRUE(outer, NS_ERROR_UNEXPECTED);
|
||||
|
||||
// outer is already using another inner, so it's same as not found
|
||||
if (outer->GetCurrentInnerWindow() != inner)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIDOMWindow> ret = outer;
|
||||
ret.forget(aWindow);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWindowMediator::UpdateWindowTimeStamp(nsIXULWindow* inWindow)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user