| OLD | NEW |
| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 ->GetRenderFrameProxyHost(target_rfh->GetSiteInstance()); | 363 ->GetRenderFrameProxyHost(target_rfh->GetSiteInstance()); |
| 364 if (source_proxy) | 364 if (source_proxy) |
| 365 source_proxy_routing_id = source_proxy->GetRoutingID(); | 365 source_proxy_routing_id = source_proxy->GetRoutingID(); |
| 366 } | 366 } |
| 367 | 367 |
| 368 target_rfh->Send(new FrameMsg_AdvanceFocus(target_rfh->GetRoutingID(), type, | 368 target_rfh->Send(new FrameMsg_AdvanceFocus(target_rfh->GetRoutingID(), type, |
| 369 source_proxy_routing_id)); | 369 source_proxy_routing_id)); |
| 370 } | 370 } |
| 371 | 371 |
| 372 void RenderFrameProxyHost::OnFrameFocused() { | 372 void RenderFrameProxyHost::OnFrameFocused() { |
| 373 frame_tree_node_->frame_tree()->SetFocusedFrame(frame_tree_node_, | 373 frame_tree_node_->current_frame_host()->delegate()->SetFocusedFrame( |
| 374 GetSiteInstance()); | 374 frame_tree_node_, GetSiteInstance()); |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace content | 377 } // namespace content |
| OLD | NEW |