Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 // A embedder sends this message to the browser when it wants | 118 // A embedder sends this message to the browser when it wants |
| 119 // to resize a guest plugin container so that the guest is relaid out | 119 // to resize a guest plugin container so that the guest is relaid out |
| 120 // according to the new size. | 120 // according to the new size. |
| 121 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 121 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
| 122 int /* instance_id*/, | 122 int /* instance_id*/, |
| 123 BrowserPluginHostMsg_ResizeGuest_Params) | 123 BrowserPluginHostMsg_ResizeGuest_Params) |
| 124 | 124 |
| 125 // ----------------------------------------------------------------------------- | 125 // ----------------------------------------------------------------------------- |
| 126 // These messages are from the browser process to the embedder. | 126 // These messages are from the browser process to the embedder. |
| 127 | 127 |
| 128 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, | |
|
nasko
2012/10/02 17:52:31
Comment on when/why this is sent?
Fady Samuel
2012/10/02 22:04:08
Done.
| |
| 129 int /* instance_id */, | |
| 130 int /* source_routing_id */) | |
| 131 | |
| 132 IPC_STRUCT_BEGIN(BrowserPluginMsg_ReceiveMessage_Params) | |
| 133 // The routing ID of the swapped out RenderView of the guest | |
| 134 // in the embedder render process. | |
| 135 IPC_STRUCT_MEMBER(int, source_routing_id) | |
| 136 // The origin of the source frame. | |
| 137 IPC_STRUCT_MEMBER(string16, source_origin) | |
| 138 // The identifier of the source frame in the source process. | |
| 139 IPC_STRUCT_MEMBER(int, source_frame_id) | |
| 140 // The identifier of the target frame in the target process. | |
| 141 IPC_STRUCT_MEMBER(int, target_frame_id) | |
| 142 // The serialized script value. | |
| 143 IPC_STRUCT_MEMBER(string16, data) | |
| 144 IPC_STRUCT_END() | |
| 145 | |
| 146 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ReceiveMessage, | |
|
nasko
2012/10/02 17:52:31
A comment on when/why this is sent will be nice.
Fady Samuel
2012/10/02 22:04:08
Done.
| |
| 147 int /* instance_id */, | |
| 148 BrowserPluginMsg_ReceiveMessage_Params /* params */) | |
| 149 | |
| 150 | |
| 128 // When the guest navigates, the browser process informs the embedder through | 151 // When the guest navigates, the browser process informs the embedder through |
| 129 // the BrowserPluginMsg_DidNavigate message. | 152 // the BrowserPluginMsg_DidNavigate message. |
| 130 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, | 153 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, |
| 131 int /* instance_id */, | 154 int /* instance_id */, |
| 132 GURL /* url */, | 155 GURL /* url */, |
| 133 int /* process_id */) | 156 int /* process_id */) |
| 134 | 157 |
| 135 // When the guest crashes, the browser process informs the embedder through this | 158 // When the guest crashes, the browser process informs the embedder through this |
| 136 // message. | 159 // message. |
| 137 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, | 160 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 206 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 184 int /* instance_id */, | 207 int /* instance_id */, |
| 185 bool /* accept */) | 208 bool /* accept */) |
| 186 | 209 |
| 187 // The guest has damage it wants to convey to the embedder so that it can | 210 // The guest has damage it wants to convey to the embedder so that it can |
| 188 // update its backing store. | 211 // update its backing store. |
| 189 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 212 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 190 int /* instance_id */, | 213 int /* instance_id */, |
| 191 int /* message_id */, | 214 int /* message_id */, |
| 192 BrowserPluginMsg_UpdateRect_Params) | 215 BrowserPluginMsg_UpdateRect_Params) |
| OLD | NEW |