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

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: Fix merge conflicts Created 5 years, 1 month 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 // The window features to use for the new view. 335 // The window features to use for the new view.
336 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features) 336 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features)
337 337
338 // The additional window features to use for the new view. We pass these 338 // The additional window features to use for the new view. We pass these
339 // separately from |features| above because we cannot serialize WebStrings 339 // separately from |features| above because we cannot serialize WebStrings
340 // over IPC. 340 // over IPC.
341 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features) 341 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features)
342 IPC_STRUCT_END() 342 IPC_STRUCT_END()
343 343
344 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Reply)
345 // The ID of the view to be created. If the ID is MSG_ROUTING_NONE, then the
346 // view couldn't be created.
347 IPC_STRUCT_MEMBER(int32_t, route_id, MSG_ROUTING_NONE)
348
349 // The ID of the main frame hosted in the view.
350 IPC_STRUCT_MEMBER(int32_t, main_frame_route_id, MSG_ROUTING_NONE)
351
352 // The ID of the widget for the main frame.
353 IPC_STRUCT_MEMBER(int32_t, main_frame_widget_route_id, MSG_ROUTING_NONE)
354
355 // TODO(dcheng): No clue. This is kind of duplicated from ViewMsg_New_Params.
356 IPC_STRUCT_MEMBER(int64, cloned_session_storage_namespace_id)
357 IPC_STRUCT_END()
358
344 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) 359 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
345 // URL for the worker script. 360 // URL for the worker script.
346 IPC_STRUCT_MEMBER(GURL, url) 361 IPC_STRUCT_MEMBER(GURL, url)
347 362
348 // Name for a SharedWorker, otherwise empty string. 363 // Name for a SharedWorker, otherwise empty string.
349 IPC_STRUCT_MEMBER(base::string16, name) 364 IPC_STRUCT_MEMBER(base::string16, name)
350 365
351 // Security policy used in the worker. 366 // Security policy used in the worker.
352 IPC_STRUCT_MEMBER(base::string16, content_security_policy) 367 IPC_STRUCT_MEMBER(base::string16, content_security_policy)
353 368
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 IPC_STRUCT_END() 488 IPC_STRUCT_END()
474 489
475 IPC_STRUCT_BEGIN(ViewMsg_New_Params) 490 IPC_STRUCT_BEGIN(ViewMsg_New_Params)
476 // Renderer-wide preferences. 491 // Renderer-wide preferences.
477 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) 492 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences)
478 493
479 // Preferences for this view. 494 // Preferences for this view.
480 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences) 495 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences)
481 496
482 // The ID of the view to be created. 497 // The ID of the view to be created.
483 IPC_STRUCT_MEMBER(int32, view_id) 498 IPC_STRUCT_MEMBER(int32_t, view_id, MSG_ROUTING_NONE)
484 499
485 // The ID of the main frame hosted in the view. 500 // The ID of the main frame hosted in the view.
486 IPC_STRUCT_MEMBER(int32, main_frame_routing_id) 501 IPC_STRUCT_MEMBER(int32_t, main_frame_routing_id, MSG_ROUTING_NONE)
502
503 // The ID of the widget for the main frame.
504 IPC_STRUCT_MEMBER(int32_t, main_frame_widget_routing_id, MSG_ROUTING_NONE)
487 505
488 // The session storage namespace ID this view should use. 506 // The session storage namespace ID this view should use.
489 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) 507 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
490 508
491 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to 509 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to
492 // set one (MSG_ROUTING_NONE otherwise). 510 // set one (MSG_ROUTING_NONE otherwise).
493 IPC_STRUCT_MEMBER(int, opener_frame_route_id) 511 IPC_STRUCT_MEMBER(int, opener_frame_route_id, MSG_ROUTING_NONE)
494 512
495 // Whether the RenderView should initially be swapped out. 513 // Whether the RenderView should initially be swapped out.
496 IPC_STRUCT_MEMBER(bool, swapped_out) 514 IPC_STRUCT_MEMBER(bool, swapped_out)
497 515
498 // Carries replicated information, such as frame name and sandbox flags, for 516 // Carries replicated information, such as frame name and sandbox flags, for
499 // this view's main frame, which will be a proxy in |swapped_out| 517 // this view's main frame, which will be a proxy in |swapped_out|
500 // views when in --site-per-process mode, or a RenderFrame in all other 518 // views when in --site-per-process mode, or a RenderFrame in all other
501 // cases. 519 // cases.
502 IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state) 520 IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state)
503 521
504 // The ID of the proxy object for the main frame in this view. It is only 522 // The ID of the proxy object for the main frame in this view. It is only
505 // used if |swapped_out| is true. 523 // used if |swapped_out| is true.
506 IPC_STRUCT_MEMBER(int32, proxy_routing_id) 524 IPC_STRUCT_MEMBER(int32_t, proxy_routing_id, MSG_ROUTING_NONE)
507 525
508 // Whether the RenderView should initially be hidden. 526 // Whether the RenderView should initially be hidden.
509 IPC_STRUCT_MEMBER(bool, hidden) 527 IPC_STRUCT_MEMBER(bool, hidden)
510 528
511 // Whether the RenderView will never be visible. 529 // Whether the RenderView will never be visible.
512 IPC_STRUCT_MEMBER(bool, never_visible) 530 IPC_STRUCT_MEMBER(bool, never_visible)
513 531
514 // Whether the window associated with this view was created with an opener. 532 // Whether the window associated with this view was created with an opener.
515 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener) 533 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener)
516 534
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 // ----------------------------------------------------------------------------- 978 // -----------------------------------------------------------------------------
961 // Messages sent from the renderer to the browser. 979 // Messages sent from the renderer to the browser.
962 980
963 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 981 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
964 // display events. If |enabled| is true, the BeginFrame message will continue 982 // display events. If |enabled| is true, the BeginFrame message will continue
965 // to be be delivered until the notification is disabled. 983 // to be be delivered until the notification is disabled.
966 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, 984 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
967 bool /* enabled */) 985 bool /* enabled */)
968 986
969 // Sent by the renderer when it is creating a new window. The browser creates a 987 // Sent by the renderer when it is creating a new window. The browser creates a
970 // tab for it. If route_id is MSG_ROUTING_NONE, the view couldn't be created. 988 // tab for it. If |reply.route_id| is MSG_ROUTING_NONE, the view couldn't be
971 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, 989 // created.
990 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWindow,
972 ViewHostMsg_CreateWindow_Params, 991 ViewHostMsg_CreateWindow_Params,
973 int /* route_id */, 992 ViewHostMsg_CreateWindow_Reply)
974 int /* main_frame_route_id */,
975 int64 /* cloned_session_storage_namespace_id */)
976 993
977 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like 994 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
978 // <select> dropdowns. This message is sent to the WebContentsImpl that 995 // <select> dropdowns. This message is sent to the WebContentsImpl that
979 // contains the widget being created. 996 // contains the widget being created.
980 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, 997 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget,
981 int /* opener_id */, 998 int /* opener_id */,
982 blink::WebPopupType /* popup type */, 999 blink::WebPopupType /* popup type */,
983 int /* route_id */) 1000 int /* route_id */)
984 1001
985 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen 1002 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 // Instructs the browser to start plugin IME. 1397 // Instructs the browser to start plugin IME.
1381 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) 1398 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
1382 1399
1383 // Receives content of a web page as plain text. 1400 // Receives content of a web page as plain text.
1384 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); 1401 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
1385 #endif 1402 #endif
1386 1403
1387 // Adding a new message? Stick to the sort order above: first platform 1404 // Adding a new message? Stick to the sort order above: first platform
1388 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1405 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1389 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1406 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698