Chromium Code Reviews| Index: content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
| diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
| index da5e425764148e3fa9f29c3bd0182229cb9ea708..311361b8e2640af1cdfe7aea8f7d5ac2bd7e1061 100644 |
| --- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
| +++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc |
| @@ -53,6 +53,8 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived( |
| OnSetGuestVisibility) |
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_DragStatusUpdate, |
| OnDragStatusUpdate) |
| + IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, |
|
lazyboy
2012/11/06 22:22:35
nit: can fit in one line?
Fady Samuel
2012/11/06 23:52:34
Done.
|
| + OnSetAutoSize) |
| IPC_MESSAGE_UNHANDLED(handled = false) |
| IPC_END_MESSAGE_MAP() |
| return handled; |
| @@ -170,4 +172,11 @@ void BrowserPluginEmbedderHelper::OnDragStatusUpdate( |
| location); |
| } |
| +void BrowserPluginEmbedderHelper::OnSetAutoSize( |
| + int instance_id, |
| + const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, |
| + const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { |
| + embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params); |
| +} |
| + |
| } // namespace content |