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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 // We need to track the RenderViewHost routing_id because of downstream | 166 // We need to track the RenderViewHost routing_id because of downstream |
| 167 // dependencies (crbug.com/392171 DownloadRequestHandle, SaveFileManager, | 167 // dependencies (crbug.com/392171 DownloadRequestHandle, SaveFileManager, |
| 168 // ResourceDispatcherHostImpl, MediaStreamUIProxy, | 168 // ResourceDispatcherHostImpl, MediaStreamUIProxy, |
| 169 // SpeechRecognitionDispatcherHost and possibly others). They look up the view | 169 // SpeechRecognitionDispatcherHost and possibly others). They look up the view |
| 170 // based on the ID stored in the resource requests. Once those dependencies | 170 // based on the ID stored in the resource requests. Once those dependencies |
| 171 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the | 171 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the |
| 172 // client to be based on the routing_id of the RenderFrameHost. | 172 // client to be based on the routing_id of the RenderFrameHost. |
| 173 IPC_STRUCT_MEMBER(int, render_view_routing_id) | 173 IPC_STRUCT_MEMBER(int, render_view_routing_id) |
| 174 IPC_STRUCT_END() | 174 IPC_STRUCT_END() |
| 175 | 175 |
| 176 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_WidgetParams) | |
| 177 // Gives the routing ID for the RenderWidget that will be attached to the | |
| 178 // new RenderFrame. If the RenderFrame does not need a RenderWidget, this | |
| 179 // is MSG_ROUTING_NONE and the other parameters are not read. | |
| 180 IPC_STRUCT_MEMBER(int, routing_id) | |
| 181 | |
| 182 // Identifier for the output surface for the new RenderWidget. | |
| 183 IPC_STRUCT_MEMBER(int, surface_id) | |
| 184 | |
| 185 // Tells the new RenderWidget whether it is initially hidden. | |
| 186 IPC_STRUCT_MEMBER(bool, hidden) | |
| 187 IPC_STRUCT_END() | |
| 188 | |
| 176 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) | 189 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) |
| 177 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 190 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| 178 // Forward, and Reload navigations should have a valid page_id. If the load | 191 // Forward, and Reload navigations should have a valid page_id. If the load |
| 179 // succeeds, then this page_id will be reflected in the resultant | 192 // succeeds, then this page_id will be reflected in the resultant |
| 180 // FrameHostMsg_DidCommitProvisionalLoad message. | 193 // FrameHostMsg_DidCommitProvisionalLoad message. |
| 181 IPC_STRUCT_MEMBER(int32, page_id) | 194 IPC_STRUCT_MEMBER(int32, page_id) |
| 182 | 195 |
| 183 // If page_id is -1, then pending_history_list_offset will also be -1. | 196 // If page_id is -1, then pending_history_list_offset will also be -1. |
| 184 // Otherwise, it contains the offset into the history list corresponding to | 197 // Otherwise, it contains the offset into the history list corresponding to |
| 185 // the current navigation. | 198 // the current navigation. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 361 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction, | 374 IPC_MESSAGE_ROUTED2(FrameMsg_CustomContextMenuAction, |
| 362 content::CustomContextMenuContext /* custom_context */, | 375 content::CustomContextMenuContext /* custom_context */, |
| 363 unsigned /* action */) | 376 unsigned /* action */) |
| 364 | 377 |
| 365 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. | 378 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. |
| 366 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) | 379 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) |
| 367 | 380 |
| 368 // Instructs the renderer to create a new RenderFrame object with |routing_id|. | 381 // Instructs the renderer to create a new RenderFrame object with |routing_id|. |
| 369 // The new frame should be created as a child of the object identified by | 382 // The new frame should be created as a child of the object identified by |
| 370 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. | 383 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. |
| 371 IPC_MESSAGE_CONTROL2(FrameMsg_NewFrame, | 384 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrame, |
| 372 int /* routing_id */, | 385 int /* routing_id */, |
| 373 int /* parent_routing_id */) | 386 int /* parent_routing_id */, |
| 387 FrameMsg_NewFrame_WidgetParams /* params */) | |
|
nasko
2014/10/02 20:41:44
nit: widget_params
kenrb
2014/10/03 17:23:32
Done.
| |
| 374 | 388 |
| 375 // Instructs the renderer to create a new RenderFrameProxy object with | 389 // Instructs the renderer to create a new RenderFrameProxy object with |
| 376 // |routing_id|. The new proxy should be created as a child of the object | 390 // |routing_id|. The new proxy should be created as a child of the object |
| 377 // identified by |parent_routing_id| or as top level if that is | 391 // identified by |parent_routing_id| or as top level if that is |
| 378 // MSG_ROUTING_NONE. | 392 // MSG_ROUTING_NONE. |
| 379 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrameProxy, | 393 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrameProxy, |
| 380 int /* routing_id */, | 394 int /* routing_id */, |
| 381 int /* parent_routing_id */, | 395 int /* parent_routing_id */, |
| 382 int /* render_view_routing_id */) | 396 int /* render_view_routing_id */) |
| 383 | 397 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 753 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 767 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 754 | 768 |
| 755 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 769 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 756 | 770 |
| 757 // Message to show/hide a popup menu using native controls. | 771 // Message to show/hide a popup menu using native controls. |
| 758 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 772 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 759 FrameHostMsg_ShowPopup_Params) | 773 FrameHostMsg_ShowPopup_Params) |
| 760 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 774 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 761 | 775 |
| 762 #endif | 776 #endif |
| OLD | NEW |