Index: remoting/webapp/jscompiler_hacks.js |
diff --git a/remoting/webapp/jscompiler_hacks.js b/remoting/webapp/jscompiler_hacks.js |
index a28ee59cb750abe60b03404cc805d663a2154bb9..c956e7845907b525259f05f53db545584cd88682 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} */ |
+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: '' |
+ } |
+}; |