Chromium Code Reviews| 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 chrome.test.sendMessage("app_launched"); | |
| 6 | |
| 7 chrome.app.runtime.onLaunched.addListener(function() { | 5 chrome.app.runtime.onLaunched.addListener(function() { |
| 8 chrome.app.window.create('main.html', { | 6 chrome.app.window.create('main.html', { |
| 9 'width': 600, | 7 // frame: {color: '#ff0000'}, |
|
benwells
2014/08/12 03:51:40
Can we test for no frame, standard frame and color
jackhou1
2014/08/12 06:12:07
Done.
| |
| 10 'height': 600 | 8 outerBounds: { |
| 11 }); | 9 left: 10, |
| 10 top: 11, | |
| 11 width: 300, | |
| 12 height: 301, | |
| 13 minWidth: 200, | |
| 14 minHeight: 201, | |
| 15 maxWidth: 400, | |
| 16 maxHeight: 401 | |
| 17 } | |
| 18 }, function () {}); | |
|
benwells
2014/08/12 03:51:40
Nit: You can send the Launched message in this cal
jackhou1
2014/08/12 06:12:07
Done.
| |
| 12 }); | 19 }); |
| OLD | NEW |