// use keepFile := true if you are exiting the JVM really quickly after using this function svoid startChromeAppWithWindowBounds(S url, Rect bounds, O... _) { optPar bool keepFile; if (bounds == null) ret with startChromeApp(url); File f = keepFile ? cacheProgramFile("chrome-app.html") : createTempFileWithExtension(".html"); saveTextFile(f, hjavascript( javascript_setWindowBounds(bounds) + "\n" + "window.location=" + jsQuote(url) + ";")); startChromeApp(f); }