diff options
author | Derek Sollenberger <djsollen@google.com> | 2009-09-08 18:33:06 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2009-09-15 19:33:00 -0400 |
commit | 10d4052577e66430f5a3716ec51a401f1b4b21c2 (patch) | |
tree | 15ab59c31308baeff0dd667ee72610fb2e24abc3 /WebCore/plugins | |
parent | b90cf0b22394fa98aba20f711be42f94184b482c (diff) | |
download | external_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.cpp | 7 |
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)) |