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

Unified Diff: remoting/webapp/crd/js/client_plugin.js

Issue 918783002: CRD Viewport Management refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implementation 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 side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/crd/js/client_plugin.js
diff --git a/remoting/webapp/crd/js/client_plugin.js b/remoting/webapp/crd/js/client_plugin.js
index 12f5a6dfc2121324f9adf2e3c14e3c58692bed10..bed430acf4c31eda23067e786c31e6d317e05ee6 100644
--- a/remoting/webapp/crd/js/client_plugin.js
+++ b/remoting/webapp/crd/js/client_plugin.js
@@ -39,6 +39,11 @@ remoting.ClientPlugin.prototype.getDesktopXDpi = function() {};
remoting.ClientPlugin.prototype.getDesktopYDpi = function() {};
/**
+ * @return {remoting.ClientPlugin.HostDesktop}
+ */
+remoting.ClientPlugin.prototype.hostDesktop = function() {};
+
+/**
* @return {HTMLElement} The DOM element representing the remote session.
*/
remoting.ClientPlugin.prototype.element = function() {};
@@ -325,3 +330,36 @@ remoting.ClientPluginFactory.prototype.preloadPlugin = function() {};
* @type {remoting.ClientPluginFactory}
*/
remoting.ClientPlugin.factory = null;
+
+
+/**
+ * @interface
+ * @extends {base.EventSource}
+ */
+remoting.ClientPlugin.HostDesktop = function() {};
garykac 2015/02/12 18:18:22 Why not just remoting.HostDesktop?
kelvinp 2015/02/12 23:26:41 Done.
+
+/** @return {boolean} */
+remoting.ClientPlugin.HostDesktop.prototype.hasResizeRateLimit = function() {};
+
+/** @return {boolean} */
+remoting.ClientPlugin.HostDesktop.prototype.isResizable = function() {};
+
+/** @enum {string} */
+remoting.ClientPlugin.HostDesktop.Events = {
+ sizeChanged: 'sizeChanged',
+ shapeChanged: 'shapeChanged'
garykac 2015/02/12 18:18:22 2 spaces
kelvinp 2015/02/12 23:26:41 Done.
+};
+
+/** @return {{width:number, height:number, xDpi:number, yDpi:number}} */
+remoting.ClientPlugin.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.ClientPlugin.HostDesktop.prototype.resize = function(width,
+ height,
+ dpi) {};

Powered by Google App Engine
This is Rietveld 408576698