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

Unified Diff: content/renderer/browser_plugin/guest_to_embedder_channel.cc

Issue 10546117: Browser Plugin: Make basic focus in guests work (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed broken win_rel: avoid implicit cast 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/guest_to_embedder_channel.cc
diff --git a/content/renderer/browser_plugin/guest_to_embedder_channel.cc b/content/renderer/browser_plugin/guest_to_embedder_channel.cc
index 1e5cec03586c2ab497a9f3323ef5b216c1b6dd8e..935dfbefba56c14e091b3ef471ae2c90eec26756 100644
--- a/content/renderer/browser_plugin/guest_to_embedder_channel.cc
+++ b/content/renderer/browser_plugin/guest_to_embedder_channel.cc
@@ -247,7 +247,11 @@ void GuestToEmbedderChannel::OnDidChangeView(
void GuestToEmbedderChannel::OnDidChangeFocus(PP_Instance instance,
PP_Bool has_focus) {
- NOTIMPLEMENTED();
+ InstanceMap::iterator it = render_view_instances_.find(instance);
+ if (it == render_view_instances_.end())
+ return;
+ RenderViewImpl* render_view = it->second;
+ render_view->GetWebView()->setFocus(PP_ToBool(has_focus));
}
void GuestToEmbedderChannel::OnHandleMessage(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698