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

Unified Diff: remoting/webapp/jscompiler_hacks.js

Issue 12905012: Webapp changes to support third party authentication (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 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) {}
+};

Powered by Google App Engine
This is Rietveld 408576698