| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Interface abstracting the ClientPlugin functionality. | 7 * Interface abstracting the ClientPlugin functionality. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 */ | 150 */ |
| 151 remoting.ClientPlugin.prototype.setConnectionEventHandler = | 151 remoting.ClientPlugin.prototype.setConnectionEventHandler = |
| 152 function(handler) {}; | 152 function(handler) {}; |
| 153 | 153 |
| 154 /** | 154 /** |
| 155 * @param {function(string, number, number):void} handler Callback for | 155 * @param {function(string, number, number):void} handler Callback for |
| 156 * processing large mouse cursor images. The first parameter is a data: | 156 * processing large mouse cursor images. The first parameter is a data: |
| 157 * URL encoding the mouse cursor; the second and third parameters are | 157 * URL encoding the mouse cursor; the second and third parameters are |
| 158 * the cursor hotspot's x- and y-coordinates, respectively. | 158 * the cursor hotspot's x- and y-coordinates, respectively. |
| 159 */ | 159 */ |
| 160 remoting.ClientPlugin.prototype.setMouseCursorHandler = | 160 remoting.ClientPlugin.prototype.setMouseCursorHandler = function(handler) {}; |
| 161 function(handler) {}; | 161 |
| 162 /** |
| 163 * @param {function(string, string):void} handler Callback for processing |
| 164 * clipboard data injected from the host. The first parameter is the mime |
| 165 * type and the second parameter is the actual data. |
| 166 */ |
| 167 remoting.ClientPlugin.prototype.setClipboardHandler = function(handler) {}; |
| 162 | 168 |
| 163 /** | 169 /** |
| 164 * @param {function({rects:Array<Array<number>>}):void|null} handler Callback | 170 * @param {function({rects:Array<Array<number>>}):void|null} handler Callback |
| 165 * to receive dirty region information for each video frame, for debugging. | 171 * to receive dirty region information for each video frame, for debugging. |
| 166 */ | 172 */ |
| 167 remoting.ClientPlugin.prototype.setDebugDirtyRegionHandler = | 173 remoting.ClientPlugin.prototype.setDebugDirtyRegionHandler = |
| 168 function(handler) {}; | 174 function(handler) {}; |
| 169 | 175 |
| 170 | 176 |
| 171 /** | 177 /** |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 /** | 257 /** |
| 252 * Preload the plugin to make instantiation faster when the user tries | 258 * Preload the plugin to make instantiation faster when the user tries |
| 253 * to connect. | 259 * to connect. |
| 254 */ | 260 */ |
| 255 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 261 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
| 256 | 262 |
| 257 /** | 263 /** |
| 258 * @type {remoting.ClientPluginFactory} | 264 * @type {remoting.ClientPluginFactory} |
| 259 */ | 265 */ |
| 260 remoting.ClientPlugin.factory = null; | 266 remoting.ClientPlugin.factory = null; |
| OLD | NEW |