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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScrollbarTheme, OnUpdateScrollbarTheme) | 1359 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScrollbarTheme, OnUpdateScrollbarTheme) |
1360 #endif | 1360 #endif |
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( |
1370 int parent_routing_id, | 1370 int routing_id, |
1371 int proxy_routing_id) { | 1371 int parent_routing_id, |
1372 RenderFrameImpl::CreateFrame(routing_id, parent_routing_id, proxy_routing_id); | 1372 int proxy_routing_id, |
| 1373 FrameMsg_NewFrame_WidgetParams params) { |
| 1374 RenderFrameImpl::CreateFrame(routing_id, |
| 1375 parent_routing_id, |
| 1376 proxy_routing_id, |
| 1377 params); |
1373 } | 1378 } |
1374 | 1379 |
1375 void RenderThreadImpl::OnCreateNewFrameProxy( | 1380 void RenderThreadImpl::OnCreateNewFrameProxy( |
1376 int routing_id, | 1381 int routing_id, |
1377 int parent_routing_id, | 1382 int parent_routing_id, |
1378 int render_view_routing_id, | 1383 int render_view_routing_id, |
1379 const FrameReplicationState& replicated_state) { | 1384 const FrameReplicationState& replicated_state) { |
1380 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, | 1385 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, |
1381 render_view_routing_id, replicated_state); | 1386 render_view_routing_id, replicated_state); |
1382 } | 1387 } |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 hidden_widget_count_--; | 1646 hidden_widget_count_--; |
1642 | 1647 |
1643 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1648 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1644 return; | 1649 return; |
1645 } | 1650 } |
1646 | 1651 |
1647 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1652 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1648 } | 1653 } |
1649 | 1654 |
1650 } // namespace content | 1655 } // namespace content |
OLD | NEW |