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

Side by Side Diff: content/browser/frame_host/render_frame_proxy_host.cc

Issue 1934703002: Fix keyboard focus for OOPIF-<webview>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nasko@ comments. Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/frame_host/render_frame_proxy_host.h" 5 #include "content/browser/frame_host/render_frame_proxy_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "content/browser/bad_message.h" 10 #include "content/browser/bad_message.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ->GetRenderFrameProxyHost(target_rfh->GetSiteInstance()); 364 ->GetRenderFrameProxyHost(target_rfh->GetSiteInstance());
365 if (source_proxy) 365 if (source_proxy)
366 source_proxy_routing_id = source_proxy->GetRoutingID(); 366 source_proxy_routing_id = source_proxy->GetRoutingID();
367 } 367 }
368 368
369 target_rfh->Send(new FrameMsg_AdvanceFocus(target_rfh->GetRoutingID(), type, 369 target_rfh->Send(new FrameMsg_AdvanceFocus(target_rfh->GetRoutingID(), type,
370 source_proxy_routing_id)); 370 source_proxy_routing_id));
371 } 371 }
372 372
373 void RenderFrameProxyHost::OnFrameFocused() { 373 void RenderFrameProxyHost::OnFrameFocused() {
374 frame_tree_node_->frame_tree()->SetFocusedFrame(frame_tree_node_, 374 frame_tree_node_->current_frame_host()->delegate()->SetFocusedFrame(
375 GetSiteInstance()); 375 frame_tree_node_, GetSiteInstance());
376 } 376 }
377 377
378 } // namespace content 378 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_widget_host_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698