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
parent 81f84994
...@@ -403,7 +403,7 @@ typedef enum { ...@@ -403,7 +403,7 @@ typedef enum {
, NPPVpluginCoreAnimationLayer = 1003 , NPPVpluginCoreAnimationLayer = 1003
#endif #endif
#if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6) #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
, NPPVpluginWindowlessLocalBool = 2002 , NPPVpluginWindowlessLocalBool = 2002
#endif #endif
} NPPVariable; } NPPVariable;
...@@ -435,7 +435,9 @@ typedef enum { ...@@ -435,7 +435,9 @@ typedef enum {
NPNVprivateModeBool = 18, NPNVprivateModeBool = 18,
NPNVsupportsAdvancedKeyHandling = 21 NPNVsupportsAdvancedKeyHandling = 21,
NPNVdocumentOrigin = 22
#if defined(XP_MACOSX) #if defined(XP_MACOSX)
/* Used for negotiating drawing models */ /* Used for negotiating drawing models */
...@@ -453,8 +455,10 @@ typedef enum { ...@@ -453,8 +455,10 @@ typedef enum {
, NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */ , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
, NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports the updated , NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports the updated
Cocoa text input specification. */ Cocoa text input specification. */
, NPNVsupportsCompositingCoreAnimationPluginsBool = 74656 /* TRUE if the browser supports
CA model compositing */
#endif #endif
#if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6) #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
, NPNVSupportsWindowlessLocal = 2002 , NPNVSupportsWindowlessLocal = 2002
#endif #endif
} NPNVariable; } NPNVariable;
......
...@@ -850,6 +850,13 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) { ...@@ -850,6 +850,13 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void* value) {
rv = NPERR_NO_ERROR; rv = NPERR_NO_ERROR;
break; break;
} }
case NPNVsupportsCompositingCoreAnimationPluginsBool: {
NPBool* supports_compositing = reinterpret_cast<NPBool*>(value);
*supports_compositing =
webkit::npapi::UsingCompositedCoreAnimationPlugins();
rv = NPERR_NO_ERROR;
break;
}
case NPNVsupportsUpdatedCocoaTextInputBool: { case NPNVsupportsUpdatedCocoaTextInputBool: {
// We support the clarifications to the Cocoa IME event spec, but since // We support the clarifications to the Cocoa IME event spec, but since
// IME currently only works on 10.6, only answer true there. // IME currently only works on 10.6, only answer true there.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment