1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 * Interface abstracting the functionality of the HostDesktop.
10 var remoting
= remoting
|| {};
18 * @extends {base.EventSource}
20 remoting
.HostDesktop = function() {};
22 /** @return {boolean} Whether the host supports desktop resizing. */
23 remoting
.HostDesktop
.prototype.isResizable = function() {};
26 remoting
.HostDesktop
.Events
= {
27 // Fired when the size of the host desktop changes with the desktop dimensions
28 // {{width:number, height:number, xDpi:number, yDpi:number}}
29 sizeChanged
: 'sizeChanged',
30 // Fired when the shape of the host desktop changes with an array of
31 // rectangles of desktop shapes as the event data.
32 // Array<{left:number, top:number, width:number, height:number}>
33 shapeChanged
: 'shapeChanged'
37 * @return {{width:number, height:number, xDpi:number, yDpi:number}}
38 * The dimensions and DPI settings of the host desktop.
40 remoting
.HostDesktop
.prototype.getDimensions = function() {};
43 * Resize the desktop of the host to |width|, |height| and |deviceScale|.
45 * @param {number} width The width of the desktop in DIPs.
46 * @param {number} height The height of the desktop in DIPs.
47 * @param {number} deviceScale
49 remoting
.HostDesktop
.prototype.resize = function(width
, height
, deviceScale
) {};