Chromium Code Reviews| Index: remoting/webapp/crd/js/host_desktop.js |
| diff --git a/remoting/webapp/crd/js/host_desktop.js b/remoting/webapp/crd/js/host_desktop.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..65fbc69197587daf03a3a9079c77ed510324ac28 |
| --- /dev/null |
| +++ b/remoting/webapp/crd/js/host_desktop.js |
| @@ -0,0 +1,46 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +/** |
| + * @fileoverview |
| + * Interface abstracting the functionality of the HostDesktop. |
| + */ |
| + |
| +var remoting = remoting || {}; |
| + |
| +(function() { |
| + |
| +'use strict'; |
| + |
| +/** |
| + * @interface |
| + * @extends {base.EventSource} |
| + */ |
| +remoting.HostDesktop = function() {}; |
| + |
| +/** @return {boolean} */ |
|
kelvinp
2015/02/18 02:31:51
When defining an interface, more comments are almo
|
| +remoting.HostDesktop.prototype.hasResizeRateLimit = function() {}; |
| + |
| +/** @return {boolean} */ |
| +remoting.HostDesktop.prototype.isResizable = function() {}; |
| + |
| +/** @enum {string} */ |
| +remoting.HostDesktop.Events = { |
| + sizeChanged: 'sizeChanged', |
| + shapeChanged: 'shapeChanged' |
| +}; |
| + |
| +/** @return {{width:number, height:number, xDpi:number, yDpi:number}} */ |
| +remoting.HostDesktop.prototype.getDimensions = function() {}; |
| + |
| +/** |
| + * Resize the desktop of the host to |width|, |height| and |dpi|. |
| + * |
| + * @param {number} width |
| + * @param {number} height |
| + * @param {number} dpi |
| + */ |
| +remoting.HostDesktop.prototype.resize = function(width, height, dpi) {}; |
| + |
| +})(); |