Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: remoting/webapp/crd/js/host_desktop.js

Issue 929323003: Separate host desktop related functionality into remoting.HostDesktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jamie's feedback Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698