Index: chrome/browser/renderer_host/render_widget_host.cc |
diff --git a/chrome/browser/renderer_host/render_widget_host.cc b/chrome/browser/renderer_host/render_widget_host.cc |
index 5dec932d26f4096a9a2803fe29cec3239d63f9a4..88c8c51a36b1b008648640ac84a9de3f0cb32704 100644 |
--- a/chrome/browser/renderer_host/render_widget_host.cc |
+++ b/chrome/browser/renderer_host/render_widget_host.cc |
@@ -120,6 +120,12 @@ IPC_DEFINE_MESSAGE_MAP(RenderWidgetHost) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnMsgSetCursor) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ImeUpdateStatus, OnMsgImeUpdateStatus) |
IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_ShowPopup, OnMsgShowPopup(msg)) |
+#if defined(OS_LINUX) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_CreatePluginContainer, |
+ OnMsgCreatePluginContainer) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyPluginContainer, |
+ OnMsgDestroyPluginContainer) |
+#endif |
IPC_MESSAGE_UNHANDLED_ERROR() |
IPC_END_MESSAGE_MAP() |
@@ -748,6 +754,18 @@ void RenderWidgetHost::OnMsgShowPopup(const IPC::Message& message) { |
#endif |
} |
+#if defined(OS_LINUX) |
+void RenderWidgetHost::OnMsgCreatePluginContainer( |
+ gfx::PluginWindowHandle *container) { |
+ *container = view_->CreatePluginContainer(); |
+} |
+ |
+void RenderWidgetHost::OnMsgDestroyPluginContainer( |
+ gfx::PluginWindowHandle container) { |
+ view_->DestroyPluginContainer(container); |
+} |
+#endif |
+ |
void RenderWidgetHost::PaintBackingStoreRect(TransportDIB* bitmap, |
const gfx::Rect& bitmap_rect, |
const gfx::Size& view_size) { |