| Index: content/browser/browser_plugin/browser_plugin_host.h
|
| diff --git a/content/browser/browser_plugin/browser_plugin_host.h b/content/browser/browser_plugin/browser_plugin_host.h
|
| index e6b8c79afad0816fdf3f1d2177640f9a1b981653..4d81a62ab657449272ab50ac2948e8b38ce9234b 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_host.h
|
| +++ b/content/browser/browser_plugin/browser_plugin_host.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/id_map.h"
|
| +#include "content/common/browser_plugin_info.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| #include "content/public/browser/web_contents_delegate.h"
|
| @@ -21,6 +22,7 @@
|
| #include "webkit/glue/webcursor.h"
|
|
|
| class WebContentsImpl;
|
| +struct BrowserPlugin_SwapInfo;
|
| struct BrowserPluginHostMsg_PostMessage_Params;
|
| struct ViewHostMsg_UpdateRect_Params;
|
|
|
| @@ -62,7 +64,8 @@ class BrowserPluginHost : public WebContentsObserver,
|
| int instance_id,
|
| int64 frame_id,
|
| const std::string& src,
|
| - const gfx::Size& size);
|
| + const gfx::Size& size,
|
| + const BrowserPluginHostMsg_Surface_Params& params);
|
|
|
| // This is called when the browser plugin's container has resized in the
|
| // embedder. In additon to specifying the new size, and new scale factor,
|
| @@ -103,6 +106,16 @@ class BrowserPluginHost : public WebContentsObserver,
|
| float scale_factor);
|
| TransportDIB* damage_buffer() const { return damage_buffer_; }
|
| const gfx::Size& damage_buffer_size() const { return damage_buffer_size_; }
|
| +
|
| + void SendBuffersSwappedToEmbedder(
|
| + uint64 surface_handle,
|
| + const BrowserPlugin_SwapInfo& info);
|
| + void SendSurfaceResizeToEmbedder(const gfx::Size& size);
|
| +
|
| + void set_surface_params(const BrowserPluginHostMsg_Surface_Params& params) {
|
| + surface_params_ = params;
|
| + }
|
| +
|
| float damage_buffer_scale_factor() const {
|
| return damage_buffer_scale_factor_;
|
| }
|
| @@ -173,6 +186,7 @@ class BrowserPluginHost : public WebContentsObserver,
|
| IDMap<RenderViewHost> pending_updates_;
|
| int pending_update_counter_;
|
| scoped_ptr<IPC::Message> pending_input_event_reply_;
|
| + BrowserPluginHostMsg_Surface_Params surface_params_;
|
| gfx::Rect guest_rect_;
|
| WebCursor cursor_;
|
|
|
|
|