| 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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 #endif | 1253 #endif |
| 1254 IPC_MESSAGE_UNHANDLED(handled = false) | 1254 IPC_MESSAGE_UNHANDLED(handled = false) |
| 1255 IPC_END_MESSAGE_MAP() | 1255 IPC_END_MESSAGE_MAP() |
| 1256 return handled; | 1256 return handled; |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { | 1259 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { |
| 1260 EnsureWebKitInitialized(); | 1260 EnsureWebKitInitialized(); |
| 1261 // When bringing in render_view, also bring in webkit's glue and jsbindings. | 1261 // When bringing in render_view, also bring in webkit's glue and jsbindings. |
| 1262 RenderViewImpl::Create(params.opener_route_id, | 1262 RenderViewImpl::Create(params.opener_route_id, |
| 1263 params.window_was_created_with_opener, |
| 1263 params.renderer_preferences, | 1264 params.renderer_preferences, |
| 1264 params.web_preferences, | 1265 params.web_preferences, |
| 1265 params.view_id, | 1266 params.view_id, |
| 1266 params.main_frame_routing_id, | 1267 params.main_frame_routing_id, |
| 1267 params.surface_id, | 1268 params.surface_id, |
| 1268 params.session_storage_namespace_id, | 1269 params.session_storage_namespace_id, |
| 1269 params.frame_name, | 1270 params.frame_name, |
| 1270 false, | 1271 false, |
| 1271 params.swapped_out, | 1272 params.swapped_out, |
| 1272 params.hidden, | 1273 params.hidden, |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 hidden_widget_count_--; | 1518 hidden_widget_count_--; |
| 1518 | 1519 |
| 1519 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1520 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1520 return; | 1521 return; |
| 1521 } | 1522 } |
| 1522 | 1523 |
| 1523 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1524 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1524 } | 1525 } |
| 1525 | 1526 |
| 1526 } // namespace content | 1527 } // namespace content |
| OLD | NEW |