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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back to setting a flag on DesktopEnvironmentFactory Created 5 years, 8 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_plugin_impl.js
diff --git a/remoting/webapp/crd/js/client_plugin_impl.js b/remoting/webapp/crd/js/client_plugin_impl.js
index 3560e7b8df1070e6de590a79716a59e0322e7248..7ea9e6f27833cba0de252e07a6ed4ffc14d980c1 100644
--- a/remoting/webapp/crd/js/client_plugin_impl.js
+++ b/remoting/webapp/crd/js/client_plugin_impl.js
@@ -635,6 +635,17 @@ remoting.ClientPluginImpl.prototype.sendClipboardItem =
};
/**
+ * Notifies the plugin that touch events should be handled by the plugin.
Wez 2015/04/21 02:12:12 See comments re wording on the interface,.
Rintaro Kuroiwa 2015/04/22 19:56:00 Done.
+ *
+ * @param {boolean} True if the plugin should handle touch events.
+ * @return {void} Nothing.
+ */
+remoting.ClientPluginImpl.prototype.enableTouchEvents = function(enable) {
+ this.plugin_.postMessage(
+ JSON.stringify({method: 'enableTouchEvents', data: {'enable': enable}}));
+};
+
+/**
* Notifies the host that the client has the specified size and pixel density.
*
* @param {number} width The available client width in DIPs.

Powered by Google App Engine
This is Rietveld 408576698