Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_channel_manager.cc

Issue 10544143: Browser Plugin: Plumbing to enable tabbing out of a browser tag (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed nit Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_channel_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/browser_plugin/browser_plugin_channel_manager.h" 5 #include "content/renderer/browser_plugin/browser_plugin_channel_manager.h"
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "content/common/browser_plugin_messages.h" 8 #include "content/common/browser_plugin_messages.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "content/renderer/browser_plugin/browser_plugin.h" 10 #include "content/renderer/browser_plugin/browser_plugin.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 RenderThreadImpl::current()->Send( 82 RenderThreadImpl::current()->Send(
83 new BrowserPluginHostMsg_ConnectToChannel(render_view->GetRoutingID(), 83 new BrowserPluginHostMsg_ConnectToChannel(render_view->GetRoutingID(),
84 embedder_channel_handle)); 84 embedder_channel_handle));
85 } 85 }
86 86
87 bool BrowserPluginChannelManager::OnControlMessageReceived( 87 bool BrowserPluginChannelManager::OnControlMessageReceived(
88 const IPC::Message& message) { 88 const IPC::Message& message) {
89 bool handled = true; 89 bool handled = true;
90 IPC_BEGIN_MESSAGE_MAP(BrowserPluginChannelManager, message) 90 IPC_BEGIN_MESSAGE_MAP(BrowserPluginChannelManager, message)
91 IPC_MESSAGE_HANDLER(BrowserPluginMsg_LoadGuest, OnLoadGuest) 91 IPC_MESSAGE_HANDLER(BrowserPluginMsg_LoadGuest, OnLoadGuest)
92 IPC_MESSAGE_HANDLER(BrowserPluginMsg_AdvanceFocus, OnAdvanceFocus)
92 IPC_MESSAGE_UNHANDLED(handled = false) 93 IPC_MESSAGE_UNHANDLED(handled = false)
93 IPC_END_MESSAGE_MAP() 94 IPC_END_MESSAGE_MAP()
94 95
95 return handled; 96 return handled;
96 } 97 }
97 98
98 GuestToEmbedderChannel* BrowserPluginChannelManager::GetChannelByName( 99 GuestToEmbedderChannel* BrowserPluginChannelManager::GetChannelByName(
99 const std::string& embedder_channel_name) { 100 const std::string& embedder_channel_name) {
100 EmbedderChannelNameToChannelMap::iterator it = 101 EmbedderChannelNameToChannelMap::iterator it =
101 embedder_channels_.find(embedder_channel_name); 102 embedder_channels_.find(embedder_channel_name);
(...skipping 25 matching lines...) Expand all
127 } 128 }
128 129
129 void BrowserPluginChannelManager::OnLoadGuest( 130 void BrowserPluginChannelManager::OnLoadGuest(
130 int instance_id, 131 int instance_id,
131 int guest_process_id, 132 int guest_process_id,
132 const IPC::ChannelHandle& channel_handle) { 133 const IPC::ChannelHandle& channel_handle) {
133 BrowserPlugin* browser_plugin = BrowserPlugin::FromID(instance_id); 134 BrowserPlugin* browser_plugin = BrowserPlugin::FromID(instance_id);
134 browser_plugin->LoadGuest(guest_process_id, channel_handle); 135 browser_plugin->LoadGuest(guest_process_id, channel_handle);
135 } 136 }
136 137
138 void BrowserPluginChannelManager::OnAdvanceFocus(int instance_id,
139 bool reverse) {
140 BrowserPlugin* browser_plugin = BrowserPlugin::FromID(instance_id);
141 browser_plugin->AdvanceFocus(reverse);
142 }
143
137 } // namespace content 144 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_channel_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698