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} */ | |
|
kelvinp
2015/02/18 02:31:51
When defining an interface, more comments are almo
| |
| 23 remoting.HostDesktop.prototype.hasResizeRateLimit = function() {}; | |
| 24 | |
| 25 /** @return {boolean} */ | |
| 26 remoting.HostDesktop.prototype.isResizable = function() {}; | |
| 27 | |
| 28 /** @enum {string} */ | |
| 29 remoting.HostDesktop.Events = { | |
| 30 sizeChanged: 'sizeChanged', | |
| 31 shapeChanged: 'shapeChanged' | |
| 32 }; | |
| 33 | |
| 34 /** @return {{width:number, height:number, xDpi:number, yDpi:number}} */ | |
| 35 remoting.HostDesktop.prototype.getDimensions = function() {}; | |
| 36 | |
| 37 /** | |
| 38 * Resize the desktop of the host to |width|, |height| and |dpi|. | |
| 39 * | |
| 40 * @param {number} width | |
| 41 * @param {number} height | |
| 42 * @param {number} dpi | |
| 43 */ | |
| 44 remoting.HostDesktop.prototype.resize = function(width, height, dpi) {}; | |
| 45 | |
| 46 })(); | |
| OLD | NEW |