| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var mainWindow = null; | 5 var mainWindow = null; |
| 6 chrome.app.runtime.onLaunched.addListener(function() { | 6 chrome.app.runtime.onLaunched.addListener(function() { |
| 7 if (mainWindow && !mainWindow.contentWindow.closed) { | 7 if (mainWindow && !mainWindow.contentWindow.closed) { |
| 8 mainWindow.focus(); | 8 mainWindow.focus(); |
| 9 } else { | 9 } else { |
| 10 chrome.app.window.create('main.html', { | 10 chrome.app.window.create('main.html', { |
| 11 width: 768, | 11 id: 'apps_debugger', |
| 12 height: 1024, | 12 minHeight: 600, |
| 13 minWidth: 800, |
| 14 height: 600, |
| 15 width: 800, |
| 13 }, function(win) { | 16 }, function(win) { |
| 14 mainWindow = win; | 17 mainWindow = win; |
| 15 }); | 18 }); |
| 16 } | 19 } |
| 17 }); | 20 }); |
| OLD | NEW |