Index: remoting/webapp/crd/js/client_session.js |
diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js |
index 0bb20cb674c12accc9598674044652370a83e10d..fc249f4302049e3c3fcd31f4b7ee3b670b4ad182 100644 |
--- a/remoting/webapp/crd/js/client_session.js |
+++ b/remoting/webapp/crd/js/client_session.js |
@@ -207,6 +207,11 @@ remoting.ClientSession.Capability = { |
// <1000 users on M-29 or below. Remove this and the capability on the host. |
RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests', |
+ // Host & client support touch. If the host does not support touch then the |
+ // client will let PPAPI translate touch input into mouse events, for |
+ // compatibility with non-touch-aware UI. |
Wez
2015/04/21 02:12:12
Suggest just "Indicates native touch input support
Rintaro Kuroiwa
2015/04/22 19:56:00
Done.
|
+ MULTI_TOUCH: 'multiTouch', |
+ |
// Indicates that host/client supports Google Drive integration, and that the |
// client should send to the host the OAuth tokens to be used by Google Drive |
// on the host. |
@@ -465,6 +470,9 @@ remoting.ClientSession.prototype.onSetCapabilities = function(capabilities) { |
if (this.hasCapability(remoting.ClientSession.Capability.GOOGLE_DRIVE)) { |
this.sendGoogleDriveAccessToken_(); |
} |
+ if (this.hasCapability(remoting.ClientSession.Capability.MULTI_TOUCH)) { |
+ this.plugin_.enableTouchEvents(true); |
+ } |
}; |
/** |
@@ -602,4 +610,3 @@ remoting.ClientSession.prototype.sendGoogleDriveAccessToken_ = function() { |
window.setTimeout(this.sendGoogleDriveAccessToken_.bind(this), |
remoting.ACCESS_TOKEN_RESEND_INTERVAL_MS); |
}; |
- |