| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 #endif | 101 #endif |
| 102 // The new width of the plugin container. | 102 // The new width of the plugin container. |
| 103 IPC_STRUCT_MEMBER(int, width) | 103 IPC_STRUCT_MEMBER(int, width) |
| 104 // The new height of the plugin container. | 104 // The new height of the plugin container. |
| 105 IPC_STRUCT_MEMBER(int, height) | 105 IPC_STRUCT_MEMBER(int, height) |
| 106 // Indicates whether the embedder is currently waiting on a ACK from the | 106 // Indicates whether the embedder is currently waiting on a ACK from the |
| 107 // guest for a previous resize request. | 107 // guest for a previous resize request. |
| 108 IPC_STRUCT_MEMBER(bool, resize_pending) | 108 IPC_STRUCT_MEMBER(bool, resize_pending) |
| 109 // Indicates the scale factor of the embedder WebView. | 109 // Indicates the scale factor of the embedder WebView. |
| 110 IPC_STRUCT_MEMBER(float, scale_factor) | 110 IPC_STRUCT_MEMBER(float, scale_factor) |
| 111 // Hardware Accelerated Surface Params |
| 112 IPC_STRUCT_MEMBER(int, gpu_process_id) |
| 113 IPC_STRUCT_MEMBER(uint32, client_id) |
| 114 IPC_STRUCT_MEMBER(uint32, context_id) |
| 115 IPC_STRUCT_MEMBER(uint32, texture_id_0) |
| 116 IPC_STRUCT_MEMBER(uint32, texture_id_1) |
| 117 IPC_STRUCT_MEMBER(uint32, sync_point) |
| 111 IPC_STRUCT_END() | 118 IPC_STRUCT_END() |
| 112 | 119 |
| 113 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it | 120 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it |
| 114 // wants to navigate to a given src URL. If a guest WebContents already exists, | 121 // wants to navigate to a given src URL. If a guest WebContents already exists, |
| 115 // it will navigate that WebContents. If not, it will create the WebContents, | 122 // it will navigate that WebContents. If not, it will create the WebContents, |
| 116 // associate it with the BrowserPluginGuest, and navigate it to the requested | 123 // associate it with the BrowserPluginGuest, and navigate it to the requested |
| 117 // URL. | 124 // URL. |
| 118 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest, | 125 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest, |
| 119 int /* instance_id*/, | 126 int /* instance_id*/, |
| 120 std::string /* src */, | 127 std::string /* src */, |
| 121 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */) | 128 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */) |
| 122 | 129 |
| 130 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_BuffersSwappedACK, |
| 131 int /* route_id */, |
| 132 int /* gpu_host_id */, |
| 133 uint32 /* sync_point */) |
| 134 |
| 123 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 135 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
| 124 // the browser process to cleanup the guest. | 136 // the browser process to cleanup the guest. |
| 125 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 137 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
| 126 int /* instance_id */) | 138 int /* instance_id */) |
| 127 | 139 |
| 128 // Tells the guest it has been shown or hidden. | 140 // Tells the guest it has been shown or hidden. |
| 129 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, | 141 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
| 130 int /* instance_id */, | 142 int /* instance_id */, |
| 131 bool /* visible */) | 143 bool /* visible */) |
| 132 | 144 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 272 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 261 int /* instance_id */, | 273 int /* instance_id */, |
| 262 bool /* accept */) | 274 bool /* accept */) |
| 263 | 275 |
| 264 // The guest has damage it wants to convey to the embedder so that it can | 276 // The guest has damage it wants to convey to the embedder so that it can |
| 265 // update its backing store. | 277 // update its backing store. |
| 266 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 278 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 267 int /* instance_id */, | 279 int /* instance_id */, |
| 268 int /* message_id */, | 280 int /* message_id */, |
| 269 BrowserPluginMsg_UpdateRect_Params) | 281 BrowserPluginMsg_UpdateRect_Params) |
| 282 |
| 283 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_BuffersSwapped, |
| 284 int /* instance_id */, |
| 285 uint64 /* surface_handle */, |
| 286 int /* route_id */, |
| 287 int /* gpu_host_id */) |
| 288 |
| 289 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SurfaceResize, |
| 290 int /* instance_id */, |
| 291 gfx::Size /* size */) |
| OLD | NEW |