Chromium Code Reviews| 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 d1c6caa70571d17934a403df875256317881262a..83b1f8563e348d92c41add0334bcf1e48a338e0d 100644 |
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc |
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
| @@ -350,6 +350,8 @@ bool BrowserPluginGuest::OnMessageReceivedFromEmbedder( |
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_RespondPermission, |
| OnRespondPermission) |
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetSize) |
| + IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent, |
| + OnSetEditCommandsForNextKeyEvent) |
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus) |
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetName, OnSetName) |
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility, OnSetVisibility) |
| @@ -976,6 +978,7 @@ bool BrowserPluginGuest::ShouldForwardToBrowserPluginGuest( |
| case BrowserPluginHostMsg_ResizeGuest::ID: |
| case BrowserPluginHostMsg_RespondPermission::ID: |
| case BrowserPluginHostMsg_SetAutoSize::ID: |
| + case BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent::ID: |
| case BrowserPluginHostMsg_SetFocus::ID: |
| case BrowserPluginHostMsg_SetName::ID: |
| case BrowserPluginHostMsg_SetVisibility::ID: |
| @@ -1320,6 +1323,13 @@ void BrowserPluginGuest::OnSetSize( |
| OnResizeGuest(instance_id_, resize_guest_params); |
| } |
| +void BrowserPluginGuest::OnSetEditCommandsForNextKeyEvent( |
| + int instance_id, |
| + const std::vector<EditCommand>& edit_commands) { |
| + Send(new InputMsg_SetEditCommandsForNextKeyEvent(routing_id(), |
| + edit_commands)); |
| + } |
|
dcheng
2013/05/21 19:32:37
Nit: indent.
Fady Samuel
2013/05/21 19:41:35
Done.
|
| + |
| void BrowserPluginGuest::OnSetVisibility(int instance_id, bool visible) { |
| guest_visible_ = visible; |
| if (embedder_visible_ && guest_visible_) |