OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 chrome.app.runtime.onLaunched.addListener(function() { |
| 6 chrome.test.sendMessage('Launched', function (response) { |
| 7 var frameType = response == 'color' ? { color: '#ff0000' } : response; |
| 8 chrome.app.window.create('main.html', { |
| 9 frame: frameType, |
| 10 outerBounds: { |
| 11 left: 10, |
| 12 top: 11, |
| 13 width: 300, |
| 14 height: 301, |
| 15 minWidth: 200, |
| 16 minHeight: 201, |
| 17 maxWidth: 400, |
| 18 maxHeight: 401 |
| 19 } |
| 20 }, function () { |
| 21 // Send this again as the test is waiting for the window to be ready. |
| 22 chrome.test.sendMessage('Launched'); |
| 23 }); |
| 24 }); |
| 25 }); |
OLD | NEW |