| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 } | 307 } |
| 308 | 308 |
| 309 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { | 309 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { |
| 310 return site_instance_.get(); | 310 return site_instance_.get(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 RenderProcessHost* RenderFrameHostImpl::GetProcess() { | 313 RenderProcessHost* RenderFrameHostImpl::GetProcess() { |
| 314 return process_; | 314 return process_; |
| 315 } | 315 } |
| 316 | 316 |
| 317 RenderFrameHost* RenderFrameHostImpl::GetParent() { | 317 RenderFrameHostImpl* RenderFrameHostImpl::GetParent() { |
| 318 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 318 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
| 319 if (!parent_node) | 319 if (!parent_node) |
| 320 return NULL; | 320 return NULL; |
| 321 return parent_node->current_frame_host(); | 321 return parent_node->current_frame_host(); |
| 322 } | 322 } |
| 323 | 323 |
| 324 int RenderFrameHostImpl::GetFrameTreeNodeId() { | 324 int RenderFrameHostImpl::GetFrameTreeNodeId() { |
| 325 return frame_tree_node_->frame_tree_node_id(); | 325 return frame_tree_node_->frame_tree_node_id(); |
| 326 } | 326 } |
| 327 | 327 |
| (...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2706 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); | 2706 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); |
| 2707 if (!focused_frame_tree_node) | 2707 if (!focused_frame_tree_node) |
| 2708 return; | 2708 return; |
| 2709 RenderFrameHostImpl* focused_frame = | 2709 RenderFrameHostImpl* focused_frame = |
| 2710 focused_frame_tree_node->current_frame_host(); | 2710 focused_frame_tree_node->current_frame_host(); |
| 2711 DCHECK(focused_frame); | 2711 DCHECK(focused_frame); |
| 2712 dst->focused_tree_id = focused_frame->GetAXTreeID(); | 2712 dst->focused_tree_id = focused_frame->GetAXTreeID(); |
| 2713 } | 2713 } |
| 2714 | 2714 |
| 2715 } // namespace content | 2715 } // namespace content |
| OLD | NEW |