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/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 | 1239 |
1240 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { | 1240 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { |
1241 EnsureWebKitInitialized(); | 1241 EnsureWebKitInitialized(); |
1242 // When bringing in render_view, also bring in webkit's glue and jsbindings. | 1242 // When bringing in render_view, also bring in webkit's glue and jsbindings. |
1243 RenderViewImpl::Create(params.opener_route_id, | 1243 RenderViewImpl::Create(params.opener_route_id, |
1244 params.window_was_created_with_opener, | 1244 params.window_was_created_with_opener, |
1245 params.renderer_preferences, | 1245 params.renderer_preferences, |
1246 params.web_preferences, | 1246 params.web_preferences, |
1247 params.view_id, | 1247 params.view_id, |
1248 params.main_frame_routing_id, | 1248 params.main_frame_routing_id, |
| 1249 params.proxy_routing_id, |
1249 params.surface_id, | 1250 params.surface_id, |
1250 params.session_storage_namespace_id, | 1251 params.session_storage_namespace_id, |
1251 params.frame_name, | 1252 params.frame_name, |
1252 false, | 1253 false, |
1253 params.swapped_out, | 1254 params.swapped_out, |
1254 params.hidden, | 1255 params.hidden, |
1255 params.never_visible, | 1256 params.never_visible, |
1256 params.next_page_id, | 1257 params.next_page_id, |
1257 params.screen_info, | 1258 params.screen_info, |
1258 params.accessibility_mode); | 1259 params.accessibility_mode); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 hidden_widget_count_--; | 1503 hidden_widget_count_--; |
1503 | 1504 |
1504 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1505 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1505 return; | 1506 return; |
1506 } | 1507 } |
1507 | 1508 |
1508 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1509 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1509 } | 1510 } |
1510 | 1511 |
1511 } // namespace content | 1512 } // namespace content |
OLD | NEW |