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

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

Issue 23891005: Fix OAuth "trampoline" content script to send a message with the oauth results rather than using a … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refresh window on new refresh token 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/cs_oauth2_trampoline.js ('k') | remoting/webapp/oauth2.js » ('j') | 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 */ 120 */
121 create: function(name, parameters) {} 121 create: function(name, parameters) {}
122 }; 122 };
123 123
124 /** 124 /**
125 * @type {Object} 125 * @type {Object}
126 * @see http://code.google.com/chrome/extensions/dev/contextMenus.html 126 * @see http://code.google.com/chrome/extensions/dev/contextMenus.html
127 */ 127 */
128 chrome.contextMenus = { 128 chrome.contextMenus = {
129 /** @type {chrome.Event} */ 129 /** @type {chrome.Event} */
130 onClicked: null, 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 }; 131 };
153 132
154 /** @type {Object} */ 133 /** @type {Object} */
155 chrome.identity = { 134 chrome.identity = {
156 /** 135 /**
157 * @param {Object.<string>} parameters 136 * @param {Object.<string>} parameters
158 * @param {function(string):void} callback 137 * @param {function(string):void} callback
159 */ 138 */
160 getAuthToken: function(parameters, callback) {}, 139 getAuthToken: function(parameters, callback) {},
161 /** 140 /**
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 chrome.windows.get = function(id, getInfo, callback) {} 206 chrome.windows.get = function(id, getInfo, callback) {}
228 207
229 /** @constructor */ 208 /** @constructor */
230 chrome.Window = function() { 209 chrome.Window = function() {
231 /** @type {string} */ 210 /** @type {string} */
232 this.state = ''; 211 this.state = '';
233 /** @type {string} */ 212 /** @type {string} */
234 this.type = ''; 213 this.type = '';
235 }; 214 };
236 215
237 /** @param {string} message*/ 216 /**
217 * @param {*} message
218 */
238 chrome.extension.sendMessage = function(message) {} 219 chrome.extension.sendMessage = function(message) {}
239 220
240 /** @type {chrome.Event} */ 221 /** @type {chrome.Event} */
241 chrome.extension.onMessage; 222 chrome.extension.onMessage;
242 223
243 /** @type {Object} */ 224 /** @type {Object} */
244 chrome.permissions = { 225 chrome.permissions = {
245 /** 226 /**
246 * @param {Object.<string>} permissions 227 * @param {Object.<string>} permissions
247 * @param {function(boolean):void} callback 228 * @param {function(boolean):void} callback
248 */ 229 */
249 contains: function(permissions, callback) {}, 230 contains: function(permissions, callback) {},
250 /** 231 /**
251 * @param {Object.<string>} permissions 232 * @param {Object.<string>} permissions
252 * @param {function(boolean):void} callback 233 * @param {function(boolean):void} callback
253 */ 234 */
254 request: function(permissions, callback) {} 235 request: function(permissions, callback) {}
255 }; 236 };
OLDNEW
« no previous file with comments | « remoting/webapp/cs_oauth2_trampoline.js ('k') | remoting/webapp/oauth2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698