diff options
Diffstat (limited to 'Source/WebCore/plugins/android')
| -rw-r--r-- | Source/WebCore/plugins/android/PluginViewAndroid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/plugins/android/PluginViewAndroid.cpp b/Source/WebCore/plugins/android/PluginViewAndroid.cpp index 6c712d0..78d0217 100644 --- a/Source/WebCore/plugins/android/PluginViewAndroid.cpp +++ b/Source/WebCore/plugins/android/PluginViewAndroid.cpp @@ -106,6 +106,7 @@ extern void ANPSurfaceInterfaceV0_Init(ANPInterface* value); extern void ANPTypefaceInterfaceV0_Init(ANPInterface* value); extern void ANPWindowInterfaceV0_Init(ANPInterface* value); extern void ANPWindowInterfaceV1_Init(ANPInterface* value); +extern void ANPWindowInterfaceV2_Init(ANPInterface* value); extern void ANPSystemInterfaceV0_Init(ANPInterface* value); extern void ANPSystemInterfaceV1_Init(ANPInterface* value); extern void ANPSystemInterfaceV2_Init(ANPInterface* value); @@ -135,6 +136,7 @@ static const VarProcPair gVarProcs[] = { { VARPROCLINE(TypefaceInterfaceV0) }, { VARPROCLINE(WindowInterfaceV0) }, { VARPROCLINE(WindowInterfaceV1) }, + { VARPROCLINE(WindowInterfaceV2) }, { VARPROCLINE(SystemInterfaceV0) }, { VARPROCLINE(SystemInterfaceV1) }, { VARPROCLINE(SystemInterfaceV2) }, @@ -539,6 +541,7 @@ bool PluginView::platformGetValue(NPNVariable variable, void* value, NPError* re // Return the top level WebView Java object associated // with this instance. jobject *retObject = static_cast<jobject*>(value); + // TODO: Is it safe for this to be NULL? It looks from the NPNVWindowNPObject case that it is. *retObject = android::WebViewCore::getWebViewCore(parent())->getWebViewJavaObject(); *result = NPERR_NO_ERROR; return true; @@ -564,6 +567,7 @@ bool PluginView::platformGetValue(NPNVariable variable, void* value, NPError* re case kJavaContext_ANPGetValue: { jobject* retObject = static_cast<jobject*>(value); + // TODO: Is it safe for this to be NULL? It looks from the NPNVWindowNPObject case that it is. *retObject = android::WebViewCore::getWebViewCore(parent())->getContext(); *result = NPERR_NO_ERROR; return true; |
