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

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

Issue 1369603003: Remove 2-stage RenderWidget initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_offscreen_contexts
Patch Set: review comments Created 5 years, 2 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
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 int /* history_offset */, 576 int /* history_offset */,
577 int /* history_length */) 577 int /* history_length */)
578 578
579 // Tells the renderer to create a new view. 579 // Tells the renderer to create a new view.
580 // This message is slightly different, the view it takes (via 580 // This message is slightly different, the view it takes (via
581 // ViewMsg_New_Params) is the view to create, the message itself is sent as a 581 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
582 // non-view control message. 582 // non-view control message.
583 IPC_MESSAGE_CONTROL1(ViewMsg_New, 583 IPC_MESSAGE_CONTROL1(ViewMsg_New,
584 ViewMsg_New_Params) 584 ViewMsg_New_Params)
585 585
586 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
587 // similar to the new command, but used when the renderer created a view
588 // first, and we need to update it.
589 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK)
590
591 // Sends updated preferences to the renderer. 586 // Sends updated preferences to the renderer.
592 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, 587 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs,
593 content::RendererPreferences) 588 content::RendererPreferences)
594 589
595 // This passes a set of webkit preferences down to the renderer. 590 // This passes a set of webkit preferences down to the renderer.
596 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, 591 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences,
597 content::WebPreferences) 592 content::WebPreferences)
598 593
599 // Informs the renderer that the timezone has changed along with a new 594 // Informs the renderer that the timezone has changed along with a new
600 // timezone ID. 595 // timezone ID.
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 959
965 // ----------------------------------------------------------------------------- 960 // -----------------------------------------------------------------------------
966 // Messages sent from the renderer to the browser. 961 // Messages sent from the renderer to the browser.
967 962
968 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 963 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
969 // display events. If |enabled| is true, the BeginFrame message will continue 964 // display events. If |enabled| is true, the BeginFrame message will continue
970 // to be be delivered until the notification is disabled. 965 // to be be delivered until the notification is disabled.
971 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, 966 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
972 bool /* enabled */) 967 bool /* enabled */)
973 968
974 // Sent by the renderer when it is creating a new window. The browser creates 969 // Sent by the renderer when it is creating a new window. The browser creates a
975 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 970 // tab for it. If route_id is MSG_ROUTING_NONE, the view couldn't be created.
976 // MSG_ROUTING_NONE, the view couldn't be created.
977 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, 971 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow,
978 ViewHostMsg_CreateWindow_Params, 972 ViewHostMsg_CreateWindow_Params,
979 int /* route_id */, 973 int /* route_id */,
980 int /* main_frame_route_id */, 974 int /* main_frame_route_id */,
981 int64 /* cloned_session_storage_namespace_id */) 975 int64 /* cloned_session_storage_namespace_id */)
982 976
983 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like 977 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
984 // <select> dropdowns. This message is sent to the WebContentsImpl that 978 // <select> dropdowns. This message is sent to the WebContentsImpl that
985 // contains the widget being created. 979 // contains the widget being created.
986 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, 980 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 bool /* opened_by_user_gesture */) 1012 bool /* opened_by_user_gesture */)
1019 1013
1020 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, 1014 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget,
1021 int /* route_id */, 1015 int /* route_id */,
1022 gfx::Rect /* initial_rect */) 1016 gfx::Rect /* initial_rect */)
1023 1017
1024 // Message to show a full screen widget. 1018 // Message to show a full screen widget.
1025 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, 1019 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget,
1026 int /* route_id */) 1020 int /* route_id */)
1027 1021
1028 // Indicates the renderer is ready in response to a ViewMsg_New or
1029 // a ViewMsg_CreatingNew_ACK.
1030 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady)
1031
1032 // Sent by the renderer process to request that the browser close the view. 1022 // Sent by the renderer process to request that the browser close the view.
1033 // This corresponds to the window.close() API, and the browser may ignore 1023 // This corresponds to the window.close() API, and the browser may ignore
1034 // this message. Otherwise, the browser will generates a ViewMsg_Close 1024 // this message. Otherwise, the browser will generates a ViewMsg_Close
1035 // message to close the view. 1025 // message to close the view.
1036 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close) 1026 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close)
1037 1027
1038 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can 1028 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1039 // throttle these messages. 1029 // throttle these messages.
1040 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK) 1030 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
1041 1031
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 // Instructs the browser to start plugin IME. 1375 // Instructs the browser to start plugin IME.
1386 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) 1376 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
1387 1377
1388 // Receives content of a web page as plain text. 1378 // Receives content of a web page as plain text.
1389 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); 1379 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
1390 #endif 1380 #endif
1391 1381
1392 // Adding a new message? Stick to the sort order above: first platform 1382 // Adding a new message? Stick to the sort order above: first platform
1393 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1383 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1394 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1384 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698