| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 params.session_storage_namespace_id = session_storage_namespace_->id(); | 262 params.session_storage_namespace_id = session_storage_namespace_->id(); |
| 263 params.frame_name = frame_name; | 263 params.frame_name = frame_name; |
| 264 // Ensure the RenderView sets its opener correctly. | 264 // Ensure the RenderView sets its opener correctly. |
| 265 params.opener_route_id = opener_route_id; | 265 params.opener_route_id = opener_route_id; |
| 266 params.swapped_out = is_swapped_out_; | 266 params.swapped_out = is_swapped_out_; |
| 267 params.next_page_id = next_page_id; | 267 params.next_page_id = next_page_id; |
| 268 GetWebScreenInfo(¶ms.screen_info); | 268 GetWebScreenInfo(¶ms.screen_info); |
| 269 | 269 |
| 270 params.accessibility_mode = | 270 params.accessibility_mode = |
| 271 BrowserAccessibilityStateImpl::GetInstance()->GetAccessibilityMode(); | 271 BrowserAccessibilityStateImpl::GetInstance()->GetAccessibilityMode(); |
| 272 params.allow_partial_swap = !GetProcess()->IsGuest(); |
| 272 | 273 |
| 273 Send(new ViewMsg_New(params)); | 274 Send(new ViewMsg_New(params)); |
| 274 | 275 |
| 275 // If it's enabled, tell the renderer to set up the Javascript bindings for | 276 // If it's enabled, tell the renderer to set up the Javascript bindings for |
| 276 // sending messages back to the browser. | 277 // sending messages back to the browser. |
| 277 if (GetProcess()->IsGuest()) | 278 if (GetProcess()->IsGuest()) |
| 278 DCHECK_EQ(0, enabled_bindings_); | 279 DCHECK_EQ(0, enabled_bindings_); |
| 279 Send(new ViewMsg_AllowBindings(GetRoutingID(), enabled_bindings_)); | 280 Send(new ViewMsg_AllowBindings(GetRoutingID(), enabled_bindings_)); |
| 280 // Let our delegate know that we created a RenderView. | 281 // Let our delegate know that we created a RenderView. |
| 281 delegate_->RenderViewCreated(this); | 282 delegate_->RenderViewCreated(this); |
| (...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 GetRoutingID(), snapshot_id, snapshot_size, png)); | 2072 GetRoutingID(), snapshot_id, snapshot_size, png)); |
| 2072 return; | 2073 return; |
| 2073 } | 2074 } |
| 2074 } | 2075 } |
| 2075 | 2076 |
| 2076 Send(new ViewMsg_WindowSnapshotCompleted( | 2077 Send(new ViewMsg_WindowSnapshotCompleted( |
| 2077 GetRoutingID(), snapshot_id, gfx::Size(), png)); | 2078 GetRoutingID(), snapshot_id, gfx::Size(), png)); |
| 2078 } | 2079 } |
| 2079 | 2080 |
| 2080 } // namespace content | 2081 } // namespace content |
| OLD | NEW |