From 838afd1be683057ebaf5cf85359bf9a567602b7b Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Mon, 11 Jan 2010 12:49:19 -0500 Subject: consolidating to only use one surface per plugin. give plugin access to java context. There is a companion commit in frameworks/base. --- WebCore/plugins/android/PluginViewAndroid.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'WebCore') diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp index 65d3385..e10641d 100644 --- a/WebCore/plugins/android/PluginViewAndroid.cpp +++ b/WebCore/plugins/android/PluginViewAndroid.cpp @@ -483,7 +483,13 @@ NPError PluginView::getValue(NPNVariable variable, void* value) case kSupportedDrawingModel_ANPGetValue: { uint32_t* bits = reinterpret_cast(value); - *bits = (1 << kBitmap_ANPDrawingModel); + *bits = kBitmap_ANPDrawingModel & kSurface_ANPDrawingModel; + return NPERR_NO_ERROR; + } + + case kJavaContext_ANPGetValue: { + jobject* retObject = static_cast(value); + *retObject = android::WebViewCore::getWebViewCore(parent())->getContext(); return NPERR_NO_ERROR; } -- cgit v1.1