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

Unified Diff: remoting/webapp/client_plugin.js

Issue 12207099: Update web-app client to use plugin notifyDeviceResolution API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | remoting/webapp/client_plugin_async.js » ('j') | remoting/webapp/client_plugin_async.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_plugin.js
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js
index 97a10da8ba1c3bb7124eb9981dd185da059ff51d..068663150ec5e11bd619a6102a2d81bba3489e48 100644
--- a/remoting/webapp/client_plugin.js
+++ b/remoting/webapp/client_plugin.js
@@ -55,6 +55,7 @@ remoting.ClientPlugin.prototype.isSupportedVersion = function() {};
remoting.ClientPlugin.Feature = {
INJECT_KEY_EVENT: 'injectKeyEvent',
NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions',
+ NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution',
PAUSE_VIDEO: 'pauseVideo',
PAUSE_AUDIO: 'pauseAudio',
REMAP_KEY: 'remapKey',
@@ -147,13 +148,14 @@ remoting.ClientPlugin.prototype.getPerfStats = function() {};
remoting.ClientPlugin.prototype.sendClipboardItem = function(mimeType, item) {};
/**
- * Notifies the host that the client has the specified dimensions.
+ * Notifies the host that the client has the specified size and pixel density.
*
- * @param {number} width The available client width.
- * @param {number} height The available client height.
+ * @param {number} width The available client width in DIPs.
+ * @param {number} height The available client height in DIPs.
+ * @param {number} device_scale The number of device pixels per DIP.
*/
-remoting.ClientPlugin.prototype.notifyClientDimensions =
- function(width, height) {};
+remoting.ClientPlugin.prototype.notifyClientResolution =
+ function(width, height, device_scale) {};
/**
* Requests that the host pause or resume sending video updates.
« no previous file with comments | « no previous file | remoting/webapp/client_plugin_async.js » ('j') | remoting/webapp/client_plugin_async.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698