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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 // is MSG_ROUTING_NONE and the other parameters are not read. | 291 // is MSG_ROUTING_NONE and the other parameters are not read. |
292 IPC_STRUCT_MEMBER(int, routing_id) | 292 IPC_STRUCT_MEMBER(int, routing_id) |
293 | 293 |
294 // Identifier for the output surface for the new RenderWidget. | 294 // Identifier for the output surface for the new RenderWidget. |
295 IPC_STRUCT_MEMBER(int, surface_id) | 295 IPC_STRUCT_MEMBER(int, surface_id) |
296 | 296 |
297 // Tells the new RenderWidget whether it is initially hidden. | 297 // Tells the new RenderWidget whether it is initially hidden. |
298 IPC_STRUCT_MEMBER(bool, hidden) | 298 IPC_STRUCT_MEMBER(bool, hidden) |
299 IPC_STRUCT_END() | 299 IPC_STRUCT_END() |
300 | 300 |
301 IPC_STRUCT_BEGIN(FrameMsg_NewFrame_Params) | |
302 // Specifies the routing ID of the new RenderFrame object. | |
303 IPC_STRUCT_MEMBER(int, routing_id) | |
304 | |
305 // The new frame should be created as a child of the object | |
306 // identified by |parent_routing_id| or as top level if that is | |
307 // MSG_ROUTING_NONE. | |
308 IPC_STRUCT_MEMBER(int, parent_routing_id) | |
309 | |
310 // Identifies the previous sibling of the new frame, so that the new frame is | |
311 // inserted into the correct place in the frame tree. If this is | |
312 // MSG_ROUTING_NONE, the frame will be created as the first child of its | |
313 // parent frame. | |
314 IPC_STRUCT_MEMBER(int, previous_sibling_routing_id) | |
315 | |
316 // If a valid |proxy_routing_id| is provided, the new frame will be | |
317 // configured to replace the proxy on commit. | |
318 IPC_STRUCT_MEMBER(int, proxy_routing_id) | |
319 | |
320 // When the new frame has a parent, |replication_state| holds the new frame's | |
321 // properties replicated from the process rendering the parent frame, such as | |
322 // the new frame's sandbox flags. | |
323 IPC_STRUCT_MEMBER(content::FrameReplicationState, replication_state) | |
324 | |
325 IPC_STRUCT_MEMBER(FrameMsg_NewFrame_WidgetParams, widget_params) | |
nasko
2015/05/04 17:16:56
nit: Let's add a comment about what widget_params
alexmos
2015/05/04 21:18:04
Done.
| |
326 IPC_STRUCT_END() | |
327 | |
301 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) | 328 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
302 IPC_STRUCT_MEMBER(GURL, url) | 329 IPC_STRUCT_MEMBER(GURL, url) |
303 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 330 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
304 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 331 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
305 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 332 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
306 IPC_STRUCT_MEMBER(bool, user_gesture) | 333 IPC_STRUCT_MEMBER(bool, user_gesture) |
307 IPC_STRUCT_END() | 334 IPC_STRUCT_END() |
308 | 335 |
309 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params) | 336 IPC_STRUCT_BEGIN(FrameMsg_TextTrackSettings_Params) |
310 // Background color of the text track. | 337 // Background color of the text track. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 content::CustomContextMenuContext /* custom_context */, | 409 content::CustomContextMenuContext /* custom_context */, |
383 unsigned /* action */) | 410 unsigned /* action */) |
384 | 411 |
385 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. | 412 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. |
386 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) | 413 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) |
387 | 414 |
388 // Requests that the RenderFrame send back a response after waiting for the | 415 // Requests that the RenderFrame send back a response after waiting for the |
389 // commit, activation and frame swap of the current DOM tree in blink. | 416 // commit, activation and frame swap of the current DOM tree in blink. |
390 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64 /* id */) | 417 IPC_MESSAGE_ROUTED1(FrameMsg_VisualStateRequest, uint64 /* id */) |
391 | 418 |
392 // Instructs the renderer to create a new RenderFrame object with |routing_id|. | 419 // Instructs the renderer to create a new RenderFrame object. |
393 // The new frame should be created as a child of the object identified by | 420 IPC_MESSAGE_CONTROL1(FrameMsg_NewFrame, FrameMsg_NewFrame_Params); |
nasko
2015/05/04 17:16:56
nit: /* params */
alexmos
2015/05/04 21:18:03
Done.
| |
394 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. | |
395 // If a valid |proxy_routing_id| is provided, the new frame will be configured | |
396 // to replace the proxy on commit. When the new frame has a parent, | |
397 // |replication_state| holds properties replicated from the process rendering | |
398 // the parent frame, such as the new frame's sandbox flags. | |
399 IPC_MESSAGE_CONTROL5(FrameMsg_NewFrame, | |
400 int /* routing_id */, | |
401 int /* parent_routing_id */, | |
402 int /* proxy_routing_id */, | |
403 content::FrameReplicationState /* replication_state */, | |
404 FrameMsg_NewFrame_WidgetParams /* widget_params */) | |
405 | 421 |
406 // Instructs the renderer to create a new RenderFrameProxy object with | 422 // Instructs the renderer to create a new RenderFrameProxy object with |
407 // |routing_id|. The new proxy should be created as a child of the object | 423 // |routing_id|. The new proxy should be created as a child of the object |
408 // identified by |parent_routing_id| or as top level if that is | 424 // identified by |parent_routing_id| or as top level if that is |
409 // MSG_ROUTING_NONE. | 425 // MSG_ROUTING_NONE. |
410 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, | 426 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, |
411 int /* routing_id */, | 427 int /* routing_id */, |
412 int /* parent_routing_id */, | 428 int /* parent_routing_id */, |
413 int /* render_view_routing_id */, | 429 int /* render_view_routing_id */, |
414 content::FrameReplicationState /* replication_state */) | 430 content::FrameReplicationState /* replication_state */) |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
906 FrameMsg_PostMessage_Params) | 922 FrameMsg_PostMessage_Params) |
907 | 923 |
908 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 924 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
909 | 925 |
910 // Message to show/hide a popup menu using native controls. | 926 // Message to show/hide a popup menu using native controls. |
911 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 927 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
912 FrameHostMsg_ShowPopup_Params) | 928 FrameHostMsg_ShowPopup_Params) |
913 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 929 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
914 | 930 |
915 #endif | 931 #endif |
OLD | NEW |