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

Unified Diff: remoting/webapp/client_plugin.js

Issue 12867004: Webapp changes to support asking for a PIN (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « no previous file | remoting/webapp/client_plugin_async.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_plugin.js
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js
index 068663150ec5e11bd619a6102a2d81bba3489e48..896d0392e88ce08fac6b646db739a9d8b14d113b 100644
--- a/remoting/webapp/client_plugin.js
+++ b/remoting/webapp/client_plugin.js
@@ -31,6 +31,8 @@ remoting.ClientPlugin.prototype.onConnectionStatusUpdateHandler;
remoting.ClientPlugin.prototype.onConnectionReadyHandler;
/** @type {function(): void} Desktop size change callback. */
remoting.ClientPlugin.prototype.onDesktopSizeUpdateHandler;
+/** @type {function(): void} Request a PIN from the user. */
+remoting.ClientPlugin.prototype.fetchPinHandler;
/**
* Initializes the plugin asynchronously and calls specified function
@@ -56,6 +58,7 @@ remoting.ClientPlugin.Feature = {
INJECT_KEY_EVENT: 'injectKeyEvent',
NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions',
NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution',
+ ASYNC_PIN: 'asyncPin',
PAUSE_VIDEO: 'pauseVideo',
PAUSE_AUDIO: 'pauseAudio',
REMAP_KEY: 'remapKey',
@@ -130,7 +133,7 @@ remoting.ClientPlugin.prototype.remapKey =
* @param {number} keycode The USB-style code of the key.
* @param {Boolean} trap True to enable trapping, False to disable.
*/
-remoting.ClientPlugin.prototype.trapKey = function(keycode, trap) {}
+remoting.ClientPlugin.prototype.trapKey = function(keycode, trap) {};
/**
* Returns an associative array with a set of stats for this connection.
@@ -172,3 +175,15 @@ remoting.ClientPlugin.prototype.pauseVideo =
*/
remoting.ClientPlugin.prototype.pauseAudio =
function(pause) {};
+
+/**
+ * Gives the client authenticator the PIN.
+ *
+ * @param {string} pin The PIN.
+ */
+remoting.ClientPlugin.prototype.onPinFetched = function(pin) {};
+
+/**
+ * Tells the plugin to ask for the PIN asynchronously.
+ */
+remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {};
« no previous file with comments | « no previous file | remoting/webapp/client_plugin_async.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698