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

Side by Side Diff: remoting/webapp/app_remoting/js/context_menu_chrome.js

Issue 1143453007: remoting.WindowShape clean up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * remoting.ContextMenuAdapter implementation backed by chrome.contextMenus. 7 * remoting.ContextMenuAdapter implementation backed by chrome.contextMenus.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
11 11
12 /** @suppress {duplicate} */ 12 /** @suppress {duplicate} */
13 var remoting = remoting || {}; 13 var remoting = remoting || {};
14 14
15 /** 15 /**
16 * @constructor 16 * @constructor
17 * @implements {remoting.ContextMenuAdapter} 17 * @implements {remoting.ContextMenuAdapter}
18 */ 18 */
19 remoting.ContextMenuChrome = function() { 19 remoting.ContextMenuChrome = function() {};
20 };
21 20
21 remoting.ContextMenuChrome.prototype.dispose = function() {};
garykac 2015/05/19 00:39:53 nit: blank line after
kelvinp 2015/05/19 17:46:34 Done.
22 /** 22 /**
23 * @param {string} id An identifier for the menu entry. 23 * @param {string} id An identifier for the menu entry.
24 * @param {string} title The text to display in the menu. 24 * @param {string} title The text to display in the menu.
25 * @param {boolean} isCheckable True if the state of this menu entry should 25 * @param {boolean} isCheckable True if the state of this menu entry should
26 * have a check-box and manage its toggle state automatically. 26 * have a check-box and manage its toggle state automatically.
27 * @param {string=} opt_parentId The id of the parent menu item for submenus. 27 * @param {string=} opt_parentId The id of the parent menu item for submenus.
28 */ 28 */
29 remoting.ContextMenuChrome.prototype.create = function( 29 remoting.ContextMenuChrome.prototype.create = function(
30 id, title, isCheckable, opt_parentId) { 30 id, title, isCheckable, opt_parentId) {
31 if (!opt_parentId) { 31 if (!opt_parentId) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 }; 83 };
84 84
85 /** 85 /**
86 * @param {*} message 86 * @param {*} message
87 * @param {Window} backgroundPage 87 * @param {Window} backgroundPage
88 */ 88 */
89 remoting.ContextMenuChrome.prototype.postMessage_ = function( 89 remoting.ContextMenuChrome.prototype.postMessage_ = function(
90 message, backgroundPage) { 90 message, backgroundPage) {
91 backgroundPage.postMessage(message, '*'); 91 backgroundPage.postMessage(message, '*');
92 }; 92 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698