| 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..053d92af02c67474557aac1e3cf3c090b67961a8 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));
|
| +}
|
| +
|
| void BrowserPluginGuest::OnSetVisibility(int instance_id, bool visible) {
|
| guest_visible_ = visible;
|
| if (embedder_visible_ && guest_visible_)
|
|
|