static nsresult OpenChromeURL( const char * urlstr, PRInt32 height = NS_SIZETOCONTENT, PRInt32 width = NS_SIZETOCONTENT )
OpenChromeURL( const char * urlstr, PRInt32 height = NS_SIZETOCONTENT, PRInt32 width = NS_SIZETOCONTENT )
static nsresult OpenChromeURL( const char * urlstr, PRInt32 height = NS_SIZETOCONTENT, PRInt32 width = NS_SIZETOCONTENT ){#ifdef DEBUG_CMD_LINE    printf("OpenChromeURL(%s,%d,%d)\n",urlstr,height,width);#endif /* DEBUG_CMD_LINE */	nsCOMPtr<nsIURI> url;	nsresult  rv;	rv = NS_NewURI(getter_AddRefs(url), urlstr);	if ( NS_FAILED( rv ) )		return rv;   nsCOMPtr<nsIAppShellService> appShell(do_GetService(kAppShellServiceCID));   NS_ENSURE_TRUE(appShell, NS_ERROR_FAILURE);   nsCOMPtr<nsIXULWindow> newWindow; 	rv = appShell->CreateTopLevelWindow(nsnull, url,                                      PR_TRUE, PR_TRUE, nsIWebBrowserChrome::CHROME_ALL,                                      width, height,                                      getter_AddRefs(newWindow));  return rv;}