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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 #if defined(ENABLE_PLUGINS) | 1361 #if defined(ENABLE_PLUGINS) |
1362 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) | 1362 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) |
1363 #endif | 1363 #endif |
1364 IPC_MESSAGE_UNHANDLED(handled = false) | 1364 IPC_MESSAGE_UNHANDLED(handled = false) |
1365 IPC_END_MESSAGE_MAP() | 1365 IPC_END_MESSAGE_MAP() |
1366 return handled; | 1366 return handled; |
1367 } | 1367 } |
1368 | 1368 |
1369 void RenderThreadImpl::OnCreateNewFrame(int routing_id, | 1369 void RenderThreadImpl::OnCreateNewFrame(int routing_id, |
1370 int parent_routing_id, | 1370 int parent_routing_id, |
1371 int proxy_routing_id) { | 1371 int proxy_routing_id, |
1372 RenderFrameImpl::CreateFrame(routing_id, parent_routing_id, proxy_routing_id); | 1372 FrameMsg_NewFrame_WidgetParams params) { |
| 1373 RenderFrameImpl::CreateFrame(routing_id, parent_routing_id, proxy_routing_id, |
| 1374 params); |
1373 } | 1375 } |
1374 | 1376 |
1375 void RenderThreadImpl::OnCreateNewFrameProxy( | 1377 void RenderThreadImpl::OnCreateNewFrameProxy( |
1376 int routing_id, | 1378 int routing_id, |
1377 int parent_routing_id, | 1379 int parent_routing_id, |
1378 int render_view_routing_id, | 1380 int render_view_routing_id, |
1379 const FrameReplicationState& replicated_state) { | 1381 const FrameReplicationState& replicated_state) { |
1380 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, | 1382 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, |
1381 render_view_routing_id, replicated_state); | 1383 render_view_routing_id, replicated_state); |
1382 } | 1384 } |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 hidden_widget_count_--; | 1643 hidden_widget_count_--; |
1642 | 1644 |
1643 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1645 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1644 return; | 1646 return; |
1645 } | 1647 } |
1646 | 1648 |
1647 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1649 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1648 } | 1650 } |
1649 | 1651 |
1650 } // namespace content | 1652 } // namespace content |
OLD | NEW |