| 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 |
| 233 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) | 246 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) |
| 234 // TODO(clamy): investigate which parameters are also needed in PlzNavigate | 247 // TODO(clamy): investigate which parameters are also needed in PlzNavigate |
| 235 // and move them to the appropriate NavigationParams struct. | 248 // and move them to the appropriate NavigationParams struct. |
| 236 | 249 |
| 237 // These structs contain parameters shared by other navigation IPCs. | 250 // These structs contain parameters shared by other navigation IPCs. |
| 238 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) | 251 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) |
| 239 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) | 252 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) |
| 240 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) | 253 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) |
| 241 | 254 |
| 242 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 255 // 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... |
| 382 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. | 395 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. |
| 383 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) | 396 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) |
| 384 | 397 |
| 385 // Instructs the renderer to create a new RenderFrame object with |routing_id|. | 398 // Instructs the renderer to create a new RenderFrame object with |routing_id|. |
| 386 // The new frame should be created as a child of the object identified by | 399 // The new frame should be created as a child of the object identified by |
| 387 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. | 400 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. |
| 388 // If a valid |proxy_routing_id| is provided, the new frame will be configured | 401 // If a valid |proxy_routing_id| is provided, the new frame will be configured |
| 389 // to replace the proxy on commit. When the new frame has a parent, | 402 // to replace the proxy on commit. When the new frame has a parent, |
| 390 // |replication_state| holds properties replicated from the process rendering | 403 // |replication_state| holds properties replicated from the process rendering |
| 391 // the parent frame, such as the new frame's sandbox flags. | 404 // the parent frame, such as the new frame's sandbox flags. |
| 392 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrame, | 405 IPC_MESSAGE_CONTROL5(FrameMsg_NewFrame, |
| 393 int /* routing_id */, | 406 int /* routing_id */, |
| 394 int /* parent_routing_id */, | 407 int /* parent_routing_id */, |
| 395 int /* proxy_routing_id */, | 408 int /* proxy_routing_id */, |
| 396 content::FrameReplicationState /* replication_state */) | 409 content::FrameReplicationState /* replication_state */, |
| 410 FrameMsg_NewFrame_WidgetParams /* widget_params */) |
| 397 | 411 |
| 398 // Instructs the renderer to create a new RenderFrameProxy object with | 412 // Instructs the renderer to create a new RenderFrameProxy object with |
| 399 // |routing_id|. The new proxy should be created as a child of the object | 413 // |routing_id|. The new proxy should be created as a child of the object |
| 400 // identified by |parent_routing_id| or as top level if that is | 414 // identified by |parent_routing_id| or as top level if that is |
| 401 // MSG_ROUTING_NONE. | 415 // MSG_ROUTING_NONE. |
| 402 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, | 416 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, |
| 403 int /* routing_id */, | 417 int /* routing_id */, |
| 404 int /* parent_routing_id */, | 418 int /* parent_routing_id */, |
| 405 int /* render_view_routing_id */, | 419 int /* render_view_routing_id */, |
| 406 content::FrameReplicationState /* replication_state */) | 420 content::FrameReplicationState /* replication_state */) |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) | 855 IPC_MESSAGE_ROUTED1(FrameHostMsg_ToggleFullscreen, bool /* enter_fullscreen */) |
| 842 | 856 |
| 843 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 857 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 844 | 858 |
| 845 // Message to show/hide a popup menu using native controls. | 859 // Message to show/hide a popup menu using native controls. |
| 846 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 860 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 847 FrameHostMsg_ShowPopup_Params) | 861 FrameHostMsg_ShowPopup_Params) |
| 848 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 862 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 849 | 863 |
| 850 #endif | 864 #endif |
| OLD | NEW |