According to this guide the container
property (inside launch
) and set it to panel
, e.g.:
"apps": {
...
"launch" {
"web_url": "http://certification.googleapps.com/",
"container": "panel",
/*optional*/ "height": xxx,
/*optional*/ "width": yyy
}
}
BTW, are you sure you are after a hosted app (i.e. points to an already deployed and externally hosted web-app) and not a packaged app (i.e. includes all necessary code in a .crx package and is locally installed and deployed) ?
A packaged app can declare a background script, which can handle the chrome.app.runtime.onLaunched
event, which grants more freedom on how you launch your app, e.g.:
/* `In manifest.json`: */
"app": {
"background": {
"scripts": ["background.js"]
}
}
/* In `background.js`: */
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
bounds: {
width: 800,
height: 600,
left: 100,
top: 100
},
minWidth: 800,
minHeight: 600,
...
});
});
For the full list of available options, take a look here.
For an overview of packaged apps, you can start here.