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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 115 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
| 116 // the browser process to cleanup the guest. | 116 // the browser process to cleanup the guest. |
| 117 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 117 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
| 118 int /* instance_id */) | 118 int /* instance_id */) |
| 119 | 119 |
| 120 // Tells the guest it has been shown or hidden. | 120 // Tells the guest it has been shown or hidden. |
| 121 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, | 121 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
| 122 int /* instance_id */, | 122 int /* instance_id */, |
| 123 bool /* visible */) | 123 bool /* visible */) |
| 124 | 124 |
| 125 // Tells the guest that its request for media permission has been allowed or | |
| 126 // denied. | |
| 127 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess, | |
| 128 int /* instance_id */, | |
| 129 int /* request_id */, | |
| 130 bool /* allow */) | |
| 131 | |
| 125 // ----------------------------------------------------------------------------- | 132 // ----------------------------------------------------------------------------- |
| 126 // These messages are from the guest renderer to the browser process | 133 // These messages are from the guest renderer to the browser process |
| 127 | 134 |
| 128 // A embedder sends this message to the browser when it wants | 135 // A embedder sends this message to the browser when it wants |
| 129 // to resize a guest plugin container so that the guest is relaid out | 136 // to resize a guest plugin container so that the guest is relaid out |
| 130 // according to the new size. | 137 // according to the new size. |
| 131 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 138 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
| 132 int /* instance_id*/, | 139 int /* instance_id*/, |
| 133 BrowserPluginHostMsg_ResizeGuest_Params) | 140 BrowserPluginHostMsg_ResizeGuest_Params) |
| 134 | 141 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 165 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, | 172 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, |
| 166 int /* instance_id */, | 173 int /* instance_id */, |
| 167 GURL /* url */, | 174 GURL /* url */, |
| 168 int /* process_id */) | 175 int /* process_id */) |
| 169 | 176 |
| 170 // When the guest crashes, the browser process informs the embedder through this | 177 // When the guest crashes, the browser process informs the embedder through this |
| 171 // message. | 178 // message. |
| 172 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, | 179 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, |
| 173 int /* instance_id */) | 180 int /* instance_id */) |
| 174 | 181 |
| 182 // When the guest requests for media access, the browser process forwards this | |
|
Charlie Reis
2012/10/17 06:18:45
nit: requests media access
lazyboy
2012/10/17 09:09:53
Done.
| |
| 183 // request to the embeddder through this message. | |
| 184 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_RequestMediaAccess, | |
| 185 int /* instance_id */, | |
| 186 int /* request_id */) | |
| 187 | |
| 175 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) | 188 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) |
| 176 // The position and size of the bitmap. | 189 // The position and size of the bitmap. |
| 177 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) | 190 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) |
| 178 | 191 |
| 179 // The scroll offset. Only one of these can be non-zero, and if they are | 192 // The scroll offset. Only one of these can be non-zero, and if they are |
| 180 // both zero, then it means there is no scrolling and the scroll_rect is | 193 // both zero, then it means there is no scrolling and the scroll_rect is |
| 181 // ignored. | 194 // ignored. |
| 182 IPC_STRUCT_MEMBER(int, dx) | 195 IPC_STRUCT_MEMBER(int, dx) |
| 183 IPC_STRUCT_MEMBER(int, dy) | 196 IPC_STRUCT_MEMBER(int, dy) |
| 184 | 197 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 231 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 219 int /* instance_id */, | 232 int /* instance_id */, |
| 220 bool /* accept */) | 233 bool /* accept */) |
| 221 | 234 |
| 222 // The guest has damage it wants to convey to the embedder so that it can | 235 // The guest has damage it wants to convey to the embedder so that it can |
| 223 // update its backing store. | 236 // update its backing store. |
| 224 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 237 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 225 int /* instance_id */, | 238 int /* instance_id */, |
| 226 int /* message_id */, | 239 int /* message_id */, |
| 227 BrowserPluginMsg_UpdateRect_Params) | 240 BrowserPluginMsg_UpdateRect_Params) |
| OLD | NEW |