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 21 matching lines...) Expand all Loading... | |
32 * @return {number} The x-DPI of the remote desktop. | 32 * @return {number} The x-DPI of the remote desktop. |
33 */ | 33 */ |
34 remoting.ClientPlugin.prototype.getDesktopXDpi = function() {}; | 34 remoting.ClientPlugin.prototype.getDesktopXDpi = function() {}; |
35 | 35 |
36 /** | 36 /** |
37 * @return {number} The y-DPI of the remote desktop. | 37 * @return {number} The y-DPI of the remote desktop. |
38 */ | 38 */ |
39 remoting.ClientPlugin.prototype.getDesktopYDpi = function() {}; | 39 remoting.ClientPlugin.prototype.getDesktopYDpi = function() {}; |
40 | 40 |
41 /** | 41 /** |
42 * @return {remoting.ClientPlugin.HostDesktop} | |
43 */ | |
44 remoting.ClientPlugin.prototype.hostDesktop = function() {}; | |
45 | |
46 /** | |
42 * @return {HTMLElement} The DOM element representing the remote session. | 47 * @return {HTMLElement} The DOM element representing the remote session. |
43 */ | 48 */ |
44 remoting.ClientPlugin.prototype.element = function() {}; | 49 remoting.ClientPlugin.prototype.element = function() {}; |
45 | 50 |
46 /** | 51 /** |
47 * @param {function(boolean):void} onDone Completion callback. | 52 * @param {function(boolean):void} onDone Completion callback. |
48 */ | 53 */ |
49 remoting.ClientPlugin.prototype.initialize = function(onDone) {}; | 54 remoting.ClientPlugin.prototype.initialize = function(onDone) {}; |
50 | 55 |
51 /** | 56 /** |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 /** | 323 /** |
319 * Preload the plugin to make instantiation faster when the user tries | 324 * Preload the plugin to make instantiation faster when the user tries |
320 * to connect. | 325 * to connect. |
321 */ | 326 */ |
322 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 327 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
323 | 328 |
324 /** | 329 /** |
325 * @type {remoting.ClientPluginFactory} | 330 * @type {remoting.ClientPluginFactory} |
326 */ | 331 */ |
327 remoting.ClientPlugin.factory = null; | 332 remoting.ClientPlugin.factory = null; |
333 | |
334 | |
335 /** | |
336 * @interface | |
337 * @extends {base.EventSource} | |
338 */ | |
339 remoting.ClientPlugin.HostDesktop = function() {}; | |
garykac
2015/02/12 18:18:22
Why not just remoting.HostDesktop?
kelvinp
2015/02/12 23:26:41
Done.
| |
340 | |
341 /** @return {boolean} */ | |
342 remoting.ClientPlugin.HostDesktop.prototype.hasResizeRateLimit = function() {}; | |
343 | |
344 /** @return {boolean} */ | |
345 remoting.ClientPlugin.HostDesktop.prototype.isResizable = function() {}; | |
346 | |
347 /** @enum {string} */ | |
348 remoting.ClientPlugin.HostDesktop.Events = { | |
349 sizeChanged: 'sizeChanged', | |
350 shapeChanged: 'shapeChanged' | |
garykac
2015/02/12 18:18:22
2 spaces
kelvinp
2015/02/12 23:26:41
Done.
| |
351 }; | |
352 | |
353 /** @return {{width:number, height:number, xDpi:number, yDpi:number}} */ | |
354 remoting.ClientPlugin.HostDesktop.prototype.getDimensions = function() {}; | |
355 | |
356 /** | |
357 * Resize the desktop of the host to |width|, |height| and |dpi|. | |
358 * | |
359 * @param {number} width | |
360 * @param {number} height | |
361 * @param {number} dpi | |
362 */ | |
363 remoting.ClientPlugin.HostDesktop.prototype.resize = function(width, | |
364 height, | |
365 dpi) {}; | |
OLD | NEW |