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

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

Issue 929323003: Separate host desktop related functionality into remoting.HostDesktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separating from https://codereview.chromium.org/918783002/ 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..4d93fb8cb09c70df48becbf4dc4249e662f647ed 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.
@@ -88,14 +73,6 @@ remoting.ClientPlugin.prototype.remapKey = function(from, to) {};
remoting.ClientPlugin.prototype.releaseAllKeys = function() {};
/**
- * @param {number} width
- * @param {number} height
- * @param {number} dpi
- */
-remoting.ClientPlugin.prototype.notifyClientResolution =
- function(width, height, dpi) {};
-
-/**
* @param {string} iq
*/
remoting.ClientPlugin.prototype.onIncomingIq = function(iq) {};
@@ -112,6 +89,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 +199,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