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

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: Rebase, update patch Created 7 years, 8 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
« no previous file with comments | « remoting/webapp/host.js ('k') | remoting/webapp/main.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/jscompiler_hacks.js
diff --git a/remoting/webapp/jscompiler_hacks.js b/remoting/webapp/jscompiler_hacks.js
index 79f27509e7d7f6cbd23f987f3417f40853969383..c5df2fcbe2c6e22df008288073aaac6d6a2247df 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 */
@@ -113,6 +118,9 @@ chrome.Event = function() {};
/** @param {function():void} callback */
chrome.Event.prototype.addListener = function(callback) {};
+/** @param {function():void} callback */
+chrome.Event.prototype.removeListener = function(callback) {};
+
/** @constructor */
chrome.extension.Port = function() {};
@@ -172,3 +180,23 @@ chrome.Window = function() {
/** @type {string} */
this.type = '';
};
+
+/** @param {string} message*/
+chrome.extension.sendMessage = function(message) {}
+
+/** @type {chrome.Event} */
+chrome.extension.onMessage;
+
+/** @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) {}
+};
« no previous file with comments | « remoting/webapp/host.js ('k') | remoting/webapp/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698