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

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: plumb through surface ID *and* widget surface ID for window.open Created 5 years, 3 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 // The window features to use for the new view. 355 // The window features to use for the new view.
356 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features) 356 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features)
357 357
358 // The additional window features to use for the new view. We pass these 358 // The additional window features to use for the new view. We pass these
359 // separately from |features| above because we cannot serialize WebStrings 359 // separately from |features| above because we cannot serialize WebStrings
360 // over IPC. 360 // over IPC.
361 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features) 361 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features)
362 IPC_STRUCT_END() 362 IPC_STRUCT_END()
363 363
364 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Reply)
365 // The ID of the view to be created. If the ID is MSG_ROUTING_NONE, then the
366 // view couldn't be created.
367 IPC_STRUCT_MEMBER(int32, route_id, MSG_ROUTING_NONE)
368
369 // The ID of the view's rendering surface.
370 // TODO(dcheng): Remove this, once RenderView is no longer a RenderWidget.
371 IPC_STRUCT_MEMBER(int32, surface_id)
372
373 // The ID of the main frame hosted in the view.
374 IPC_STRUCT_MEMBER(int32, main_frame_route_id, MSG_ROUTING_NONE)
375
376 // The ID of the widget for the main frame.
377 IPC_STRUCT_MEMBER(int32, main_frame_widget_route_id, MSG_ROUTING_NONE)
378
379 // The ID of the main frame widget's rendering surface.
380 IPC_STRUCT_MEMBER(int32, widget_surface_id)
381
382 // TODO(dcheng): No clue. This is kind of duplicated from ViewMsg_New_Params.
383 IPC_STRUCT_MEMBER(int64, cloned_session_storage_namespace_id)
384 IPC_STRUCT_END()
385
364 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) 386 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
365 // URL for the worker script. 387 // URL for the worker script.
366 IPC_STRUCT_MEMBER(GURL, url) 388 IPC_STRUCT_MEMBER(GURL, url)
367 389
368 // Name for a SharedWorker, otherwise empty string. 390 // Name for a SharedWorker, otherwise empty string.
369 IPC_STRUCT_MEMBER(base::string16, name) 391 IPC_STRUCT_MEMBER(base::string16, name)
370 392
371 // Security policy used in the worker. 393 // Security policy used in the worker.
372 IPC_STRUCT_MEMBER(base::string16, content_security_policy) 394 IPC_STRUCT_MEMBER(base::string16, content_security_policy)
373 395
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 IPC_STRUCT_END() 515 IPC_STRUCT_END()
494 516
495 IPC_STRUCT_BEGIN(ViewMsg_New_Params) 517 IPC_STRUCT_BEGIN(ViewMsg_New_Params)
496 // Renderer-wide preferences. 518 // Renderer-wide preferences.
497 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) 519 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences)
498 520
499 // Preferences for this view. 521 // Preferences for this view.
500 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) 522 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences)
501 523
502 // The ID of the view to be created. 524 // The ID of the view to be created.
503 IPC_STRUCT_MEMBER(int32, view_id) 525 IPC_STRUCT_MEMBER(int32, view_id, MSG_ROUTING_NONE)
526
527 // The ID of the view's rendering surface.
528 // TODO(dcheng): Remove this, once RenderView is no longer a RenderWidget.
529 IPC_STRUCT_MEMBER(int32, view_surface_id)
504 530
505 // The ID of the main frame hosted in the view. 531 // The ID of the main frame hosted in the view.
506 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) 532 IPC_STRUCT_MEMBER(int32, main_frame_routing_id, MSG_ROUTING_NONE)
507 533
508 // The ID of the rendering surface. 534 // The ID of the widget for the main frame.
509 IPC_STRUCT_MEMBER(int32, surface_id) 535 IPC_STRUCT_MEMBER(int32, main_frame_widget_routing_id, MSG_ROUTING_NONE)
536
537 // The ID of the main frame widget's rendering surface.
538 IPC_STRUCT_MEMBER(int32, widget_surface_id)
510 539
511 // The session storage namespace ID this view should use. 540 // The session storage namespace ID this view should use.
512 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) 541 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
513 542
514 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to 543 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to
515 // set one (MSG_ROUTING_NONE otherwise). 544 // set one (MSG_ROUTING_NONE otherwise).
516 IPC_STRUCT_MEMBER(int, opener_frame_route_id) 545 IPC_STRUCT_MEMBER(int, opener_frame_route_id, MSG_ROUTING_NONE)
517 546
518 // Whether the RenderView should initially be swapped out. 547 // Whether the RenderView should initially be swapped out.
519 IPC_STRUCT_MEMBER(bool, swapped_out) 548 IPC_STRUCT_MEMBER(bool, swapped_out)
520 549
521 // Carries replicated information, such as frame name and sandbox flags, for 550 // Carries replicated information, such as frame name and sandbox flags, for
522 // this view's main frame, which will be a proxy in |swapped_out| 551 // this view's main frame, which will be a proxy in |swapped_out|
523 // views when in --site-per-process mode, or a RenderFrame in all other 552 // views when in --site-per-process mode, or a RenderFrame in all other
524 // cases. 553 // cases.
525 IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state) 554 IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state)
526 555
527 // The ID of the proxy object for the main frame in this view. It is only 556 // The ID of the proxy object for the main frame in this view. It is only
528 // used if |swapped_out| is true. 557 // used if |swapped_out| is true.
529 IPC_STRUCT_MEMBER(int32, proxy_routing_id) 558 IPC_STRUCT_MEMBER(int32, proxy_routing_id, MSG_ROUTING_NONE)
530 559
531 // Whether the RenderView should initially be hidden. 560 // Whether the RenderView should initially be hidden.
532 IPC_STRUCT_MEMBER(bool, hidden) 561 IPC_STRUCT_MEMBER(bool, hidden)
533 562
534 // Whether the RenderView will never be visible. 563 // Whether the RenderView will never be visible.
535 IPC_STRUCT_MEMBER(bool, never_visible) 564 IPC_STRUCT_MEMBER(bool, never_visible)
536 565
537 // Whether the window associated with this view was created with an opener. 566 // Whether the window associated with this view was created with an opener.
538 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) 567 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener)
539 568
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 // Messages sent from the renderer to the browser. 1023 // Messages sent from the renderer to the browser.
995 1024
996 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 1025 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
997 // display events. If |enabled| is true, the BeginFrame message will continue 1026 // display events. If |enabled| is true, the BeginFrame message will continue
998 // to be be delivered until the notification is disabled. 1027 // to be be delivered until the notification is disabled.
999 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, 1028 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
1000 bool /* enabled */) 1029 bool /* enabled */)
1001 1030
1002 // Sent by the renderer when it is creating a new window. The browser creates 1031 // Sent by the renderer when it is creating a new window. The browser creates
1003 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1032 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1004 // MSG_ROUTING_NONE, the view couldn't be created. 1033 // MSG_ROUTING_NONE, the view couldn't be created.
ncarter (slow) 2015/09/03 20:24:37 route_id -> |reply.route_id| ?
dcheng 2015/09/03 21:29:24 Doh, I thought I changed this one. Done.
1005 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, 1034 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWindow,
1006 ViewHostMsg_CreateWindow_Params, 1035 ViewHostMsg_CreateWindow_Params,
1007 int /* route_id */, 1036 ViewHostMsg_CreateWindow_Reply)
1008 int /* main_frame_route_id */,
1009 int32 /* surface_id */,
1010 int64 /* cloned_session_storage_namespace_id */)
1011 1037
1012 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like 1038 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1013 // <select> dropdowns. This message is sent to the WebContentsImpl that 1039 // <select> dropdowns. This message is sent to the WebContentsImpl that
1014 // contains the widget being created. 1040 // contains the widget being created.
1015 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget, 1041 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget,
1016 int /* opener_id */, 1042 int /* opener_id */,
1017 blink::WebPopupType /* popup type */, 1043 blink::WebPopupType /* popup type */,
1018 int /* route_id */, 1044 int /* route_id */,
1019 int32 /* surface_id */) 1045 int32 /* surface_id */)
1020 1046
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1582 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1557 // for details. 1583 // for details.
1558 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1584 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1559 LOGFONT /* font_data */, 1585 LOGFONT /* font_data */,
1560 base::string16 /* characters */) 1586 base::string16 /* characters */)
1561 #endif 1587 #endif
1562 1588
1563 // Adding a new message? Stick to the sort order above: first platform 1589 // Adding a new message? Stick to the sort order above: first platform
1564 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1590 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1565 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1591 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698