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

Unified Diff: remoting/webapp/crd/js/client_session.js

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add capabiility_names.h Created 5 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
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);
};
-
« remoting/host/me2me_desktop_environment.cc ('K') | « remoting/webapp/crd/js/client_plugin_impl.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698