/**
 * Listens for the app launching then creates the window
 *
 * @see http://developer.chrome.com/apps/app.runtime.html
 * @see http://developer.chrome.com/apps/app.window.html
 */
chrome.app.runtime.onLaunched.addListener(function(launchData) {
  chrome.app.window.create('index.html', {
    'id': '_mainWindow', 'bounds': {'width': 800, 'height': 600 }
  });
});

/**
 * Listens for the app launching then creates the window
 *
 * @see http://developer.chrome.com/apps/app.runtime.html
 * @see http://developer.chrome.com/apps/app.window.html
 */
chrome.app.runtime.onLaunched.addListener(function(launchData) {
  chrome.app.window.create("index.html", {
    "id": "_mainWindow",
    "innerBounds": {
      "minWidth": 320,
      "minHeight": 480,
      "maxWidth": 320,
      "maxHeight": 480
    }
  });
});

set window size as iOS