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