Chromium Code Reviews| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) | 221 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) |
| 222 IPC_STRUCT_TRAITS_MEMBER(page_state) | 222 IPC_STRUCT_TRAITS_MEMBER(page_state) |
| 223 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 223 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
| 224 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 224 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
| 225 IPC_STRUCT_TRAITS_END() | 225 IPC_STRUCT_TRAITS_END() |
| 226 | 226 |
| 227 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 227 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
| 228 IPC_STRUCT_TRAITS_MEMBER(origin) | 228 IPC_STRUCT_TRAITS_MEMBER(origin) |
| 229 IPC_STRUCT_TRAITS_END() | 229 IPC_STRUCT_TRAITS_END() |
| 230 | 230 |
| 231 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) | |
| 232 // Gives the routing ID for the RenderWidget that will be attached to the | |
|
nasko
2014/12/17 22:51:30
Indent the body of the struct, similar to how the
kenrb
2015/01/05 21:15:31
Done.
| |
| 233 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this | |
| 234 // is MSG_ROUTING_NONE and the other parameters are not read. | |
| 235 IPC_STRUCT_MEMBER(int, routing_id) | |
| 236 | |
| 237 // Identifier for the output surface for the new RenderWidget. | |
| 238 IPC_STRUCT_MEMBER(int, surface_id) | |
| 239 | |
| 240 // Tells the new RenderWidget whether it is initially hidden. | |
| 241 IPC_STRUCT_MEMBER(bool, hidden) | |
| 242 IPC_STRUCT_END() | |
| 243 | |
| 231 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) | 244 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) |
| 232 // TODO(clamy): investigate which parameters are also needed in PlzNavigate | 245 // TODO(clamy): investigate which parameters are also needed in PlzNavigate |
| 233 // and move them to the appropriate NavigationParams struct. | 246 // and move them to the appropriate NavigationParams struct. |
| 234 | 247 |
| 235 // These structs contain parameters shared by other navigation IPCs. | 248 // These structs contain parameters shared by other navigation IPCs. |
| 236 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) | 249 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) |
| 237 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) | 250 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) |
| 238 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) | 251 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) |
| 239 | 252 |
| 240 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 253 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 378 unsigned /* action */) | 391 unsigned /* action */) |
| 379 | 392 |
| 380 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. | 393 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. |
| 381 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) | 394 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) |
| 382 | 395 |
| 383 // Instructs the renderer to create a new RenderFrame object with |routing_id|. | 396 // Instructs the renderer to create a new RenderFrame object with |routing_id|. |
| 384 // The new frame should be created as a child of the object identified by | 397 // The new frame should be created as a child of the object identified by |
| 385 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. | 398 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. |
| 386 // If a valid |proxy_routing_id| is provided, the new frame will be configured | 399 // If a valid |proxy_routing_id| is provided, the new frame will be configured |
| 387 // to replace the proxy on commit. | 400 // to replace the proxy on commit. |
| 388 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrame, | 401 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrame, |
| 389 int /* routing_id */, | 402 int /* routing_id */, |
| 390 int /* parent_routing_id */, | 403 int /* parent_routing_id */, |
| 391 int /* proxy_routing_id */) | 404 int /* proxy_routing_id */, |
| 405 FrameMsg_NewFrame_WidgetParams /* widget_params */) | |
| 392 | 406 |
| 393 // Instructs the renderer to create a new RenderFrameProxy object with | 407 // Instructs the renderer to create a new RenderFrameProxy object with |
| 394 // |routing_id|. The new proxy should be created as a child of the object | 408 // |routing_id|. The new proxy should be created as a child of the object |
| 395 // identified by |parent_routing_id| or as top level if that is | 409 // identified by |parent_routing_id| or as top level if that is |
| 396 // MSG_ROUTING_NONE. | 410 // MSG_ROUTING_NONE. |
| 397 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, | 411 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, |
| 398 int /* routing_id */, | 412 int /* routing_id */, |
| 399 int /* parent_routing_id */, | 413 int /* parent_routing_id */, |
| 400 int /* render_view_routing_id */, | 414 int /* render_view_routing_id */, |
| 401 content::FrameReplicationState /* replication_state */) | 415 content::FrameReplicationState /* replication_state */) |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 822 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 836 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 823 | 837 |
| 824 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 838 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 825 | 839 |
| 826 // Message to show/hide a popup menu using native controls. | 840 // Message to show/hide a popup menu using native controls. |
| 827 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 841 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 828 FrameHostMsg_ShowPopup_Params) | 842 FrameHostMsg_ShowPopup_Params) |
| 829 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 843 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 830 | 844 |
| 831 #endif | 845 #endif |
| OLD | NEW |