| Index: content/renderer/browser_plugin/browser_plugin.h
|
| diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
|
| index 69090143f164a0c339543f315e08157e16902a69..7643c0bef59f41c07ed3073635af75bb5a61b00d 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin.h
|
| +++ b/content/renderer/browser_plugin/browser_plugin.h
|
| @@ -12,12 +12,19 @@
|
| #include "content/renderer/browser_plugin/browser_plugin_backing_store.h"
|
| #include "content/renderer/browser_plugin/browser_plugin_bindings.h"
|
| #include "content/renderer/render_view_impl.h"
|
| +#include "ipc/ipc_forwarding_message_filter.h"
|
|
|
| struct BrowserPluginMsg_UpdateRect_Params;
|
| +struct BrowserPlugin_SwapInfo;
|
| +
|
| +namespace gfx {
|
| +class Size;
|
| +}
|
|
|
| namespace content {
|
|
|
| class BrowserPluginManager;
|
| +class BrowserPluginTextureProvider;
|
| class MockBrowserPlugin;
|
|
|
| class CONTENT_EXPORT BrowserPlugin :
|
| @@ -44,6 +51,14 @@ class CONTENT_EXPORT BrowserPlugin :
|
| // Tells the BrowserPlugin to advance the focus to the next (or previous)
|
| // element.
|
| void AdvanceFocus(bool reverse);
|
| + void BuffersSwapped(
|
| + uint64 surface_handle,
|
| + const BrowserPlugin_SwapInfo& info);
|
| + void SurfaceResize(const gfx::Size& size);
|
| + void PostMessage(const std::string& message,
|
| + const std::string& target_origin);
|
| +
|
| + void TextureProviderIsReady();
|
|
|
| // Indicates whether there are any Javascript listeners attached to a
|
| // provided event_name.
|
| @@ -115,6 +130,9 @@ class CONTENT_EXPORT BrowserPlugin :
|
|
|
| // Virtual to allow for mocking in tests.
|
| virtual float GetDeviceScaleFactor() const;
|
| + virtual BrowserPluginTextureProvider* CreateTextureProvider(
|
| + int instance_id,
|
| + int routing_id) const;
|
|
|
| // Parses the source URL of the browser plugin from the element's attributes
|
| // and outputs them.
|
| @@ -138,6 +156,8 @@ class CONTENT_EXPORT BrowserPlugin :
|
| bool resize_pending_;
|
| int64 parent_frame_;
|
| std::string src_;
|
| + BrowserPluginTextureProvider* provider_;
|
| + bool ignore_input_;
|
| typedef std::vector<v8::Persistent<v8::Function> > EventListeners;
|
| typedef std::map<std::string, EventListeners> EventListenerMap;
|
| EventListenerMap event_listener_map_;
|
|
|