зеркало из https://github.com/mozilla/gecko-dev.git
add context flags from nsIWindowCreator2. bug 166442 r=jag,jst,timeless
This commit is contained in:
Родитель
6b917a2f4b
Коммит
b98bd446ad
|
@ -96,6 +96,11 @@ interface nsIXULWindow : nsISupports
|
|||
|
||||
readonly attribute unsigned long zlevel;
|
||||
|
||||
/**
|
||||
* contextFlags are from nsIWindowCreator2
|
||||
*/
|
||||
attribute PRUint32 contextFlags;
|
||||
|
||||
/**
|
||||
Create a new window.
|
||||
@param aChromeFlags: see nsIWebBrowserChrome
|
||||
|
|
|
@ -104,7 +104,7 @@ nsXULWindow::nsXULWindow() : mChromeTreeOwner(nsnull),
|
|||
mShowAfterLoad(PR_FALSE), mIntrinsicallySized(PR_FALSE),
|
||||
mCenterAfterLoad(PR_FALSE), mIsHiddenWindow(PR_FALSE),
|
||||
mHadChildWindow(PR_FALSE),
|
||||
mZlevel(nsIXULWindow::normalZ)
|
||||
mZlevel(nsIXULWindow::normalZ), mContextFlags(0)
|
||||
{
|
||||
NS_INIT_ISUPPORTS();
|
||||
}
|
||||
|
@ -185,6 +185,22 @@ NS_IMETHODIMP nsXULWindow::GetZlevel(PRUint32 *outLevel)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULWindow::GetContextFlags(PRUint32 *aContextFlags)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aContextFlags);
|
||||
*aContextFlags = mContextFlags;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULWindow::SetContextFlags(PRUint32 aContextFlags)
|
||||
{
|
||||
mContextFlags = aContextFlags;
|
||||
if(mContentTreeOwner)
|
||||
mContentTreeOwner->ApplyChromeFlags();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULWindow::SetIntrinsicallySized(PRBool aIntrinsicallySized)
|
||||
{
|
||||
mIntrinsicallySized = aIntrinsicallySized;
|
||||
|
|
|
@ -125,7 +125,8 @@ protected:
|
|||
PRPackedBool mCenterAfterLoad;
|
||||
PRPackedBool mIsHiddenWindow;
|
||||
PRPackedBool mHadChildWindow;
|
||||
unsigned long mZlevel;
|
||||
PRUint32 mZlevel;
|
||||
PRUint32 mContextFlags;
|
||||
};
|
||||
|
||||
// nsContentShellInfo
|
||||
|
|
Загрузка…
Ссылка в новой задаче