Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: content/common/browser_plugin_messages.h

Issue 11364133: Messages needed for webview compositor communication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reduced scope, fixed comments. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #endif 61 #endif
62 // The new width of the plugin container. 62 // The new width of the plugin container.
63 IPC_STRUCT_MEMBER(int, width) 63 IPC_STRUCT_MEMBER(int, width)
64 // The new height of the plugin container. 64 // The new height of the plugin container.
65 IPC_STRUCT_MEMBER(int, height) 65 IPC_STRUCT_MEMBER(int, height)
66 // Indicates whether the embedder is currently waiting on a ACK from the 66 // Indicates whether the embedder is currently waiting on a ACK from the
67 // guest for a previous resize request. 67 // guest for a previous resize request.
68 IPC_STRUCT_MEMBER(bool, resize_pending) 68 IPC_STRUCT_MEMBER(bool, resize_pending)
69 // Indicates the scale factor of the embedder WebView. 69 // Indicates the scale factor of the embedder WebView.
70 IPC_STRUCT_MEMBER(float, scale_factor) 70 IPC_STRUCT_MEMBER(float, scale_factor)
71 // Hardware Accelerated Surface Params.
72 IPC_STRUCT_MEMBER(int, gpu_process_id)
73 IPC_STRUCT_MEMBER(uint32, client_id)
74 IPC_STRUCT_MEMBER(uint32, context_id)
75 IPC_STRUCT_MEMBER(uint32, texture_id_0)
76 IPC_STRUCT_MEMBER(uint32, texture_id_1)
77 IPC_STRUCT_MEMBER(uint32, sync_point)
71 IPC_STRUCT_END() 78 IPC_STRUCT_END()
72 79
73 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) 80 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params)
74 // The current URL of the guest. 81 // The current URL of the guest.
75 IPC_STRUCT_MEMBER(GURL, url) 82 IPC_STRUCT_MEMBER(GURL, url)
76 // Indicates whether the navigation was on the top-level frame. 83 // Indicates whether the navigation was on the top-level frame.
77 IPC_STRUCT_MEMBER(bool, is_top_level) 84 IPC_STRUCT_MEMBER(bool, is_top_level)
78 // Chrome's process ID for the guest. 85 // Chrome's process ID for the guest.
79 IPC_STRUCT_MEMBER(int, process_id) 86 IPC_STRUCT_MEMBER(int, process_id)
80 // The index of the current navigation entry after this navigation was 87 // The index of the current navigation entry after this navigation was
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it 189 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it
183 // wants to navigate to a given src URL. If a guest WebContents already exists, 190 // wants to navigate to a given src URL. If a guest WebContents already exists,
184 // it will navigate that WebContents. If not, it will create the WebContents, 191 // it will navigate that WebContents. If not, it will create the WebContents,
185 // associate it with the BrowserPluginGuest, and navigate it to the requested 192 // associate it with the BrowserPluginGuest, and navigate it to the requested
186 // URL. 193 // URL.
187 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest, 194 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest,
188 int /* instance_id*/, 195 int /* instance_id*/,
189 std::string /* src */, 196 std::string /* src */,
190 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */) 197 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */)
191 198
199 // Acknowledge that we presented a HW buffer.
200 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_BuffersSwappedACK,
201 int /* route_id */,
202 int /* gpu_host_id */,
203 uint32 /* sync_point */)
204
192 // When a BrowserPlugin has been removed from the embedder's DOM, it informs 205 // When a BrowserPlugin has been removed from the embedder's DOM, it informs
193 // the browser process to cleanup the guest. 206 // the browser process to cleanup the guest.
194 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, 207 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
195 int /* instance_id */) 208 int /* instance_id */)
196 209
197 // Tells the guest it has been shown or hidden. 210 // Tells the guest it has been shown or hidden.
198 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, 211 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility,
199 int /* instance_id */, 212 int /* instance_id */,
200 bool /* visible */) 213 bool /* visible */)
201 214
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 293 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
281 int /* instance_id */, 294 int /* instance_id */,
282 bool /* accept */) 295 bool /* accept */)
283 296
284 // The guest has damage it wants to convey to the embedder so that it can 297 // The guest has damage it wants to convey to the embedder so that it can
285 // update its backing store. 298 // update its backing store.
286 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 299 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
287 int /* instance_id */, 300 int /* instance_id */,
288 int /* message_id */, 301 int /* message_id */,
289 BrowserPluginMsg_UpdateRect_Params) 302 BrowserPluginMsg_UpdateRect_Params)
303
304 // f accelerated buffers were swapped in the guest, forward this
rjkroege 2012/11/08 15:08:50 If? And more explanation for what these messages d
alexst (slow to review) 2012/11/08 18:12:17 it was actually ctrl + f to find something. Update
305 // information to the embedder.
306 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_BuffersSwapped,
307 int /* instance_id */,
308 uint64 /* surface_handle */,
309 int /* route_id */,
310 int /* gpu_host_id */)
311
312 // HW accelerated surface was resized in the guest, forward this
313 // information to the embedder.
314 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SurfaceResize,
315 int /* instance_id */,
316 gfx::Size /* size */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698