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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 params.swapped_out = !is_active_; | 286 params.swapped_out = !is_active_; |
287 params.proxy_routing_id = proxy_route_id; | 287 params.proxy_routing_id = proxy_route_id; |
288 params.hidden = is_hidden(); | 288 params.hidden = is_hidden(); |
289 params.never_visible = delegate_->IsNeverVisible(); | 289 params.never_visible = delegate_->IsNeverVisible(); |
290 params.window_was_created_with_opener = window_was_created_with_opener; | 290 params.window_was_created_with_opener = window_was_created_with_opener; |
291 params.next_page_id = next_page_id; | 291 params.next_page_id = next_page_id; |
292 params.enable_auto_resize = auto_resize_enabled(); | 292 params.enable_auto_resize = auto_resize_enabled(); |
293 params.min_size = min_size_for_auto_resize(); | 293 params.min_size = min_size_for_auto_resize(); |
294 params.max_size = max_size_for_auto_resize(); | 294 params.max_size = max_size_for_auto_resize(); |
295 GetResizeParams(¶ms.initial_size); | 295 GetResizeParams(¶ms.initial_size); |
| 296 if (!is_active_) { |
| 297 params.replicated_frame_state = |
| 298 static_cast<RenderFrameHostImpl*>(GetMainFrame())->frame_tree_node() |
| 299 ->current_replication_state(); |
| 300 } |
296 | 301 |
297 if (!Send(new ViewMsg_New(params))) | 302 if (!Send(new ViewMsg_New(params))) |
298 return false; | 303 return false; |
299 SetInitialRenderSizeParams(params.initial_size); | 304 SetInitialRenderSizeParams(params.initial_size); |
300 | 305 |
301 // If it's enabled, tell the renderer to set up the Javascript bindings for | 306 // If it's enabled, tell the renderer to set up the Javascript bindings for |
302 // sending messages back to the browser. | 307 // sending messages back to the browser. |
303 if (GetProcess()->IsIsolatedGuest()) | 308 if (GetProcess()->IsIsolatedGuest()) |
304 DCHECK_EQ(0, enabled_bindings_); | 309 DCHECK_EQ(0, enabled_bindings_); |
305 Send(new ViewMsg_AllowBindings(GetRoutingID(), enabled_bindings_)); | 310 Send(new ViewMsg_AllowBindings(GetRoutingID(), enabled_bindings_)); |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1482 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1478 | 1483 |
1479 frame_tree->ResetForMainFrameSwap(); | 1484 frame_tree->ResetForMainFrameSwap(); |
1480 } | 1485 } |
1481 | 1486 |
1482 void RenderViewHostImpl::SelectWordAroundCaret() { | 1487 void RenderViewHostImpl::SelectWordAroundCaret() { |
1483 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1488 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1484 } | 1489 } |
1485 | 1490 |
1486 } // namespace content | 1491 } // namespace content |
OLD | NEW |