summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp/background.js')
-rw-r--r--remoting/webapp/background.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/remoting/webapp/background.js b/remoting/webapp/background.js
deleted file mode 100644
index 1976b91..0000000
--- a/remoting/webapp/background.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/** @type {string} */
-var kNewWindowId = 'new-window';
-
-function createWindow() {
- chrome.app.window.create('main.html', {
- 'width': 800,
- 'height': 600,
- 'frame': 'none'
- });
-};
-
-/** @param {OnClickData} info */
-function onContextMenu(info) {
- if (info.menuItemId == kNewWindowId) {
- createWindow();
- }
-};
-
-function initializeContextMenu() {
- chrome.contextMenus.create({
- id: kNewWindowId,
- contexts: ['launcher'],
- title: chrome.i18n.getMessage(/*i18n-content*/'NEW_WINDOW')
- });
-}
-
-chrome.app.runtime.onLaunched.addListener(createWindow);
-chrome.contextMenus.onClicked.addListener(onContextMenu);
-initializeContextMenu();