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

Side by Side Diff: content/common/view_messages.h

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 months 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 // The window features to use for the new view. 354 // The window features to use for the new view.
355 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features) 355 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features)
356 356
357 // The additional window features to use for the new view. We pass these 357 // The additional window features to use for the new view. We pass these
358 // separately from |features| above because we cannot serialize WebStrings 358 // separately from |features| above because we cannot serialize WebStrings
359 // over IPC. 359 // over IPC.
360 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features) 360 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features)
361 IPC_STRUCT_END() 361 IPC_STRUCT_END()
362 362
363 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Reply)
364 IPC_STRUCT_MEMBER(int32, route_id)
dcheng 2015/08/24 18:50:20 I used the non _t versions to be consistent with w
365 IPC_STRUCT_MEMBER(int32, main_frame_route_id)
366 IPC_STRUCT_MEMBER(int32, main_frame_widget_route_id)
367 IPC_STRUCT_MEMBER(int32, surface_id)
368 IPC_STRUCT_MEMBER(int64, cloned_session_storage_namespace_id)
369 IPC_STRUCT_END()
ncarter (slow) 2015/08/24 20:55:35 Can you add comments to these IPC_STRUCT_MEMBERS?
dcheng 2015/09/03 16:33:09 Done.
370
363 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) 371 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
364 // URL for the worker script. 372 // URL for the worker script.
365 IPC_STRUCT_MEMBER(GURL, url) 373 IPC_STRUCT_MEMBER(GURL, url)
366 374
367 // Name for a SharedWorker, otherwise empty string. 375 // Name for a SharedWorker, otherwise empty string.
368 IPC_STRUCT_MEMBER(base::string16, name) 376 IPC_STRUCT_MEMBER(base::string16, name)
369 377
370 // Security policy used in the worker. 378 // Security policy used in the worker.
371 IPC_STRUCT_MEMBER(base::string16, content_security_policy) 379 IPC_STRUCT_MEMBER(base::string16, content_security_policy)
372 380
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 505
498 // Preferences for this view. 506 // Preferences for this view.
499 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) 507 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences)
500 508
501 // The ID of the view to be created. 509 // The ID of the view to be created.
502 IPC_STRUCT_MEMBER(int32, view_id) 510 IPC_STRUCT_MEMBER(int32, view_id)
503 511
504 // The ID of the main frame hosted in the view. 512 // The ID of the main frame hosted in the view.
505 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) 513 IPC_STRUCT_MEMBER(int32, main_frame_routing_id)
506 514
515 // The ID of the widget for the main frame.
516 IPC_STRUCT_MEMBER(int32, main_frame_widget_routing_id)
517
507 // The ID of the rendering surface. 518 // The ID of the rendering surface.
508 IPC_STRUCT_MEMBER(int32, surface_id) 519 IPC_STRUCT_MEMBER(int32, surface_id)
509 520
510 // The session storage namespace ID this view should use. 521 // The session storage namespace ID this view should use.
511 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) 522 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
512 523
513 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to 524 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to
514 // set one (MSG_ROUTING_NONE otherwise). 525 // set one (MSG_ROUTING_NONE otherwise).
515 IPC_STRUCT_MEMBER(int, opener_frame_route_id) 526 IPC_STRUCT_MEMBER(int, opener_frame_route_id)
516 527
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 // ----------------------------------------------------------------------------- 1003 // -----------------------------------------------------------------------------
993 // Messages sent from the renderer to the browser. 1004 // Messages sent from the renderer to the browser.
994 1005
995 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 1006 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
996 // display events. If |enabled| is true, the BeginFrame message will continue 1007 // display events. If |enabled| is true, the BeginFrame message will continue
997 // to be be delivered until the notification is disabled. 1008 // to be be delivered until the notification is disabled.
998 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, 1009 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
999 bool /* enabled */) 1010 bool /* enabled */)
1000 1011
1001 // Sent by the renderer when it is creating a new window. The browser creates 1012 // Sent by the renderer when it is creating a new window. The browser creates
1002 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1013 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
ncarter (slow) 2015/08/24 20:55:35 This comment about "route_id" is stale.
dcheng 2015/09/03 16:33:09 I've moved this comment to ViewHsotMsg_CreateWindo
1003 // MSG_ROUTING_NONE, the view couldn't be created. 1014 // MSG_ROUTING_NONE, the view couldn't be created.
1004 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, 1015 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWindow,
1005 ViewHostMsg_CreateWindow_Params, 1016 ViewHostMsg_CreateWindow_Params,
1006 int /* route_id */, 1017 ViewHostMsg_CreateWindow_Reply)
dcheng 2015/08/24 18:50:20 IPCs can't have more than 4 out parameters. I wasn
1007 int /* main_frame_route_id */,
1008 int32 /* surface_id */,
1009 int64 /* cloned_session_storage_namespace_id */)
1010 1018
1011 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like 1019 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1012 // <select> dropdowns. This message is sent to the WebContentsImpl that 1020 // <select> dropdowns. This message is sent to the WebContentsImpl that
1013 // contains the widget being created. 1021 // contains the widget being created.
1014 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget, 1022 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget,
1015 int /* opener_id */, 1023 int /* opener_id */,
1016 blink::WebPopupType /* popup type */, 1024 blink::WebPopupType /* popup type */,
1017 int /* route_id */, 1025 int /* route_id */,
1018 int32 /* surface_id */) 1026 int32 /* surface_id */)
1019 1027
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1592 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1585 // for details. 1593 // for details.
1586 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1594 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1587 LOGFONT /* font_data */, 1595 LOGFONT /* font_data */,
1588 base::string16 /* characters */) 1596 base::string16 /* characters */)
1589 #endif 1597 #endif
1590 1598
1591 // Adding a new message? Stick to the sort order above: first platform 1599 // Adding a new message? Stick to the sort order above: first platform
1592 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1600 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1593 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1601 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698