зеркало из https://github.com/mozilla/pjs.git
Adding option for modeless pref dialog, ifdef'd off by default. r=akkana
This commit is contained in:
Родитель
8ee89b47d6
Коммит
1e07ed25a7
|
@ -209,9 +209,19 @@ NS_IMETHODIMP nsPrefWindow::ShowWindow(
|
|||
nsIXULWindowCallbacks *cb = nsnull;
|
||||
nsCOMPtr<nsIWebShellWindow> parent;
|
||||
DOMWindowToWebShellWindow(currentFrontWin, &parent);
|
||||
|
||||
|
||||
#if defined(MODELESS_PREF_DIALOG)||defined(DEBUG_mcafee)||defined(DEBUG_akkana)
|
||||
// testing modeless pref window. -mcafee
|
||||
nsIWebShellWindow *foo = nsnull;
|
||||
rv = appShell->CreateTopLevelWindow(parent, urlObj, PR_TRUE, PR_TRUE,
|
||||
NS_CHROME_ALL_CHROME | NS_CHROME_OPEN_AS_DIALOG,
|
||||
cb, 504, 436, &foo);
|
||||
#else
|
||||
rv = appShell->RunModalDialog(nsnull, parent, urlObj,
|
||||
NS_CHROME_ALL_CHROME | NS_CHROME_OPEN_AS_DIALOG,
|
||||
cb, 504, 436);
|
||||
#endif
|
||||
return rv;
|
||||
} // nsPrefWindow::ShowWindow()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче