| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 312 } |
| 313 | 313 |
| 314 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { | 314 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { |
| 315 return site_instance_.get(); | 315 return site_instance_.get(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 RenderProcessHost* RenderFrameHostImpl::GetProcess() { | 318 RenderProcessHost* RenderFrameHostImpl::GetProcess() { |
| 319 return process_; | 319 return process_; |
| 320 } | 320 } |
| 321 | 321 |
| 322 RenderFrameHost* RenderFrameHostImpl::GetParent() { | 322 RenderFrameHostImpl* RenderFrameHostImpl::GetParent() { |
| 323 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 323 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
| 324 if (!parent_node) | 324 if (!parent_node) |
| 325 return NULL; | 325 return NULL; |
| 326 return parent_node->current_frame_host(); | 326 return parent_node->current_frame_host(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 int RenderFrameHostImpl::GetFrameTreeNodeId() { | 329 int RenderFrameHostImpl::GetFrameTreeNodeId() { |
| 330 return frame_tree_node_->frame_tree_node_id(); | 330 return frame_tree_node_->frame_tree_node_id(); |
| 331 } | 331 } |
| 332 | 332 |
| (...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); | 2731 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); |
| 2732 if (!focused_frame_tree_node) | 2732 if (!focused_frame_tree_node) |
| 2733 return; | 2733 return; |
| 2734 RenderFrameHostImpl* focused_frame = | 2734 RenderFrameHostImpl* focused_frame = |
| 2735 focused_frame_tree_node->current_frame_host(); | 2735 focused_frame_tree_node->current_frame_host(); |
| 2736 DCHECK(focused_frame); | 2736 DCHECK(focused_frame); |
| 2737 dst->focused_tree_id = focused_frame->GetAXTreeID(); | 2737 dst->focused_tree_id = focused_frame->GetAXTreeID(); |
| 2738 } | 2738 } |
| 2739 | 2739 |
| 2740 } // namespace content | 2740 } // namespace content |
| OLD | NEW |