/**
 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 **/

/**
 * Listens for the app launching then creates the window.
 *
 * @see http://developer.chrome.com/trunk/apps/app.window.html
 */
chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('calculator.html', {
    width: 243, minWidth: 243, maxWidth: 243,
    height: 380, minHeight: 380, maxHeight: 380,
  }, function (appWindow) {
    var window = appWindow.contentWindow;
    window.onload = function (window) {
      new View(window, new Model(8));
    }.bind(this, window);
  });
});

/**
 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 **/

/**
 * Listens for the app launching then creates the window.
 *
 * @see http://developer.chrome.com/trunk/apps/app.window.html
 */
chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('calculator.html', {
    defaultWidth: 243, minWidth: 243, maxWidth: 243,
    defaultHeight: 380, minHeight: 380, maxHeight: 380,
    id: 'calculator'
  }, function (appWindow) {
    var window = appWindow.contentWindow;
    window.onload = function (window) {
      new View(window, new Model(8));
    }.bind(this, window);
  });
});

Make the Calculator app window remember its position.
Make the Calculator app window remember its position.

BUG=153630


Review URL: https://chromiumcodereview.appspot.com/11092091

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@162036 0039d316-1c4b-4281-b951-d872f2087c98
