Index: content/renderer/browser_plugin/browser_plugin_channel_manager.cc |
diff --git a/content/renderer/browser_plugin/browser_plugin_channel_manager.cc b/content/renderer/browser_plugin/browser_plugin_channel_manager.cc |
index 678af1c6c8b001c5cd4bf8ef2e10aa1c97995c24..0a49e9d9c070af0dbb7597bfcc73c28b1202b324 100644 |
--- a/content/renderer/browser_plugin/browser_plugin_channel_manager.cc |
+++ b/content/renderer/browser_plugin/browser_plugin_channel_manager.cc |
@@ -89,6 +89,7 @@ bool BrowserPluginChannelManager::OnControlMessageReceived( |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(BrowserPluginChannelManager, message) |
IPC_MESSAGE_HANDLER(BrowserPluginMsg_LoadGuest, OnLoadGuest) |
+ IPC_MESSAGE_HANDLER(BrowserPluginMsg_AdvanceFocus, OnAdvanceFocus) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
@@ -134,4 +135,10 @@ void BrowserPluginChannelManager::OnLoadGuest( |
browser_plugin->LoadGuest(guest_process_id, channel_handle); |
} |
+void BrowserPluginChannelManager::OnAdvanceFocus(int instance_id, |
+ bool reverse) { |
+ BrowserPlugin* browser_plugin = BrowserPlugin::FromID(instance_id); |
+ browser_plugin->AdvanceFocus(reverse); |
+} |
+ |
} // namespace content |