Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: remoting/webapp/crd/js/client_plugin.js

Issue 1022473004: [Webapp Refactor] Move key injection logic into the plugin layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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) {};
garykac 2015/03/19 01:20:57 This is only used internally and doesn't need to b
kelvinp 2015/03/19 17:28:20 This is referenced in DesktopConnectedView.sendCtr
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698