summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/bindings/npapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/bindings/npapi.h')
-rw-r--r--JavaScriptCore/bindings/npapi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/JavaScriptCore/bindings/npapi.h b/JavaScriptCore/bindings/npapi.h
index ba8b6c7..d7ff9f3 100644
--- a/JavaScriptCore/bindings/npapi.h
+++ b/JavaScriptCore/bindings/npapi.h
@@ -105,7 +105,13 @@
/*----------------------------------------------------------------------*/
#define NP_VERSION_MAJOR 0
+#ifdef ANDROID_PLUGINS
+// Implements NPN_PluginThreadAsyncCall. Sandbox WebKit is version 20
+// and should override this change when merged.
+#define NP_VERSION_MINOR 19
+#else
#define NP_VERSION_MINOR 18
+#endif
@@ -706,6 +712,11 @@ void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion);
void NPN_ForceRedraw(NPP instance);
void NPN_PushPopupsEnabledState(NPP instance, NPBool enabled);
void NPN_PopPopupsEnabledState(NPP instance);
+#ifdef ANDROID_PLUGINS
+// Sandbox WebKit is version 20 NPAPI and implements
+// NPN_PluginThreadAsyncCall. Remove this change when merged.
+void NPN_PluginThreadAsyncCall(NPP instance, void (*func)(void *), void *userData);
+#endif
#ifdef __cplusplus
} /* end extern "C" */