| 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 c3808b4bd98d49e6853a1279ac0e467f65115e82..0e0f916f83186f40ae64cf97fe6df6d8fb8baf8f 100644
|
| --- a/remoting/webapp/crd/js/client_plugin_impl.js
|
| +++ b/remoting/webapp/crd/js/client_plugin_impl.js
|
| @@ -44,23 +44,12 @@ remoting.ClientPluginImpl = function(container,
|
| /** @private {remoting.ClientPlugin.ConnectionEventHandler} */
|
| this.connectionEventHandler_ = null;
|
|
|
| - /**
|
| - * @param {string} data Remote gnubbyd data.
|
| - * @private
|
| - */
|
| - this.onGnubbyAuthHandler_ = function(data) {};
|
| - /**
|
| - * @param {string} url
|
| - * @param {number} hotspotX
|
| - * @param {number} hotspotY
|
| - * @private
|
| - */
|
| - this.updateMouseCursorImage_ = function(url, hotspotX, hotspotY) {};
|
| - /**
|
| - * @param {string} data Remote cast extension message.
|
| - * @private
|
| - */
|
| - this.onCastExtensionHandler_ = function(data) {};
|
| + /** @private {?function(string, number, number)} */
|
| + this.updateMouseCursorImage_ = base.doNothing;
|
| + /** @private {?function(string, string)} */
|
| + this.updateClipboardData_ = base.doNothing;
|
| + /** @private {?function(string)} */
|
| + this.onCastExtensionHandler_ = base.doNothing;
|
| /** @private {?function({rects:Array<Array<number>>}):void} */
|
| this.debugRegionHandler_ = null;
|
|
|
| @@ -168,6 +157,13 @@ remoting.ClientPluginImpl.prototype.setMouseCursorHandler = function(handler) {
|
| };
|
|
|
| /**
|
| + * @param {function(string, string):void} handler
|
| + */
|
| +remoting.ClientPluginImpl.prototype.setClipboardHandler = function(handler) {
|
| + this.updateClipboardData_ = handler;
|
| +};
|
| +
|
| +/**
|
| * @param {?function({rects:Array<Array<number>>}):void} handler
|
| */
|
| remoting.ClientPluginImpl.prototype.setDebugDirtyRegionHandler =
|
| @@ -310,9 +306,7 @@ remoting.ClientPluginImpl.prototype.handleMessageMethod_ = function(message) {
|
| } else if (message.method == 'injectClipboardItem') {
|
| var mimetype = base.getStringAttr(message.data, 'mimeType');
|
| var item = base.getStringAttr(message.data, 'item');
|
| - if (remoting.clipboard) {
|
| - remoting.clipboard.fromHost(mimetype, item);
|
| - }
|
| + this.updateClipboardData_(mimetype, item);
|
|
|
| } else if (message.method == 'onFirstFrameReceived') {
|
| if (remoting.clientSession) {
|
|
|