diff options
author | Andrei Popescu <andreip@google.com> | 2010-01-25 03:38:53 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-01-25 03:38:53 -0800 |
commit | b621c75b275a6b7ac0fd99772749aaadb3548815 (patch) | |
tree | 319a50f7b8805dc80336df49730c98a1aa87d5eb /WebKit | |
parent | ce6ac5bde4fdfba3f020e3dc8264f0416160a3a8 (diff) | |
parent | b9ca2665dcffd57d63df89bca0444f1cee8d0fee (diff) | |
download | external_webkit-b621c75b275a6b7ac0fd99772749aaadb3548815.zip external_webkit-b621c75b275a6b7ac0fd99772749aaadb3548815.tar.gz external_webkit-b621c75b275a6b7ac0fd99772749aaadb3548815.tar.bz2 |
Merge "Prepare ScriptController class for upstreaming."
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(); |