Tidy up the #ifdefs in CreateHiddenWindow to not confuse the CodeWarrior editor.

git-svn-id: svn://10.0.0.236/trunk@68945 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
2000-05-10 00:37:05 +00:00
parent 0f10f8f0b5
commit 645813c95e

View File

@@ -184,24 +184,24 @@ NS_IMETHODIMP
nsAppShellService::CreateHiddenWindow()
{
nsresult rv;
nsCOMPtr<nsIURI> url;
#if XP_MAC
rv = NS_NewURI(getter_AddRefs(url),
"chrome://global/content/hiddenWindow.xul");
if (NS_SUCCEEDED(rv)) {
const char* hiddenWindowURL = "chrome://global/content/hiddenWindow.xul";
PRUint32 chromeMask = 0;
PRInt32 initialHeight = 0, initialWidth = 0;
#else
const char* hiddenWindowURL = "about:blank";
PRUint32 chromeMask = nsIWebBrowserChrome::allChrome;
PRInt32 initialHeight = 100, initialWidth = 100;
#endif
nsCOMPtr<nsIURI> url;
rv = NS_NewURI(getter_AddRefs(url), hiddenWindowURL);
if (NS_SUCCEEDED(rv))
{
nsCOMPtr<nsIXULWindow> newWindow;
rv = JustCreateTopWindow(nsnull, url, PR_FALSE, PR_FALSE,
0, 0, 0,
chromeMask, initialWidth, initialHeight,
getter_AddRefs(newWindow));
#else
rv = NS_NewURI(getter_AddRefs(url), "about:blank");
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIXULWindow> newWindow;
rv = JustCreateTopWindow(nsnull, url, PR_FALSE, PR_FALSE,
nsIWebBrowserChrome::allChrome, 100, 100,
getter_AddRefs(newWindow));
#endif
if (NS_SUCCEEDED(rv)) {
mHiddenWindow = newWindow;
// RegisterTopLevelWindow(newWindow); -- Mac only