summaryrefslogtreecommitdiffstats
path: root/WebKit/android/plugins/PluginWidgetAndroid.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/plugins/PluginWidgetAndroid.h')
-rw-r--r--WebKit/android/plugins/PluginWidgetAndroid.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/WebKit/android/plugins/PluginWidgetAndroid.h b/WebKit/android/plugins/PluginWidgetAndroid.h
index c8d1ffe..84ac729 100644
--- a/WebKit/android/plugins/PluginWidgetAndroid.h
+++ b/WebKit/android/plugins/PluginWidgetAndroid.h
@@ -28,11 +28,14 @@
#include "android_npapi.h"
+#include <wtf/OwnPtr.h>
+
namespace WebCore {
class PluginView;
}
namespace android {
+ class PluginSurface;
class WebViewCore;
}
@@ -52,6 +55,9 @@ struct PluginWidgetAndroid {
WebCore::PluginView* pluginView() const { return m_pluginView; }
+ // Needed by PluginSurface to manage the java SurfaceView.
+ android::WebViewCore* webViewCore() const { return m_core; }
+
/* Can't determine our core at construction time, so PluginView calls this
as soon as it has a parent.
*/
@@ -101,6 +107,12 @@ struct PluginWidgetAndroid {
*/
bool isAcceptingEvent(ANPEventFlag);
+ /* Create an ANPSurface that the plugin may draw in to. The drawing model
+ must be kSurface_ANPDrawingModel for this call to succeed. The type
+ specifies what kind of pixel access will be available.
+ */
+ ANPSurface* createSurface(ANPSurfaceType type);
+
private:
WebCore::PluginView* m_pluginView;
android::WebViewCore* m_core;
@@ -109,6 +121,7 @@ private:
ANPEventFlags m_eventFlags;
int m_x;
int m_y;
+ OwnPtr<android::PluginSurface> m_surface;
};
#endif