Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 /** | |
| 6 * @fileoverview | |
| 7 * Interface abstracting the functionality of the HostDesktop. | |
| 8 */ | |
| 9 | |
| 10 var remoting = remoting || {}; | |
| 11 | |
| 12 (function() { | |
| 13 | |
| 14 'use strict'; | |
| 15 | |
| 16 /** | |
| 17 * @interface | |
| 18 * @extends {base.EventSource} | |
| 19 */ | |
| 20 remoting.HostDesktop = function() {}; | |
| 21 | |
| 22 /** @return {boolean} Whether the host supports desktop resizing. */ | |
| 23 remoting.HostDesktop.prototype.isResizable = function() {}; | |
| 24 | |
| 25 /** @enum {string} */ | |
| 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' | |
| 34 }; | |
| 35 | |
| 36 /** | |
| 37 * @return {{width:number, height:number, xDpi:number, yDpi:number}} | |
| 38 * The dimensions and DPI settings of the host desktop. | |
| 39 */ | |
| 40 remoting.HostDesktop.prototype.getDimensions = function() {}; | |
| 41 | |
| 42 /** | |
| 43 * Resize the desktop of the host to |width|, |height| and |deviceScale|. | |
| 44 * | |
| 45 * @param {number} width The width of the desktop in DIP. | |
|
Jamie
2015/02/19 22:44:04
s/DIP/DIPs/
kelvinp
2015/02/19 23:36:20
Done.
| |
| 46 * @param {number} height The height of the desktop in DIP. | |
| 47 * @param {number} deviceScale | |
| 48 */ | |
| 49 remoting.HostDesktop.prototype.resize = function(width, height, deviceScale) {}; | |
| 50 | |
| 51 })(); | |
| OLD | NEW |