| OLD | NEW |
| 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 * Wrapper interface for chrome.contextMenus. | 7 * Wrapper interface for 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 /** @interface */ | 15 /** |
| 16 * @interface |
| 17 * @extends {base.Disposable} |
| 18 */ |
| 16 remoting.ContextMenuAdapter = function() { | 19 remoting.ContextMenuAdapter = function() { |
| 17 }; | 20 }; |
| 18 | 21 |
| 19 /** | 22 /** |
| 20 * @param {string} id An identifier for the menu entry. | 23 * @param {string} id An identifier for the menu entry. |
| 21 * @param {string} title The text to display in the menu. | 24 * @param {string} title The text to display in the menu. |
| 22 * @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 |
| 23 * have a check-box and manage its toggle state automatically. Note that | 26 * have a check-box and manage its toggle state automatically. Note that |
| 24 * checkable menu entries always start off unchecked; use updateCheckState | 27 * checkable menu entries always start off unchecked; use updateCheckState |
| 25 * to programmatically change the state. | 28 * to programmatically change the state. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 47 * @param {string} id | 50 * @param {string} id |
| 48 */ | 51 */ |
| 49 remoting.ContextMenuAdapter.prototype.remove = function(id) { | 52 remoting.ContextMenuAdapter.prototype.remove = function(id) { |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 /** | 55 /** |
| 53 * @param {function(OnClickData=):void} listener | 56 * @param {function(OnClickData=):void} listener |
| 54 */ | 57 */ |
| 55 remoting.ContextMenuAdapter.prototype.addListener = function(listener) { | 58 remoting.ContextMenuAdapter.prototype.addListener = function(listener) { |
| 56 }; | 59 }; |
| OLD | NEW |