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

Side by Side Diff: remoting/webapp/jscompiler_hacks.js

Issue 23536033: Add 'New window' option to context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback and rebase Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/background.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 // This file contains various hacks needed to inform JSCompiler of various 5 // This file contains various hacks needed to inform JSCompiler of various
6 // WebKit- and Chrome-specific properties and methods. It is used only with 6 // WebKit- and Chrome-specific properties and methods. It is used only with
7 // JSCompiler to verify the type-correctness of our code. 7 // JSCompiler to verify the type-correctness of our code.
8 8
9 /** @type {HTMLElement} */ 9 /** @type {HTMLElement} */
10 Document.prototype.activeElement; 10 Document.prototype.activeElement;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 /** @type {Object} */ 115 /** @type {Object} */
116 chrome.app.window = { 116 chrome.app.window = {
117 /** 117 /**
118 * @param {string} name 118 * @param {string} name
119 * @param {Object} parameters 119 * @param {Object} parameters
120 */ 120 */
121 create: function(name, parameters) {} 121 create: function(name, parameters) {}
122 }; 122 };
123 123
124 /**
125 * @type {Object}
126 * @see http://code.google.com/chrome/extensions/dev/contextMenus.html
127 */
128 chrome.contextMenus = {
129 /** @type {chrome.Event} */
130 onClicked: null,
131 /**
132 * @param {!Object} createProperties
133 * @param {function()=} opt_callback
134 * @return {string|number}
135 */
136 create: function(createProperties, opt_callback) {},
137 /**
138 * @param {string|number} menuItemId
139 * @param {function()=} opt_callback
140 */
141 remove: function(menuItemId, opt_callback) {},
142 /**
143 * @param {function()=} opt_callback
144 */
145 removeAll: function(opt_callback) {},
146 /**
147 * @param {string|number} id
148 * @param {!Object} updateProperties
149 * @param {function()=} opt_callback
150 */
151 update: function(id, updateProperties, opt_callback) {}
152 };
153
124 /** @type {Object} */ 154 /** @type {Object} */
125 chrome.identity = { 155 chrome.identity = {
126 /** 156 /**
127 * @param {Object.<string>} parameters 157 * @param {Object.<string>} parameters
128 * @param {function(string):void} callback 158 * @param {function(string):void} callback
129 */ 159 */
130 getAuthToken: function(parameters, callback) {}, 160 getAuthToken: function(parameters, callback) {},
131 /** 161 /**
132 * @param {Object.<string>} parameters 162 * @param {Object.<string>} parameters
133 * @param {function(string):void} callback 163 * @param {function(string):void} callback
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 * @param {Object.<string>} permissions 246 * @param {Object.<string>} permissions
217 * @param {function(boolean):void} callback 247 * @param {function(boolean):void} callback
218 */ 248 */
219 contains: function(permissions, callback) {}, 249 contains: function(permissions, callback) {},
220 /** 250 /**
221 * @param {Object.<string>} permissions 251 * @param {Object.<string>} permissions
222 * @param {function(boolean):void} callback 252 * @param {function(boolean):void} callback
223 */ 253 */
224 request: function(permissions, callback) {} 254 request: function(permissions, callback) {}
225 }; 255 };
OLDNEW
« no previous file with comments | « remoting/webapp/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698