Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1326)

Unified Diff: remoting/webapp/background.js

Issue 450383003: Hangout remote desktop part II - background.html and AppLauncher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/background.js
diff --git a/remoting/webapp/background.js b/remoting/webapp/background.js
deleted file mode 100644
index 1976b91bbd1a7c9efac643f6d5e87a9e4def07bb..0000000000000000000000000000000000000000
--- 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();

Powered by Google App Engine
This is Rietveld 408576698