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.
5 chrome
.app
.runtime
.onLaunched
.addListener(function() {
6 chrome
.test
.sendMessage("Launched");
7 // Create a panel window first
8 chrome
.app
.window
.create(
9 'main.html', { type
: "panel" },
11 // Set the panel window icon
12 win
.setIcon("icon64.png")
13 // Create the shell window; it should use the app icon, and not affect
15 chrome
.app
.window
.create(
16 'main.html', { type
: "shell" },
18 chrome
.test
.sendMessage("Completed");