OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 params.view_id = GetRoutingID(); | 306 params.view_id = GetRoutingID(); |
307 params.main_frame_routing_id = main_frame_routing_id_; | 307 params.main_frame_routing_id = main_frame_routing_id_; |
308 params.surface_id = surface_id(); | 308 params.surface_id = surface_id(); |
309 params.session_storage_namespace_id = | 309 params.session_storage_namespace_id = |
310 delegate_->GetSessionStorageNamespace(instance_)->id(); | 310 delegate_->GetSessionStorageNamespace(instance_)->id(); |
311 params.frame_name = frame_name; | 311 params.frame_name = frame_name; |
312 // Ensure the RenderView sets its opener correctly. | 312 // Ensure the RenderView sets its opener correctly. |
313 params.opener_route_id = opener_route_id; | 313 params.opener_route_id = opener_route_id; |
314 params.swapped_out = !IsRVHStateActive(rvh_state_); | 314 params.swapped_out = !IsRVHStateActive(rvh_state_); |
315 params.hidden = is_hidden(); | 315 params.hidden = is_hidden(); |
| 316 params.never_visible = delegate_->IsNeverVisible(); |
316 params.next_page_id = next_page_id; | 317 params.next_page_id = next_page_id; |
317 GetWebScreenInfo(¶ms.screen_info); | 318 GetWebScreenInfo(¶ms.screen_info); |
318 params.accessibility_mode = accessibility_mode(); | 319 params.accessibility_mode = accessibility_mode(); |
319 | 320 |
320 Send(new ViewMsg_New(params)); | 321 Send(new ViewMsg_New(params)); |
321 | 322 |
322 // If it's enabled, tell the renderer to set up the Javascript bindings for | 323 // If it's enabled, tell the renderer to set up the Javascript bindings for |
323 // sending messages back to the browser. | 324 // sending messages back to the browser. |
324 if (GetProcess()->IsGuest()) | 325 if (GetProcess()->IsGuest()) |
325 DCHECK_EQ(0, enabled_bindings_); | 326 DCHECK_EQ(0, enabled_bindings_); |
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 return true; | 1779 return true; |
1779 } | 1780 } |
1780 | 1781 |
1781 void RenderViewHostImpl::AttachToFrameTree() { | 1782 void RenderViewHostImpl::AttachToFrameTree() { |
1782 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1783 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1783 | 1784 |
1784 frame_tree->ResetForMainFrameSwap(); | 1785 frame_tree->ResetForMainFrameSwap(); |
1785 } | 1786 } |
1786 | 1787 |
1787 } // namespace content | 1788 } // namespace content |
OLD | NEW |