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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1394383002: OOPIF: Send page-level focus messages to all processes rendering a page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another test fix Created 5 years, 2 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
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 512dfee75fcfe859870524425f795d18b164b4aa..21533553394036490fe9e3ab764874cdeb2581c2 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -708,6 +708,9 @@ void RenderWidgetHostImpl::Focus() {
is_focused_ = true;
Send(new InputMsg_SetFocus(routing_id_, true));
+
+ if (delegate_)
+ delegate_->SendFocusToCrossProcessRenderWidgets(true);
}
void RenderWidgetHostImpl::Blur() {
@@ -723,6 +726,9 @@ void RenderWidgetHostImpl::Blur() {
touch_emulator_->CancelTouch();
Send(new InputMsg_SetFocus(routing_id_, false));
+
+ if (delegate_)
+ delegate_->SendFocusToCrossProcessRenderWidgets(false);
}
void RenderWidgetHostImpl::LostCapture() {

Powered by Google App Engine
This is Rietveld 408576698