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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 IPC_STRUCT_END() | 56 IPC_STRUCT_END() |
57 | 57 |
58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) | 58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) |
59 IPC_STRUCT_MEMBER(std::string, storage_partition_id) | 59 IPC_STRUCT_MEMBER(std::string, storage_partition_id) |
60 IPC_STRUCT_MEMBER(bool, persist_storage) | 60 IPC_STRUCT_MEMBER(bool, persist_storage) |
61 IPC_STRUCT_MEMBER(bool, focused) | 61 IPC_STRUCT_MEMBER(bool, focused) |
62 IPC_STRUCT_MEMBER(bool, visible) | 62 IPC_STRUCT_MEMBER(bool, visible) |
63 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) | 63 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) |
64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, | 64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, |
65 resize_guest_params) | 65 resize_guest_params) |
| 66 // Hardware Accelerated Surface Params |
| 67 IPC_STRUCT_MEMBER(int, gpu_process_id) |
| 68 IPC_STRUCT_MEMBER(uint32, client_id) |
| 69 IPC_STRUCT_MEMBER(uint32, context_id) |
| 70 IPC_STRUCT_MEMBER(uint32, texture_id_0) |
| 71 IPC_STRUCT_MEMBER(uint32, texture_id_1) |
| 72 IPC_STRUCT_MEMBER(uint32, sync_point) |
66 IPC_STRUCT_END() | 73 IPC_STRUCT_END() |
67 | 74 |
68 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) | 75 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) |
69 // The current URL of the guest. | 76 // The current URL of the guest. |
70 IPC_STRUCT_MEMBER(GURL, url) | 77 IPC_STRUCT_MEMBER(GURL, url) |
71 // Indicates whether the navigation was on the top-level frame. | 78 // Indicates whether the navigation was on the top-level frame. |
72 IPC_STRUCT_MEMBER(bool, is_top_level) | 79 IPC_STRUCT_MEMBER(bool, is_top_level) |
73 // Chrome's process ID for the guest. | 80 // Chrome's process ID for the guest. |
74 IPC_STRUCT_MEMBER(int, process_id) | 81 IPC_STRUCT_MEMBER(int, process_id) |
75 // The index of the current navigation entry after this navigation was | 82 // The index of the current navigation entry after this navigation was |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 192 |
186 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it | 193 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it |
187 // wants to navigate to a given src URL. If a guest WebContents already exists, | 194 // wants to navigate to a given src URL. If a guest WebContents already exists, |
188 // it will navigate that WebContents. If not, it will create the WebContents, | 195 // it will navigate that WebContents. If not, it will create the WebContents, |
189 // associate it with the BrowserPluginGuest, and navigate it to the requested | 196 // associate it with the BrowserPluginGuest, and navigate it to the requested |
190 // URL. | 197 // URL. |
191 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_NavigateGuest, | 198 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_NavigateGuest, |
192 int /* instance_id*/, | 199 int /* instance_id*/, |
193 std::string /* src */) | 200 std::string /* src */) |
194 | 201 |
| 202 // Acknowledge that we presented a HW buffer and provide a sync point |
| 203 // to specify the location in the command stream when the compositor |
| 204 // is no longer using it. |
| 205 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_BuffersSwappedACK, |
| 206 int /* route_id */, |
| 207 int /* gpu_host_id */, |
| 208 uint32 /* sync_point */) |
| 209 |
195 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 210 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
196 // the browser process to cleanup the guest. | 211 // the browser process to cleanup the guest. |
197 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 212 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
198 int /* instance_id */) | 213 int /* instance_id */) |
199 | 214 |
200 // Tells the guest it has been shown or hidden. | 215 // Tells the guest it has been shown or hidden. |
201 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, | 216 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
202 int /* instance_id */, | 217 int /* instance_id */, |
203 bool /* visible */) | 218 bool /* visible */) |
204 | 219 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 int /* message_id */, | 318 int /* message_id */, |
304 BrowserPluginMsg_UpdateRect_Params) | 319 BrowserPluginMsg_UpdateRect_Params) |
305 | 320 |
306 // Requests the renderer to find out if a browser plugin is at position | 321 // Requests the renderer to find out if a browser plugin is at position |
307 // (|x|, |y|) within the embedder. | 322 // (|x|, |y|) within the embedder. |
308 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. | 323 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. |
309 // The |request_id| uniquely identifies a request from an embedder. | 324 // The |request_id| uniquely identifies a request from an embedder. |
310 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, | 325 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, |
311 int /* request_id */, | 326 int /* request_id */, |
312 gfx::Point /* position */) | 327 gfx::Point /* position */) |
| 328 |
| 329 // Signal to the embedder that accelerated compositing was enabled |
| 330 // in the guest renderer. |
| 331 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_AcceleratedCompositingEnabled, |
| 332 int /* instance_id */) |
| 333 |
| 334 // Guest renders into an FBO with textures provided by the embedder. |
| 335 // When HW accelerated buffers are swapped in the guest, the message |
| 336 // is forwarded to the embedder to notify it of a new texture |
| 337 // available for compositing. |
| 338 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_BuffersSwapped, |
| 339 int /* instance_id */, |
| 340 uint64 /* surface_handle */, |
| 341 int /* route_id */, |
| 342 int /* gpu_host_id */) |
| 343 |
| 344 // HW accelerated surface was created in the guest, forward this |
| 345 // information to the embedder to update rendering parameters |
| 346 // in the compositor. |
| 347 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, |
| 348 int /* instance_id */, |
| 349 gfx::Size /* size */) |
OLD | NEW |