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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 /** | 109 /** |
110 * Sends a clipboard item to the host. | 110 * Sends a clipboard item to the host. |
111 * | 111 * |
112 * @param {string} mimeType The MIME type of the clipboard item. | 112 * @param {string} mimeType The MIME type of the clipboard item. |
113 * @param {string} item The clipboard item. | 113 * @param {string} item The clipboard item. |
114 */ | 114 */ |
115 remoting.ClientPlugin.prototype.sendClipboardItem = | 115 remoting.ClientPlugin.prototype.sendClipboardItem = |
116 function(mimeType, item) {}; | 116 function(mimeType, item) {}; |
117 | 117 |
118 /** | 118 /** |
| 119 * Notifies the plugin whether to send touch events to the host. |
| 120 * |
| 121 * @param {boolean} enable True if touch events should be sent. |
| 122 */ |
| 123 remoting.ClientPlugin.prototype.enableTouchEvents = function(enable) {}; |
| 124 |
| 125 /** |
119 * Request that this client be paired with the current host. | 126 * Request that this client be paired with the current host. |
120 * | 127 * |
121 * @param {string} clientName The human-readable name of the client. | 128 * @param {string} clientName The human-readable name of the client. |
122 * @param {function(string, string):void} onDone Callback to receive the | 129 * @param {function(string, string):void} onDone Callback to receive the |
123 * client id and shared secret when they are available. | 130 * client id and shared secret when they are available. |
124 */ | 131 */ |
125 remoting.ClientPlugin.prototype.requestPairing = | 132 remoting.ClientPlugin.prototype.requestPairing = |
126 function(clientName, onDone) {}; | 133 function(clientName, onDone) {}; |
127 | 134 |
128 /** | 135 /** |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 /** | 262 /** |
256 * Preload the plugin to make instantiation faster when the user tries | 263 * Preload the plugin to make instantiation faster when the user tries |
257 * to connect. | 264 * to connect. |
258 */ | 265 */ |
259 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 266 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
260 | 267 |
261 /** | 268 /** |
262 * @type {remoting.ClientPluginFactory} | 269 * @type {remoting.ClientPluginFactory} |
263 */ | 270 */ |
264 remoting.ClientPlugin.factory = null; | 271 remoting.ClientPlugin.factory = null; |
OLD | NEW |