зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1322440 - Get rid of contextFlags in nsIWindowCreator2, r=smaug
This commit is contained in:
Родитель
c482f7591d
Коммит
1ed1649bb7
|
@ -504,8 +504,7 @@ nsWindowWatcher::CreateChromeWindow(const nsACString& aFeatures,
|
|||
nsCOMPtr<nsIWebBrowserChrome> newWindowChrome;
|
||||
nsresult rv =
|
||||
windowCreator2->CreateChromeWindow2(aParentChrome, aChromeFlags,
|
||||
0 /* contextFlag */, aOpeningTabParent,
|
||||
aOpener, &cancel,
|
||||
aOpeningTabParent, aOpener, &cancel,
|
||||
getter_AddRefs(newWindowChrome));
|
||||
|
||||
if (NS_SUCCEEDED(rv) && cancel) {
|
||||
|
|
|
@ -26,10 +26,6 @@ interface mozIDOMWindowProxy;
|
|||
|
||||
interface nsIWindowCreator2 : nsIWindowCreator {
|
||||
|
||||
/**
|
||||
* Definitions for contextFlags
|
||||
*/
|
||||
|
||||
/** Create a new window. Gecko will/may call this method, if made
|
||||
available to it, to create new windows.
|
||||
@param parent Parent window, if any. Null if not. The newly created
|
||||
|
@ -37,7 +33,6 @@ interface nsIWindowCreator2 : nsIWindowCreator {
|
|||
the parent, if any (and if the concept applies
|
||||
to the underlying OS).
|
||||
@param chromeFlags Chrome features from nsIWebBrowserChrome
|
||||
@param contextFlags Flags about the context of the window being created.
|
||||
@param aOpeningTab The TabParent that is trying to open this new chrome
|
||||
window. Can be nullptr.
|
||||
@param aOpener The window which is trying to open this new chrome window.
|
||||
|
@ -50,7 +45,6 @@ interface nsIWindowCreator2 : nsIWindowCreator {
|
|||
*/
|
||||
nsIWebBrowserChrome createChromeWindow2(in nsIWebBrowserChrome parent,
|
||||
in uint32_t chromeFlags,
|
||||
in uint32_t contextFlags,
|
||||
in nsITabParent aOpeningTab,
|
||||
in mozIDOMWindowProxy aOpener,
|
||||
out boolean cancel);
|
||||
|
|
|
@ -611,7 +611,7 @@ nsAppStartup::CreateChromeWindow(nsIWebBrowserChrome *aParent,
|
|||
nsIWebBrowserChrome **_retval)
|
||||
{
|
||||
bool cancel;
|
||||
return CreateChromeWindow2(aParent, aChromeFlags, 0, nullptr, nullptr, &cancel, _retval);
|
||||
return CreateChromeWindow2(aParent, aChromeFlags, nullptr, nullptr, &cancel, _retval);
|
||||
}
|
||||
|
||||
|
||||
|
@ -633,7 +633,6 @@ nsAppStartup::SetScreenId(uint32_t aScreenId)
|
|||
NS_IMETHODIMP
|
||||
nsAppStartup::CreateChromeWindow2(nsIWebBrowserChrome *aParent,
|
||||
uint32_t aChromeFlags,
|
||||
uint32_t aContextFlags,
|
||||
nsITabParent *aOpeningTab,
|
||||
mozIDOMWindowProxy* aOpener,
|
||||
bool *aCancel,
|
||||
|
@ -678,7 +677,6 @@ nsAppStartup::CreateChromeWindow2(nsIWebBrowserChrome *aParent,
|
|||
|
||||
// if anybody gave us anything to work with, use it
|
||||
if (newWindow) {
|
||||
newWindow->SetContextFlags(aContextFlags);
|
||||
nsCOMPtr<nsIInterfaceRequestor> thing(do_QueryInterface(newWindow));
|
||||
if (thing)
|
||||
CallGetInterface(thing.get(), _retval);
|
||||
|
|
|
@ -103,11 +103,6 @@ interface nsIXULWindow : nsISupports
|
|||
|
||||
attribute unsigned long zLevel;
|
||||
|
||||
/**
|
||||
* contextFlags are from nsIWindowCreator2
|
||||
*/
|
||||
attribute uint32_t contextFlags;
|
||||
|
||||
attribute uint32_t chromeFlags;
|
||||
|
||||
/**
|
||||
|
|
|
@ -105,7 +105,6 @@ nsXULWindow::nsXULWindow(uint32_t aChromeFlags)
|
|||
mIgnoreXULSizeMode(false),
|
||||
mDestroying(false),
|
||||
mRegistered(false),
|
||||
mContextFlags(0),
|
||||
mPersistentAttributesDirty(0),
|
||||
mPersistentAttributesMask(0),
|
||||
mChromeFlags(aChromeFlags)
|
||||
|
@ -254,19 +253,6 @@ NS_IMETHODIMP nsXULWindow::SetZLevel(uint32_t aLevel)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULWindow::GetContextFlags(uint32_t *aContextFlags)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aContextFlags);
|
||||
*aContextFlags = mContextFlags;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULWindow::SetContextFlags(uint32_t aContextFlags)
|
||||
{
|
||||
mContextFlags = aContextFlags;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULWindow::GetChromeFlags(uint32_t *aChromeFlags)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aChromeFlags);
|
||||
|
|
|
@ -163,7 +163,6 @@ protected:
|
|||
// otherwise happen due to script running as we tear down various things.
|
||||
bool mDestroying;
|
||||
bool mRegistered;
|
||||
uint32_t mContextFlags;
|
||||
uint32_t mPersistentAttributesDirty; // persistentAttributes
|
||||
uint32_t mPersistentAttributesMask;
|
||||
uint32_t mChromeFlags;
|
||||
|
|
Загрузка…
Ссылка в новой задаче