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

Unified Diff: remoting/webapp/jscompiler_hacks.js

Issue 11769002: Apps v2 identity integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
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: ''
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698