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..4c4d63b0dae2bbb508e3726ac0d99b707f6119c9 100644 |
--- a/remoting/webapp/crd/js/client_plugin_impl.js |
+++ b/remoting/webapp/crd/js/client_plugin_impl.js |
@@ -635,6 +635,16 @@ remoting.ClientPluginImpl.prototype.sendClipboardItem = |
}; |
/** |
+ * Notifies the plugin whether to send touch events to the host. |
+ * |
+ * @param {boolean} True if touch events should be sent. |
+ */ |
+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. |