| 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/process.h" | 10 #include "base/process/process.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, | 202 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, |
| 203 int /* browser_plugin_instance_id */, | 203 int /* browser_plugin_instance_id */, |
| 204 content::WebCursor /* cursor */) | 204 content::WebCursor /* cursor */) |
| 205 | 205 |
| 206 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, | 206 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, |
| 207 int /* browser_plugin_instance_id */, | 207 int /* browser_plugin_instance_id */, |
| 208 int /* request_id */, | 208 int /* request_id */, |
| 209 gfx::Rect /* source_rect */, | 209 gfx::Rect /* source_rect */, |
| 210 gfx::Size /* dest_size */) | 210 gfx::Size /* dest_size */) |
| 211 | 211 |
| 212 // Guest renders into an FBO with textures provided by the embedder. | |
| 213 // BrowserPlugin shares mostly the same logic as out-of-process RenderFrames but | |
| 214 // because BrowserPlugins implement custom a second level of routing logic, | |
| 215 // the IPCs need to be annotated with an extra browser_plugin_instance_id. These | |
| 216 // messages provide that extra id. | |
| 217 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_BuffersSwapped, | |
| 218 int /* browser_plugin_instance_id */, | |
| 219 FrameMsg_BuffersSwapped_Params /* params */) | |
| 220 | |
| 221 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, | 212 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, |
| 222 int /* browser_plugin_instance_id */, | 213 int /* browser_plugin_instance_id */, |
| 223 FrameMsg_CompositorFrameSwapped_Params /* params */) | 214 FrameMsg_CompositorFrameSwapped_Params /* params */) |
| 224 | 215 |
| 225 // Forwards a PointerLock Unlock request to the BrowserPlugin. | 216 // Forwards a PointerLock Unlock request to the BrowserPlugin. |
| 226 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, | 217 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, |
| 227 int /* browser_plugin_instance_id */, | 218 int /* browser_plugin_instance_id */, |
| 228 bool /* enable */) | 219 bool /* enable */) |
| 229 | 220 |
| 230 // See comment about BrowserPluginMsg_BuffersSwapped and | |
| 231 // BrowserPluginMsg_CompositorFrameSwapped for how these related | |
| 232 // to the FrameHostMsg variants. | |
| 233 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, | |
| 234 FrameHostMsg_BuffersSwappedACK_Params /* params */) | |
| 235 | |
| 236 // Acknowledge that we presented an ubercomp frame. | 221 // Acknowledge that we presented an ubercomp frame. |
| 237 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, | 222 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, |
| 238 int /* browser_plugin_instance_id */, | 223 int /* browser_plugin_instance_id */, |
| 239 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 224 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| OLD | NEW |