summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/client_session.js
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 07:34:43 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 07:34:43 +0000
commit487d3a271cd57794afac1e430497b739af6f2391 (patch)
tree752c5b8ab10667b31eaddd85fa4e3bdc4595ddb9 /remoting/webapp/client_session.js
parentb96c80eeb741b0aa9105dd36d47732c1071e5fee (diff)
downloadchromium_src-487d3a271cd57794afac1e430497b739af6f2391.zip
chromium_src-487d3a271cd57794afac1e430497b739af6f2391.tar.gz
chromium_src-487d3a271cd57794afac1e430497b739af6f2391.tar.bz2
Add an apiFeatures property to the client plugin.
To date features have been added with an associated plugin API bump, leading to conflicts when multiple features go in within the same API bump, and one of them is subsequently back-ported to an earlier release. apiFeatures allows features of the client plugin to be treated independently. TEST=Manual testing of client default scaling setting. Review URL: http://codereview.chromium.org/9969073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp/client_session.js')
-rw-r--r--remoting/webapp/client_session.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js
index ae73bc8..f989dfd 100644
--- a/remoting/webapp/client_session.js
+++ b/remoting/webapp/client_session.js
@@ -279,7 +279,8 @@ remoting.ClientSession.prototype.onPluginInitialized_ =
// Enable scale-to-fit if and only if the plugin is new enough for
// high-quality scaling.
- this.setScaleToFit(this.plugin.isHiQualityScalingSupported());
+ this.setScaleToFit(this.plugin.hasFeature(
+ remoting.ClientPlugin.Feature.HIGH_QUALITY_SCALING));
/** @type {remoting.ClientSession} */ var that = this;
/** @param {string} msg The IQ stanza to send. */