| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 function(host, localJid, credentialsProvider) {}; | 42 function(host, localJid, credentialsProvider) {}; |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * @param {number} key The keycode to inject. | 45 * @param {number} key The keycode to inject. |
| 46 * @param {boolean} down True for press; false for a release. | 46 * @param {boolean} down True for press; false for a release. |
| 47 */ | 47 */ |
| 48 remoting.ClientPlugin.prototype.injectKeyEvent = | 48 remoting.ClientPlugin.prototype.injectKeyEvent = |
| 49 function(key, down) {}; | 49 function(key, down) {}; |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * Sends a key combination to the host, by sending down events for |
| 53 * the given keys, followed by up events in reverse order. |
| 54 * |
| 55 * @param {Array<number>} keys Key codes to be sent. |
| 56 * @return {void} Nothing. |
| 57 */ |
| 58 remoting.ClientPlugin.prototype.injectKeyCombination = function(keys) {}; |
| 59 |
| 60 /** |
| 61 * Sets and stores the key remapping setting for the current host. |
| 62 * |
| 63 * @param {string} remappings Comma separated list of key remappings. |
| 64 */ |
| 65 remoting.ClientPlugin.prototype.setRemapKeys = function(remappings) {}; |
| 66 |
| 67 /** |
| 52 * @param {number} from | 68 * @param {number} from |
| 53 * @param {number} to | 69 * @param {number} to |
| 54 */ | 70 */ |
| 55 remoting.ClientPlugin.prototype.remapKey = function(from, to) {}; | 71 remoting.ClientPlugin.prototype.remapKey = function(from, to) {}; |
| 56 | 72 |
| 57 /** | 73 /** |
| 58 * Release all keys currently being pressed. | 74 * Release all keys currently being pressed. |
| 59 */ | 75 */ |
| 60 remoting.ClientPlugin.prototype.releaseAllKeys = function() {}; | 76 remoting.ClientPlugin.prototype.releaseAllKeys = function() {}; |
| 61 | 77 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 /** | 254 /** |
| 239 * Preload the plugin to make instantiation faster when the user tries | 255 * Preload the plugin to make instantiation faster when the user tries |
| 240 * to connect. | 256 * to connect. |
| 241 */ | 257 */ |
| 242 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 258 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
| 243 | 259 |
| 244 /** | 260 /** |
| 245 * @type {remoting.ClientPluginFactory} | 261 * @type {remoting.ClientPluginFactory} |
| 246 */ | 262 */ |
| 247 remoting.ClientPlugin.factory = null; | 263 remoting.ClientPlugin.factory = null; |
| OLD | NEW |