diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-03 07:34:43 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-03 07:34:43 +0000 |
commit | 487d3a271cd57794afac1e430497b739af6f2391 (patch) | |
tree | 752c5b8ab10667b31eaddd85fa4e3bdc4595ddb9 /remoting/webapp/client_session.js | |
parent | b96c80eeb741b0aa9105dd36d47732c1071e5fee (diff) | |
download | chromium_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.js | 3 |
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. */ |