Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format, changed WebWidget creation Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698