| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Sends an input event to the guest. | 169 // Sends an input event to the guest. |
| 170 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_HandleInputEvent, | 170 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_HandleInputEvent, |
| 171 int /* instance_id */, | 171 int /* instance_id */, |
| 172 gfx::Rect /* guest_window_rect */, | 172 gfx::Rect /* guest_window_rect */, |
| 173 IPC::WebInputEventPointer /* event */) | 173 IPC::WebInputEventPointer /* event */) |
| 174 | 174 |
| 175 // An ACK to the guest process letting it know that the embedder has handled | 175 // An ACK to the guest process letting it know that the embedder has handled |
| 176 // the previous frame and is ready for the next frame. If the guest sent the | 176 // the previous frame and is ready for the next frame. If the guest sent the |
| 177 // embedder a bitmap that does not match the size of the BrowserPlugin's | 177 // embedder a bitmap that does not match the size of the BrowserPlugin's |
| 178 // container, the BrowserPlugin requests a new size as well. | 178 // container, the BrowserPlugin requests a new size as well. |
| 179 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_UpdateRect_ACK, | 179 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK, |
| 180 int /* instance_id */, | 180 int /* instance_id */, |
| 181 int /* message_id */, | |
| 182 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, | 181 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, |
| 183 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) | 182 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) |
| 184 | 183 |
| 185 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it | 184 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it |
| 186 // wants to navigate to a given src URL. If a guest WebContents already exists, | 185 // wants to navigate to a given src URL. If a guest WebContents already exists, |
| 187 // it will navigate that WebContents. If not, it will create the WebContents, | 186 // it will navigate that WebContents. If not, it will create the WebContents, |
| 188 // associate it with the BrowserPluginGuest, and navigate it to the requested | 187 // associate it with the BrowserPluginGuest, and navigate it to the requested |
| 189 // URL. | 188 // URL. |
| 190 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_NavigateGuest, | 189 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_NavigateGuest, |
| 191 int /* instance_id*/, | 190 int /* instance_id*/, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 int /* instance_id */, | 310 int /* instance_id */, |
| 312 bool /* accept */) | 311 bool /* accept */) |
| 313 | 312 |
| 314 // Inform the embedder of the cursor the guest wishes to display. | 313 // Inform the embedder of the cursor the guest wishes to display. |
| 315 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_SetCursor, | 314 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_SetCursor, |
| 316 int /* instance_id */, | 315 int /* instance_id */, |
| 317 WebCursor /* cursor */) | 316 WebCursor /* cursor */) |
| 318 | 317 |
| 319 // The guest has damage it wants to convey to the embedder so that it can | 318 // The guest has damage it wants to convey to the embedder so that it can |
| 320 // update its backing store. | 319 // update its backing store. |
| 321 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_UpdateRect, | 320 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_UpdateRect, |
| 322 int /* instance_id */, | 321 int /* instance_id */, |
| 323 int /* message_id */, | |
| 324 BrowserPluginMsg_UpdateRect_Params) | 322 BrowserPluginMsg_UpdateRect_Params) |
| 325 | 323 |
| 326 // Requests the renderer to find out if a browser plugin is at position | 324 // Requests the renderer to find out if a browser plugin is at position |
| 327 // (|x|, |y|) within the embedder. | 325 // (|x|, |y|) within the embedder. |
| 328 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. | 326 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. |
| 329 // The |request_id| uniquely identifies a request from an embedder. | 327 // The |request_id| uniquely identifies a request from an embedder. |
| 330 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, | 328 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, |
| 331 int /* request_id */, | 329 int /* request_id */, |
| 332 gfx::Point /* position */) | 330 gfx::Point /* position */) |
| 333 | 331 |
| 334 // Guest renders into an FBO with textures provided by the embedder. | 332 // Guest renders into an FBO with textures provided by the embedder. |
| 335 // When HW accelerated buffers are swapped in the guest, the message | 333 // When HW accelerated buffers are swapped in the guest, the message |
| 336 // is forwarded to the embedder to notify it of a new texture | 334 // is forwarded to the embedder to notify it of a new texture |
| 337 // available for compositing. | 335 // available for compositing. |
| 338 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, | 336 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, |
| 339 int /* instance_id */, | 337 int /* instance_id */, |
| 340 gfx::Size /* size */, | 338 gfx::Size /* size */, |
| 341 uint64 /* surface_handle */, | 339 uint64 /* surface_handle */, |
| 342 int /* route_id */, | 340 int /* route_id */, |
| 343 int /* gpu_host_id */) | 341 int /* gpu_host_id */) |
| 344 | 342 |
| 345 // HW accelerated surface was created in the guest, forward this | 343 // HW accelerated surface was created in the guest, forward this |
| 346 // information to the embedder to update rendering parameters | 344 // information to the embedder to update rendering parameters |
| 347 // in the compositor. | 345 // in the compositor. |
| 348 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_AcceleratedSurfaceNew, | 346 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_AcceleratedSurfaceNew, |
| 349 int /* instance_id */, | 347 int /* instance_id */, |
| 350 uint64 /* surface_handle */, | 348 uint64 /* surface_handle */, |
| 351 std::string /* mailbox_name */) | 349 std::string /* mailbox_name */) |
| OLD | NEW |