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

Unified Diff: remoting/webapp/client_plugin.js

Issue 292103004: Enable keyboard filters in PNaCl client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/remoting_srcs.gypi ('k') | no next file » | 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 4252b40436a805f8ed8c2eb7cae7eda6936df56d..c2c15f2a6b4ec0d7061fa8ce694df63938579dd3 100644
--- a/remoting/webapp/client_plugin.js
+++ b/remoting/webapp/client_plugin.js
@@ -424,6 +424,12 @@ remoting.ClientPlugin.prototype.connect = function(
hostJid, hostPublicKey, localJid, sharedSecret,
authenticationMethods, authenticationTag,
clientPairingId, clientPairedSecret) {
+ var keyFilter = '';
+ if (navigator.platform.indexOf('Mac') == -1) {
+ keyFilter = 'mac';
+ } else if (navigator.userAgent.match(/\bCrOS\b/)) {
+ keyFilter = 'cros';
+ }
this.plugin.postMessage(JSON.stringify(
{ method: 'connect', data: {
hostJid: hostJid,
@@ -434,7 +440,8 @@ remoting.ClientPlugin.prototype.connect = function(
authenticationTag: authenticationTag,
capabilities: this.capabilities_.join(" "),
clientPairingId: clientPairingId,
- clientPairedSecret: clientPairedSecret
+ clientPairedSecret: clientPairedSecret,
+ keyFilter: keyFilter
}
}));
};
« no previous file with comments | « remoting/remoting_srcs.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698