| 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/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2318 | 2318 |
| 2319 bool RenderFrameHostImpl::IsRenderFrameLive() { | 2319 bool RenderFrameHostImpl::IsRenderFrameLive() { |
| 2320 bool is_live = GetProcess()->HasConnection() && render_frame_created_; | 2320 bool is_live = GetProcess()->HasConnection() && render_frame_created_; |
| 2321 | 2321 |
| 2322 // Sanity check: the RenderView should always be live if the RenderFrame is. | 2322 // Sanity check: the RenderView should always be live if the RenderFrame is. |
| 2323 DCHECK(!is_live || render_view_host_->IsRenderViewLive()); | 2323 DCHECK(!is_live || render_view_host_->IsRenderViewLive()); |
| 2324 | 2324 |
| 2325 return is_live; | 2325 return is_live; |
| 2326 } | 2326 } |
| 2327 | 2327 |
| 2328 int RenderFrameHostImpl::GetProxyCount() { |
| 2329 if (this != frame_tree_node_->current_frame_host()) |
| 2330 return 0; |
| 2331 return frame_tree_node_->render_manager()->GetProxyCount(); |
| 2332 } |
| 2333 |
| 2328 #if defined(OS_WIN) | 2334 #if defined(OS_WIN) |
| 2329 | 2335 |
| 2330 void RenderFrameHostImpl::SetParentNativeViewAccessible( | 2336 void RenderFrameHostImpl::SetParentNativeViewAccessible( |
| 2331 gfx::NativeViewAccessible accessible_parent) { | 2337 gfx::NativeViewAccessible accessible_parent) { |
| 2332 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( | 2338 RenderWidgetHostViewBase* view = static_cast<RenderWidgetHostViewBase*>( |
| 2333 render_view_host_->GetWidget()->GetView()); | 2339 render_view_host_->GetWidget()->GetView()); |
| 2334 if (view) | 2340 if (view) |
| 2335 view->SetParentNativeViewAccessible(accessible_parent); | 2341 view->SetParentNativeViewAccessible(accessible_parent); |
| 2336 } | 2342 } |
| 2337 | 2343 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2553 *dst = src; | 2559 *dst = src; |
| 2554 | 2560 |
| 2555 if (src.routing_id != -1) | 2561 if (src.routing_id != -1) |
| 2556 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2562 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2557 | 2563 |
| 2558 if (src.parent_routing_id != -1) | 2564 if (src.parent_routing_id != -1) |
| 2559 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2565 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2560 } | 2566 } |
| 2561 | 2567 |
| 2562 } // namespace content | 2568 } // namespace content |
| OLD | NEW |