OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * Listens for the app launching then creates the window |
| 7 * |
| 8 * @see http://developer.chrome.com/trunk/apps/app.runtime.html |
| 9 * @see http://developer.chrome.com/trunk/apps/app.window.html |
| 10 */ |
| 11 chrome.app.runtime.onLaunched.addListener(function() { |
| 12 chrome.app.window.create('index.html', |
| 13 {top:0, left: 0, width: 900, height: 800}); |
| 14 }); |
OLD | NEW |