diff options
| author | Andrei Popescu <andreip@google.com> | 2010-01-14 15:33:28 +0000 |
|---|---|---|
| committer | Andrei Popescu <andreip@google.com> | 2010-01-22 15:03:58 +0000 |
| commit | b9ca2665dcffd57d63df89bca0444f1cee8d0fee (patch) | |
| tree | f4e793c38d4767dba83df34e1f03e36f1a21bfa6 /WebKit | |
| parent | 281327f5e60fa56769d50a55d9dd6b96f5ea5ffb (diff) | |
| download | external_webkit-b9ca2665dcffd57d63df89bca0444f1cee8d0fee.zip external_webkit-b9ca2665dcffd57d63df89bca0444f1cee8d0fee.tar.gz external_webkit-b9ca2665dcffd57d63df89bca0444f1cee8d0fee.tar.bz2 | |
Prepare ScriptController class for upstreaming.
Move the code to obtain the NPObject ptr associated with a PluginView to the PlatformBridge.
This change will be submitted as soon as the patch in
https://bugs.webkit.org/show_bug.cgi?id=33673
lands upstream.
Diffstat (limited to 'WebKit')
| -rw-r--r-- | WebKit/android/WebCoreSupport/PlatformBridge.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/PlatformBridge.cpp b/WebKit/android/WebCoreSupport/PlatformBridge.cpp index f36ecf7..995999b 100644 --- a/WebKit/android/WebCoreSupport/PlatformBridge.cpp +++ b/WebKit/android/WebCoreSupport/PlatformBridge.cpp @@ -29,7 +29,9 @@ #include "CookieClient.h" #include "JavaSharedClient.h" #include "KeyGeneratorClient.h" +#include "PluginView.h" #include "WebViewCore.h" +#include "npruntime.h" #include <wtf/android/AndroidThreading.h> #include <wtf/MainThread.h> @@ -98,6 +100,15 @@ bool PlatformBridge::cookiesEnabled() return client->cookiesEnabled(); } +NPObject* PlatformBridge::pluginScriptableObject(Widget* widget) +{ + if (!widget->isPluginView()) + return 0; + + PluginView* pluginView = static_cast<PluginView*>(widget); + return pluginView->getNPObject(); +} + bool PlatformBridge::isWebViewPaused() { return WebViewCore::isPaused(); |
