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

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: Removed identity.js from html. Fixed patch. Created 7 years, 12 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 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: ''
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698