| 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 3572f2d7b2f82f23c7b1e487ba17afd2026311b8..6736d72f991d6b032f8acd1f12da3eda037a045e 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -73,8 +73,8 @@ bool BrowserPluginGuest::OnMessageReceivedFromEmbedder(
|
| OnHandleInputEvent)
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload)
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_ResizeGuest, OnResizeGuest)
|
| - IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetSize)
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetFocus, OnSetFocus)
|
| + IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetSize)
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility, OnSetVisibility)
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop)
|
| IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest)
|
| @@ -459,6 +459,13 @@ void BrowserPluginGuest::OnResizeGuest(
|
| web_contents()->GetView()->SizeContents(params.view_size);
|
| }
|
|
|
| +void BrowserPluginGuest::OnSetFocus(int instance_id, bool focused) {
|
| + if (focused_ == focused)
|
| + return;
|
| + focused_ = focused;
|
| + Send(new ViewMsg_SetFocus(routing_id(), focused));
|
| +}
|
| +
|
| void BrowserPluginGuest::OnSetSize(
|
| int instance_id,
|
| const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
|
| @@ -491,13 +498,6 @@ void BrowserPluginGuest::OnSetSize(
|
| OnResizeGuest(instance_id_, resize_guest_params);
|
| }
|
|
|
| -void BrowserPluginGuest::OnSetFocus(int instance_id, bool focused) {
|
| - if (focused_ == focused)
|
| - return;
|
| - focused_ = focused;
|
| - Send(new ViewMsg_SetFocus(routing_id(), focused));
|
| -}
|
| -
|
| void BrowserPluginGuest::OnSetVisibility(int instance_id, bool visible) {
|
| visible_ = visible;
|
| BrowserPluginEmbedder* embedder =
|
|
|