OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 IPC_STRUCT_TRAITS_MEMBER(page_state) | 223 IPC_STRUCT_TRAITS_MEMBER(page_state) |
224 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 224 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
225 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 225 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
226 IPC_STRUCT_TRAITS_END() | 226 IPC_STRUCT_TRAITS_END() |
227 | 227 |
228 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 228 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
229 IPC_STRUCT_TRAITS_MEMBER(origin) | 229 IPC_STRUCT_TRAITS_MEMBER(origin) |
230 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) | 230 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
231 IPC_STRUCT_TRAITS_END() | 231 IPC_STRUCT_TRAITS_END() |
232 | 232 |
233 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) | |
234 // Gives the routing ID for the RenderWidget that will be attached to the | |
235 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this | |
236 // is MSG_ROUTING_NONE and the other parameters are not read. | |
237 IPC_STRUCT_MEMBER(int, routing_id) | |
238 | |
239 // Identifier for the output surface for the new RenderWidget. | |
240 IPC_STRUCT_MEMBER(int, surface_id) | |
241 | |
242 // Tells the new RenderWidget whether it is initially hidden. | |
243 IPC_STRUCT_MEMBER(bool, hidden) | |
244 IPC_STRUCT_END() | |
245 | |
246 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) | 233 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) |
247 // TODO(clamy): investigate which parameters are also needed in PlzNavigate | 234 // TODO(clamy): investigate which parameters are also needed in PlzNavigate |
248 // and move them to the appropriate NavigationParams struct. | 235 // and move them to the appropriate NavigationParams struct. |
249 | 236 |
250 // These structs contain parameters shared by other navigation IPCs. | 237 // These structs contain parameters shared by other navigation IPCs. |
251 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) | 238 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) |
252 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) | 239 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) |
253 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) | 240 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) |
254 | 241 |
255 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 242 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. | 382 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. |
396 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) | 383 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) |
397 | 384 |
398 // Instructs the renderer to create a new RenderFrame object with |routing_id|. | 385 // Instructs the renderer to create a new RenderFrame object with |routing_id|. |
399 // The new frame should be created as a child of the object identified by | 386 // The new frame should be created as a child of the object identified by |
400 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. | 387 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. |
401 // If a valid |proxy_routing_id| is provided, the new frame will be configured | 388 // If a valid |proxy_routing_id| is provided, the new frame will be configured |
402 // to replace the proxy on commit. When the new frame has a parent, | 389 // to replace the proxy on commit. When the new frame has a parent, |
403 // |replication_state| holds properties replicated from the process rendering | 390 // |replication_state| holds properties replicated from the process rendering |
404 // the parent frame, such as the new frame's sandbox flags. | 391 // the parent frame, such as the new frame's sandbox flags. |
405 IPC_MESSAGE_CONTROL5(FrameMsg_NewFrame, | 392 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrame, |
406 int /* routing_id */, | 393 int /* routing_id */, |
407 int /* parent_routing_id */, | 394 int /* parent_routing_id */, |
408 int /* proxy_routing_id */, | 395 int /* proxy_routing_id */, |
409 content::FrameReplicationState /* replication_state */, | 396 content::FrameReplicationState /* replication_state */) |
410 FrameMsg_NewFrame_WidgetParams /* widget_params */) | |
411 | 397 |
412 // Instructs the renderer to create a new RenderFrameProxy object with | 398 // Instructs the renderer to create a new RenderFrameProxy object with |
413 // |routing_id|. The new proxy should be created as a child of the object | 399 // |routing_id|. The new proxy should be created as a child of the object |
414 // identified by |parent_routing_id| or as top level if that is | 400 // identified by |parent_routing_id| or as top level if that is |
415 // MSG_ROUTING_NONE. | 401 // MSG_ROUTING_NONE. |
416 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, | 402 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, |
417 int /* routing_id */, | 403 int /* routing_id */, |
418 int /* parent_routing_id */, | 404 int /* parent_routing_id */, |
419 int /* render_view_routing_id */, | 405 int /* render_view_routing_id */, |
420 content::FrameReplicationState /* replication_state */) | 406 content::FrameReplicationState /* replication_state */) |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) | 841 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) |
856 | 842 |
857 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 843 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
858 | 844 |
859 // Message to show/hide a popup menu using native controls. | 845 // Message to show/hide a popup menu using native controls. |
860 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 846 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
861 FrameHostMsg_ShowPopup_Params) | 847 FrameHostMsg_ShowPopup_Params) |
862 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 848 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
863 | 849 |
864 #endif | 850 #endif |
OLD | NEW |