diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-21 10:11:15 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-21 10:11:15 +0000 |
commit | d28b8592ff9cd26e6d26e9d38aee6f4db78f2fb5 (patch) | |
tree | 33b43f6967a19dfe9b9843d9ef4f3290ab9fb7fb /remoting/webapp | |
parent | 224b4523a6c1f37827d4de758a711135b7e2308d (diff) | |
download | chromium_src-d28b8592ff9cd26e6d26e9d38aee6f4db78f2fb5.zip chromium_src-d28b8592ff9cd26e6d26e9d38aee6f4db78f2fb5.tar.gz chromium_src-d28b8592ff9cd26e6d26e9d38aee6f4db78f2fb5.tar.bz2 |
Client plugin cleanups
Some minor cleanups in client plugin code:
1. Previously all messages were parsed in HandleMessage() which was more
than 200 lines of code. Moved argument parsing to methods that process
incoming messages.
2. Remove notifyClientDimensions method - it was replaced with
notifyClientResolution.
Review URL: https://chromiumcodereview.appspot.com/23293007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r-- | remoting/webapp/client_plugin.js | 1 | ||||
-rw-r--r-- | remoting/webapp/client_plugin_async.js | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/remoting/webapp/client_plugin.js b/remoting/webapp/client_plugin.js index 247d068..8cd8f1c 100644 --- a/remoting/webapp/client_plugin.js +++ b/remoting/webapp/client_plugin.js @@ -58,7 +58,6 @@ remoting.ClientPlugin.prototype.isSupportedVersion = function() {}; */ remoting.ClientPlugin.Feature = { INJECT_KEY_EVENT: 'injectKeyEvent', - NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions', NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution', ASYNC_PIN: 'asyncPin', PAUSE_VIDEO: 'pauseVideo', diff --git a/remoting/webapp/client_plugin_async.js b/remoting/webapp/client_plugin_async.js index 022c721..b788f64 100644 --- a/remoting/webapp/client_plugin_async.js +++ b/remoting/webapp/client_plugin_async.js @@ -520,11 +520,6 @@ remoting.ClientPluginAsync.prototype.notifyClientResolution = data: { width: width * device_scale, height: height * device_scale, x_dpi: dpi, y_dpi: dpi }})); - } else if (this.hasFeature( - remoting.ClientPlugin.Feature.NOTIFY_CLIENT_DIMENSIONS)) { - this.plugin.postMessage(JSON.stringify( - { method: 'notifyClientDimensions', - data: { width: width, height: height }})); } }; |