Chromium Code Reviews| Index: remoting/webapp/jscompiler_hacks.js |
| diff --git a/remoting/webapp/jscompiler_hacks.js b/remoting/webapp/jscompiler_hacks.js |
| index 28551e2831b1d77411afc5e6a3166892cab6d4db..9d58e1dd7f44919ea87af4384fc4ebd9a0e2d553 100644 |
| --- a/remoting/webapp/jscompiler_hacks.js |
| +++ b/remoting/webapp/jscompiler_hacks.js |
| @@ -69,4 +69,43 @@ chrome.storage = {}; |
| // TODO(jamiewalch): Flesh this out with the correct type when we're a v2 app. |
| /** @type {remoting.MockStorage} */ |
| -chrome.storage.local = null; |
| +chrome.storage.local = null; |
| + |
| +/** @type {Object} */ |
|
Wez
2013/01/05 00:04:24
nit: Consider moving these into their own apps_v2_
Jamie
2013/01/05 01:32:54
I'd rather not, unless you feel strongly about it.
|
| +chrome.app.runtime = { |
| + /** @type {Object} */ |
| + onLaunched: { |
| + /** @param {function():void} callback */ |
| + addListener: function(callback) {} |
| + } |
| +}; |
| + |
| +/** @type {Object} */ |
| +chrome.app.window = { |
| + /** |
| + * @param {string} name |
| + * @param {Object} parameters |
| + */ |
| + create: function(name, parameters) {} |
| +}; |
| + |
| +/** @type {Object} */ |
| +chrome.experimental = {}; |
| + |
| +/** @type {Object} */ |
| +chrome.experimental.identity = { |
| + /** |
| + * @param {Object.<string>} parameters |
| + * @param {function(string):void} callback |
| + */ |
| + getAuthToken: function(parameters, callback) {} |
| +}; |
| + |
| +/** @type {Object} */ |
| +chrome.runtime = { |
| + /** @type {Object} */ |
| + lastError: { |
| + /** @type {string} */ |
| + message: '' |
| + } |
| +}; |