Index: content/browser/browser_plugin/browser_plugin_guest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc |
index 7c268bff0cfa92b153ceec31a8f472d47f425cd4..3572f2d7b2f82f23c7b1e487ba17afd2026311b8 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -353,6 +353,7 @@ void BrowserPluginGuest::RenderViewGone(base::TerminationStatus status) { |
bool BrowserPluginGuest::OnMessageReceived(const IPC::Message& message) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(BrowserPluginGuest, message) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWindow, OnCreateWindow) |
IPC_MESSAGE_HANDLER(ViewHostMsg_HandleInputEvent_ACK, OnHandleInputEventAck) |
IPC_MESSAGE_HANDLER(ViewHostMsg_HasTouchEventHandlers, |
OnHasTouchEventHandlers) |
@@ -528,6 +529,18 @@ void BrowserPluginGuest::OnUpdateRectACK( |
OnSetSize(instance_id_, auto_size_params, resize_guest_params); |
} |
+void BrowserPluginGuest::OnCreateWindow( |
+ const ViewHostMsg_CreateWindow_Params& params, |
+ int* route_id, |
+ int* surface_id, |
+ int64* cloned_session_storage_namespace_id) { |
+ // TODO(fsamuel): We do not currently support window.open. |
+ // See http://crbug.com/140316. |
+ *route_id = MSG_ROUTING_NONE; |
+ *surface_id = 0; |
+ *cloned_session_storage_namespace_id = 0l; |
+} |
+ |
void BrowserPluginGuest::OnHandleInputEventAck( |
WebKit::WebInputEvent::Type event_type, |
InputEventAckState ack_result) { |