Chromium Code Reviews| Index: remoting/webapp/jscompiler_hacks.js |
| diff --git a/remoting/webapp/jscompiler_hacks.js b/remoting/webapp/jscompiler_hacks.js |
| index 79f27509e7d7f6cbd23f987f3417f40853969383..cecb2d43f32bcfc25a884bc84761d3e85fd9cef4 100644 |
| --- a/remoting/webapp/jscompiler_hacks.js |
| +++ b/remoting/webapp/jscompiler_hacks.js |
| @@ -104,7 +104,12 @@ chrome.experimental.identity = { |
| * @param {Object.<string>} parameters |
| * @param {function(string):void} callback |
| */ |
| - getAuthToken: function(parameters, callback) {} |
| + getAuthToken: function(parameters, callback) {}, |
| + /** |
| + * @param {Object.<string>} parameters |
| + * @param {function(string):void} callback |
| + */ |
| + launchWebAuthFlow: function(parameters, callback) {} |
| }; |
| /** @constructor */ |
| @@ -172,3 +177,27 @@ chrome.Window = function() { |
| /** @type {string} */ |
| this.type = ''; |
| }; |
| + |
| +/** @param {string} message*/ |
| +chrome.extension.sendMessage = function(message) {} |
| + |
| +/** @type {Object} */ |
|
Jamie
2013/03/28 23:29:36
You can declare this as type chrome.Event and add
rmsousa
2013/03/29 04:08:21
Done.
|
| +chrome.extension.onMessage = {}; |
| +/** @param {function(string):void} listener */ |
| +chrome.extension.onMessage.addListener = function(listener) {}; |
| +/** @param {function(string):void} listener */ |
| +chrome.extension.onMessage.removeListener = function(listener) {}; |
| + |
| +/** @type {Object} */ |
| +chrome.permissions = { |
| + /** |
| + * @param {Object.<string>} permissions |
| + * @param {function(boolean):void} callback |
| + */ |
| + contains: function(permissions, callback) {}, |
| +/** |
| + * @param {Object.<string>} permissions |
| + * @param {function(boolean):void} callback |
| + */ |
| + request: function(permissions, callback) {} |
| +}; |