summaryrefslogtreecommitdiffstats
path: root/WebCore/plugins
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2009-09-08 18:33:06 -0400
committerDerek Sollenberger <djsollen@google.com>2009-09-15 19:33:00 -0400
commit10d4052577e66430f5a3716ec51a401f1b4b21c2 (patch)
tree15ab59c31308baeff0dd667ee72610fb2e24abc3 /WebCore/plugins
parentb90cf0b22394fa98aba20f711be42f94184b482c (diff)
downloadexternal_webkit-10d4052577e66430f5a3716ec51a401f1b4b21c2.zip
external_webkit-10d4052577e66430f5a3716ec51a401f1b4b21c2.tar.gz
external_webkit-10d4052577e66430f5a3716ec51a401f1b4b21c2.tar.bz2
First pass at replacing native plugin views with java.
Change-Id: I637275c9766202a4358ef25af01ee92c85c48e7f
Diffstat (limited to 'WebCore/plugins')
-rw-r--r--WebCore/plugins/android/PluginViewAndroid.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp
index 3fc36c8..1815a9e 100644
--- a/WebCore/plugins/android/PluginViewAndroid.cpp
+++ b/WebCore/plugins/android/PluginViewAndroid.cpp
@@ -73,6 +73,7 @@
#include "PluginWidgetAndroid.h"
#include "android_npapi.h"
+#include "ANPSurface_npapi.h"
#include "SkANP.h"
#include "SkFlipPixelRef.h"
@@ -481,6 +482,12 @@ NPError PluginView::platformSetValue(NPPVariable variable, void* value)
NPError error = NPERR_GENERIC_ERROR;
switch (variable) {
+ case kSetJavaClassName_ANPSetValue: {
+ char* className = reinterpret_cast<char*>(value);
+ if (m_window->setJavaClassName(className))
+ error = NPERR_NO_ERROR;
+ break;
+ }
case kRequestDrawingModel_ANPSetValue: {
ANPDrawingModel model = reinterpret_cast<ANPDrawingModel>(value);
if (m_window->setDrawingModel(model))