OLD | NEW |
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 {Object} */ | 9 /** @type {Object} */ |
10 var chrome = {}; | 10 var chrome = {}; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 OnClickData.prototype.selectionText; | 234 OnClickData.prototype.selectionText; |
235 /** @type {boolean} */ | 235 /** @type {boolean} */ |
236 OnClickData.prototype.editable; | 236 OnClickData.prototype.editable; |
237 /** @type {boolean} */ | 237 /** @type {boolean} */ |
238 OnClickData.prototype.wasChecked; | 238 OnClickData.prototype.wasChecked; |
239 /** @type {boolean} */ | 239 /** @type {boolean} */ |
240 OnClickData.prototype.checked; | 240 OnClickData.prototype.checked; |
241 | 241 |
242 | 242 |
243 /** @type {Object} */ | 243 /** @type {Object} */ |
| 244 chrome.fileSystem = { |
| 245 /** |
| 246 * @param {Object.<string>?} options |
| 247 * @param {function(Entry, Array.<FileEntry>):void} callback |
| 248 */ |
| 249 chooseEntry: function(options, callback) {}, |
| 250 /** |
| 251 * @param {FileEntry} fileEntry |
| 252 * @param {function(string):void} callback |
| 253 */ |
| 254 getDisplayPath: function(fileEntry, callback) {} |
| 255 }; |
| 256 |
| 257 /** @type {Object} */ |
244 chrome.identity = { | 258 chrome.identity = { |
245 /** | 259 /** |
246 * @param {Object.<string>} parameters | 260 * @param {Object.<string>} parameters |
247 * @param {function(string):void} callback | 261 * @param {function(string):void} callback |
248 */ | 262 */ |
249 getAuthToken: function(parameters, callback) {}, | 263 getAuthToken: function(parameters, callback) {}, |
250 /** | 264 /** |
251 * @param {Object.<string>} parameters | 265 * @param {Object.<string>} parameters |
252 * @param {function():void} callback | 266 * @param {function():void} callback |
253 */ | 267 */ |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 */ | 514 */ |
501 chrome.cast.initialize = | 515 chrome.cast.initialize = |
502 function(apiConfig, onInitSuccess, onInitError) {}; | 516 function(apiConfig, onInitSuccess, onInitError) {}; |
503 | 517 |
504 /** | 518 /** |
505 * @param {function(chrome.cast.Session):void} successCallback | 519 * @param {function(chrome.cast.Session):void} successCallback |
506 * @param {function(chrome.cast.Error):void} errorCallback | 520 * @param {function(chrome.cast.Error):void} errorCallback |
507 */ | 521 */ |
508 chrome.cast.requestSession = | 522 chrome.cast.requestSession = |
509 function(successCallback, errorCallback) {}; | 523 function(successCallback, errorCallback) {}; |
510 | |
OLD | NEW |