| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 params->window_was_created_with_opener = window_was_created_with_opener; | 360 params->window_was_created_with_opener = window_was_created_with_opener; |
| 361 params->enable_auto_resize = GetWidget()->auto_resize_enabled(); | 361 params->enable_auto_resize = GetWidget()->auto_resize_enabled(); |
| 362 params->min_size = GetWidget()->min_size_for_auto_resize(); | 362 params->min_size = GetWidget()->min_size_for_auto_resize(); |
| 363 params->max_size = GetWidget()->max_size_for_auto_resize(); | 363 params->max_size = GetWidget()->max_size_for_auto_resize(); |
| 364 params->page_zoom_level = delegate_->GetPendingPageZoomLevel(); | 364 params->page_zoom_level = delegate_->GetPendingPageZoomLevel(); |
| 365 params->image_decode_color_space = gfx::ICCProfile::FromBestMonitor(); | 365 params->image_decode_color_space = gfx::ICCProfile::FromBestMonitor(); |
| 366 | 366 |
| 367 GetWidget()->GetResizeParams(¶ms->initial_size); | 367 GetWidget()->GetResizeParams(¶ms->initial_size); |
| 368 GetWidget()->SetInitialRenderSizeParams(params->initial_size); | 368 GetWidget()->SetInitialRenderSizeParams(params->initial_size); |
| 369 | 369 |
| 370 RenderProcessHostImpl::GetRendererInterface(GetProcess())->CreateView( | 370 GetProcess()->GetRendererInterface()->CreateView(std::move(params)); |
| 371 std::move(params)); | |
| 372 | 371 |
| 373 // If the RWHV has not yet been set, the surface ID namespace will get | 372 // If the RWHV has not yet been set, the surface ID namespace will get |
| 374 // passed down by the call to SetView(). | 373 // passed down by the call to SetView(). |
| 375 if (GetWidget()->GetView()) { | 374 if (GetWidget()->GetView()) { |
| 376 Send(new ViewMsg_SetFrameSinkId(GetRoutingID(), | 375 Send(new ViewMsg_SetFrameSinkId(GetRoutingID(), |
| 377 GetWidget()->GetView()->GetFrameSinkId())); | 376 GetWidget()->GetView()->GetFrameSinkId())); |
| 378 } | 377 } |
| 379 | 378 |
| 380 // If it's enabled, tell the renderer to set up the Javascript bindings for | 379 // If it's enabled, tell the renderer to set up the Javascript bindings for |
| 381 // sending messages back to the browser. | 380 // sending messages back to the browser. |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 // Note: We are using the origin URL provided by the sender here. It may be | 1313 // Note: We are using the origin URL provided by the sender here. It may be |
| 1315 // different from the receiver's. | 1314 // different from the receiver's. |
| 1316 file_system_file.url = | 1315 file_system_file.url = |
| 1317 GURL(storage::GetIsolatedFileSystemRootURIString( | 1316 GURL(storage::GetIsolatedFileSystemRootURIString( |
| 1318 file_system_url.origin(), filesystem_id, std::string()) | 1317 file_system_url.origin(), filesystem_id, std::string()) |
| 1319 .append(register_name)); | 1318 .append(register_name)); |
| 1320 } | 1319 } |
| 1321 } | 1320 } |
| 1322 | 1321 |
| 1323 } // namespace content | 1322 } // namespace content |
| OLD | NEW |