From b9ca2665dcffd57d63df89bca0444f1cee8d0fee Mon Sep 17 00:00:00 2001 From: Andrei Popescu Date: Thu, 14 Jan 2010 15:33:28 +0000 Subject: 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. --- WebCore/platform/android/PlatformBridge.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'WebCore/platform/android') diff --git a/WebCore/platform/android/PlatformBridge.h b/WebCore/platform/android/PlatformBridge.h index a73abab..8b08490 100644 --- a/WebCore/platform/android/PlatformBridge.h +++ b/WebCore/platform/android/PlatformBridge.h @@ -31,9 +31,12 @@ #include +class NPObject; + namespace WebCore { class FrameView; +class Widget; // An interface to the embedding layer, which has the ability to answer // questions about the system and so on... @@ -54,6 +57,8 @@ public: static void setCookies(const KURL&, const String& value); static String cookies(const KURL&); static bool cookiesEnabled(); + // Plugin + static NPObject* pluginScriptableObject(Widget*); // These ids need to be in sync with the constants in BrowserFrame.java enum rawResId { NoDomain = 1, -- cgit v1.1