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..c9314c8bc2f9b1ff753eed14669eeb9ea8483eea 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', |
+ // Indicates native touch input support. If the host does not support |
+ // touch then the client will let Chrome sythesize mouse events from touch |
Wez
2015/05/21 00:59:14
typo: synthesize
Rintaro Kuroiwa
2015/05/21 21:53:30
Done.
|
+ // input, for compatibility with non-touch-aware systems. |
+ TOUCH_EVENTS: 'touchEvents', |
+ |
// 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.TOUCH_EVENTS)) { |
+ 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); |
}; |
- |