| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 | 312 |
| 313 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { | 313 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { |
| 314 return site_instance_.get(); | 314 return site_instance_.get(); |
| 315 } | 315 } |
| 316 | 316 |
| 317 RenderProcessHost* RenderFrameHostImpl::GetProcess() { | 317 RenderProcessHost* RenderFrameHostImpl::GetProcess() { |
| 318 return process_; | 318 return process_; |
| 319 } | 319 } |
| 320 | 320 |
| 321 RenderFrameHost* RenderFrameHostImpl::GetParent() { | 321 RenderFrameHostImpl* RenderFrameHostImpl::GetParent() { |
| 322 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 322 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
| 323 if (!parent_node) | 323 if (!parent_node) |
| 324 return NULL; | 324 return NULL; |
| 325 return parent_node->current_frame_host(); | 325 return parent_node->current_frame_host(); |
| 326 } | 326 } |
| 327 | 327 |
| 328 int RenderFrameHostImpl::GetFrameTreeNodeId() { | 328 int RenderFrameHostImpl::GetFrameTreeNodeId() { |
| 329 return frame_tree_node_->frame_tree_node_id(); | 329 return frame_tree_node_->frame_tree_node_id(); |
| 330 } | 330 } |
| 331 | 331 |
| (...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2715 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); | 2715 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); |
| 2716 if (!focused_frame_tree_node) | 2716 if (!focused_frame_tree_node) |
| 2717 return; | 2717 return; |
| 2718 RenderFrameHostImpl* focused_frame = | 2718 RenderFrameHostImpl* focused_frame = |
| 2719 focused_frame_tree_node->current_frame_host(); | 2719 focused_frame_tree_node->current_frame_host(); |
| 2720 DCHECK(focused_frame); | 2720 DCHECK(focused_frame); |
| 2721 dst->focused_tree_id = focused_frame->GetAXTreeID(); | 2721 dst->focused_tree_id = focused_frame->GetAXTreeID(); |
| 2722 } | 2722 } |
| 2723 | 2723 |
| 2724 } // namespace content | 2724 } // namespace content |
| OLD | NEW |