diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 10:13:56 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 10:13:56 +0000 |
commit | 05224ff2175e19b5a69318d25d08b8da00089865 (patch) | |
tree | 00d4d3001531f1fb5d3854a714f4de28e3498886 /webkit/plugins/npapi/plugin_host.cc | |
parent | 81f8499479bc3952d755fb011216b23b20964b26 (diff) | |
download | chromium_src-05224ff2175e19b5a69318d25d08b8da00089865.zip chromium_src-05224ff2175e19b5a69318d25d08b8da00089865.tar.gz chromium_src-05224ff2175e19b5a69318d25d08b8da00089865.tar.bz2 |
Implement NPNVsupportsCompositingCoreAnimationPluginsBool
Returns true when plugin compositing is enabled, so that plugins that dynamically query for composited CA support know it's safe to use CA.
Updates NPAPI headers to r14 of the upstream 'npapi-sdk' project headers, to pick up the new constant.
BUG=40997
TEST=HTML overlays should work with, e.g., the Google Earth plugin on 10.6+
Review URL: http://codereview.chromium.org/8805004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113370 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/plugin_host.cc')
-rw-r--r-- | webkit/plugins/npapi/plugin_host.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/plugins/npapi/plugin_host.cc b/webkit/plugins/npapi/plugin_host.cc index 73204d2..e54346ba 100644 --- a/webkit/plugins/npapi/plugin_host.cc +++ b/webkit/plugins/npapi/plugin_host.cc @@ -850,6 +850,13 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) { rv = NPERR_NO_ERROR; break; } + case NPNVsupportsCompositingCoreAnimationPluginsBool: { + NPBool* supports_compositing = reinterpret_cast<NPBool*>(value); + *supports_compositing = + webkit::npapi::UsingCompositedCoreAnimationPlugins(); + rv = NPERR_NO_ERROR; + break; + } case NPNVsupportsUpdatedCocoaTextInputBool: { // We support the clarifications to the Cocoa IME event spec, but since // IME currently only works on 10.6, only answer true there. |