Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / extensions / platform_apps / context_menu / test.js
bloba216ab0ed79575690407a6084bfe8869ad5b3384
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.
5 chrome.app.runtime.onLaunched.addListener(function() {
6 chrome.contextMenus.create({title: 'Extension Item 1', contexts: ['all'],
7 id: 'id1'}, function() {
8 chrome.contextMenus.create({title: 'Extension Item 2', contexts: ['all'],
9 id: 'id2'}, function() {
10 chrome.app.window.create('main.html', {}, function() {});
11 });
12 });
13 });