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

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: Rebase + plumbing remoting.Host into clientSession 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 5f21c1c3d564020ff542f7ffecce7653db33da84..b0dec8039b1deb0a3ee8d141c66ea1028bdd0518 100644
--- a/remoting/webapp/crd/js/client_plugin.js
+++ b/remoting/webapp/crd/js/client_plugin.js
@@ -19,24 +19,9 @@ var remoting = remoting || {};
remoting.ClientPlugin = function() {};
/**
- * @return {number} The width of the remote desktop, in pixels.
+ * @return {remoting.HostDesktop}
*/
-remoting.ClientPlugin.prototype.getDesktopWidth = function() {};
-
-/**
- * @return {number} The height of the remote desktop, in pixels.
- */
-remoting.ClientPlugin.prototype.getDesktopHeight = function() {};
-
-/**
- * @return {number} The x-DPI of the remote desktop.
- */
-remoting.ClientPlugin.prototype.getDesktopXDpi = function() {};
-
-/**
- * @return {number} The y-DPI of the remote desktop.
- */
-remoting.ClientPlugin.prototype.getDesktopYDpi = function() {};
+remoting.ClientPlugin.prototype.hostDesktop = function() {};
/**
* @return {HTMLElement} The DOM element representing the remote session.
@@ -112,6 +97,12 @@ remoting.ClientPlugin.prototype.isSupportedVersion = function() {};
remoting.ClientPlugin.prototype.hasFeature = function(feature) {};
/**
+ * @param {string} capability
+ * @return {boolean} True if the host support the specified capability.
+ */
+remoting.ClientPlugin.prototype.hasCapability = function(capability) {};
+
+/**
* Sends a clipboard item to the host.
*
* @param {string} mimeType The MIME type of the clipboard item.
@@ -216,20 +207,6 @@ remoting.ClientPlugin.prototype.setConnectionReadyHandler =
function(handler) {};
/**
- * @param {function():void} handler Callback for desktop size change
- * notifications.
- */
-remoting.ClientPlugin.prototype.setDesktopSizeUpdateHandler =
- function(handler) {};
-
-/**
- * @param {function(Array<Array<number>>):void} handler Callback for desktop
- * shape change notifications.
- */
-remoting.ClientPlugin.prototype.setDesktopShapeUpdateHandler =
- function(handler) {};
-
-/**
* @param {function(!Array<string>):void} handler Callback to inform of
* capabilities negotiated between host and client.
*/

Powered by Google App Engine
This is Rietveld 408576698