OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 GuestViews. | 5 // IPC messages for GuestViews. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 // |element_instance_id| from a GuestViewBase if it is attached to one. | 26 // |element_instance_id| from a GuestViewBase if it is attached to one. |
27 // In other words, routing of input and graphics will no longer flow through | 27 // In other words, routing of input and graphics will no longer flow through |
28 // the container associated with the provided ID. | 28 // the container associated with the provided ID. |
29 IPC_MESSAGE_CONTROL1(GuestViewMsg_GuestDetached, | 29 IPC_MESSAGE_CONTROL1(GuestViewMsg_GuestDetached, |
30 int /* element_instance_id*/) | 30 int /* element_instance_id*/) |
31 | 31 |
32 // Messages sent from the renderer to the browser. | 32 // Messages sent from the renderer to the browser. |
33 | 33 |
34 // Sent by the renderer to set initialization parameters of a Browser Plugin | 34 // Sent by the renderer to set initialization parameters of a Browser Plugin |
35 // that is identified by |element_instance_id|. | 35 // that is identified by |element_instance_id|. |
36 IPC_MESSAGE_CONTROL3(GuestViewHostMsg_AttachGuest, | 36 IPC_MESSAGE_CONTROL4(GuestViewHostMsg_AttachGuest, |
37 int /* element_instance_id */, | 37 int /* element_instance_id */, |
38 int /* guest_instance_id */, | 38 int /* guest_instance_id */, |
| 39 int /* embedder_routing_id */, |
39 base::DictionaryValue /* attach_params */) | 40 base::DictionaryValue /* attach_params */) |
40 | 41 |
41 // We have a RenderFrame with routing id of |embedder_local_frame_routing_id|. | 42 // We have a RenderFrame with routing id of |embedder_local_frame_routing_id|. |
42 // We want this local frame to be replaced with a remote frame that points | 43 // We want this local frame to be replaced with a remote frame that points |
43 // to a GuestView. This message will attach the local frame to the guest. | 44 // to a GuestView. This message will attach the local frame to the guest. |
44 // The GuestView is identified by its ID: |guest_instance_id|. | 45 // The GuestView is identified by its ID: |guest_instance_id|. |
45 IPC_MESSAGE_CONTROL4(GuestViewHostMsg_AttachToEmbedderFrame, | 46 IPC_MESSAGE_CONTROL4(GuestViewHostMsg_AttachToEmbedderFrame, |
46 int /* embedder_local_frame_routing_id */, | 47 int /* embedder_local_frame_routing_id */, |
47 int /* element_instance_id */, | 48 int /* element_instance_id */, |
48 int /* guest_instance_id */, | 49 int /* guest_instance_id */, |
49 base::DictionaryValue /* params */) | 50 base::DictionaryValue /* params */) |
50 | 51 |
51 // Sent by the renderer when a GuestView (identified by |view_instance_id|) has | 52 // Sent by the renderer when a GuestView (identified by |view_instance_id|) has |
52 // been created in JavaScript. | 53 // been created in JavaScript. |
53 IPC_MESSAGE_CONTROL2(GuestViewHostMsg_ViewCreated, | 54 IPC_MESSAGE_CONTROL2(GuestViewHostMsg_ViewCreated, |
54 int /* view_instance_id */, | 55 int /* view_instance_id */, |
55 std::string /* view_type */) | 56 std::string /* view_type */) |
56 | 57 |
57 // Sent by the renderer when a GuestView (identified by |view_instance_id|) has | 58 // Sent by the renderer when a GuestView (identified by |view_instance_id|) has |
58 // been garbage collected in JavaScript. | 59 // been garbage collected in JavaScript. |
59 IPC_MESSAGE_CONTROL1(GuestViewHostMsg_ViewGarbageCollected, | 60 IPC_MESSAGE_CONTROL1(GuestViewHostMsg_ViewGarbageCollected, |
60 int /* view_instance_id */) | 61 int /* view_instance_id */) |
OLD | NEW |