summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2010-01-11 13:11:22 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-01-11 13:11:22 -0800
commitab89d1aa666d00b6334b44c4300a23683617e402 (patch)
tree1f87502af2f433c59e68998fee9f45f08811a486 /WebCore
parent9653e7ce8a33c5e4b2931a3594e82c49597601e2 (diff)
parent838afd1be683057ebaf5cf85359bf9a567602b7b (diff)
downloadexternal_webkit-ab89d1aa666d00b6334b44c4300a23683617e402.zip
external_webkit-ab89d1aa666d00b6334b44c4300a23683617e402.tar.gz
external_webkit-ab89d1aa666d00b6334b44c4300a23683617e402.tar.bz2
am 838afd1b: consolidating to only use one surface per plugin. give plugin access to java context.
Merge commit '838afd1be683057ebaf5cf85359bf9a567602b7b' into eclair-mr2-plus-aosp * commit '838afd1be683057ebaf5cf85359bf9a567602b7b': consolidating to only use one surface per plugin. give plugin access to java context.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/plugins/android/PluginViewAndroid.cpp8
1 files changed, 7 insertions, 1 deletions
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<uint32_t*>(value);
- *bits = (1 << kBitmap_ANPDrawingModel);
+ *bits = kBitmap_ANPDrawingModel & kSurface_ANPDrawingModel;
+ return NPERR_NO_ERROR;
+ }
+
+ case kJavaContext_ANPGetValue: {
+ jobject* retObject = static_cast<jobject*>(value);
+ *retObject = android::WebViewCore::getWebViewCore(parent())->getContext();
return NPERR_NO_ERROR;
}