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

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

Issue 11554030: <webview>: Add name attribute (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests Created 8 years 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 IPC_STRUCT_MEMBER(gfx::Size, view_size) 53 IPC_STRUCT_MEMBER(gfx::Size, view_size)
54 // Indicates the scale factor of the embedder WebView. 54 // Indicates the scale factor of the embedder WebView.
55 IPC_STRUCT_MEMBER(float, scale_factor) 55 IPC_STRUCT_MEMBER(float, scale_factor)
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(std::string, name)
63 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) 64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params)
64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, 65 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
65 resize_guest_params) 66 resize_guest_params)
66 // Hardware Accelerated Surface Params 67 // Hardware Accelerated Surface Params
67 IPC_STRUCT_MEMBER(int, gpu_process_id) 68 IPC_STRUCT_MEMBER(int, gpu_process_id)
68 IPC_STRUCT_MEMBER(uint32, client_id) 69 IPC_STRUCT_MEMBER(uint32, client_id)
69 IPC_STRUCT_MEMBER(uint32, context_id) 70 IPC_STRUCT_MEMBER(uint32, context_id)
70 IPC_STRUCT_MEMBER(uint32, texture_id_0) 71 IPC_STRUCT_MEMBER(uint32, texture_id_0)
71 IPC_STRUCT_MEMBER(uint32, texture_id_1) 72 IPC_STRUCT_MEMBER(uint32, texture_id_1)
72 IPC_STRUCT_MEMBER(uint32, sync_point) 73 IPC_STRUCT_MEMBER(uint32, sync_point)
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 WebKit::WebDragOperationsMask /* operation_mask */, 225 WebKit::WebDragOperationsMask /* operation_mask */,
225 gfx::Point /* plugin_location */) 226 gfx::Point /* plugin_location */)
226 227
227 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser 228 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser
228 // plugin instace id and the coordinates (local to the plugin). 229 // plugin instace id and the coordinates (local to the plugin).
229 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, 230 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse,
230 int /* instance_id */, 231 int /* instance_id */,
231 int /* request_id */, 232 int /* request_id */,
232 gfx::Point /* position */) 233 gfx::Point /* position */)
233 234
235 // Sets the name of the guest window to the provided |name|.
236 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName,
237 int /* instance_id */,
238 std::string /* name */)
239
234 // ----------------------------------------------------------------------------- 240 // -----------------------------------------------------------------------------
235 // These messages are from the guest renderer to the browser process 241 // These messages are from the guest renderer to the browser process
236 242
237 // A embedder sends this message to the browser when it wants 243 // A embedder sends this message to the browser when it wants
238 // to resize a guest plugin container so that the guest is relaid out 244 // to resize a guest plugin container so that the guest is relaid out
239 // according to the new size. 245 // according to the new size.
240 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 246 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
241 int /* instance_id*/, 247 int /* instance_id*/,
242 BrowserPluginHostMsg_ResizeGuest_Params) 248 BrowserPluginHostMsg_ResizeGuest_Params)
243 249
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 BrowserPluginMsg_UpdateRect_Params) 336 BrowserPluginMsg_UpdateRect_Params)
331 337
332 // Requests the renderer to find out if a browser plugin is at position 338 // Requests the renderer to find out if a browser plugin is at position
333 // (|x|, |y|) within the embedder. 339 // (|x|, |y|) within the embedder.
334 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. 340 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse.
335 // The |request_id| uniquely identifies a request from an embedder. 341 // The |request_id| uniquely identifies a request from an embedder.
336 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, 342 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest,
337 int /* request_id */, 343 int /* request_id */,
338 gfx::Point /* position */) 344 gfx::Point /* position */)
339 345
346 // Informs BrowserPlugin of a new name set for the top-level guest frame.
347 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_UpdatedName,
348 int /* instance_id */,
349 std::string /* name */)
350
340 // Signal to the embedder that accelerated compositing was enabled 351 // Signal to the embedder that accelerated compositing was enabled
341 // in the guest renderer. 352 // in the guest renderer.
342 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_AcceleratedCompositingEnabled, 353 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_AcceleratedCompositingEnabled,
343 int /* instance_id */) 354 int /* instance_id */)
344 355
345 // Guest renders into an FBO with textures provided by the embedder. 356 // Guest renders into an FBO with textures provided by the embedder.
346 // When HW accelerated buffers are swapped in the guest, the message 357 // When HW accelerated buffers are swapped in the guest, the message
347 // is forwarded to the embedder to notify it of a new texture 358 // is forwarded to the embedder to notify it of a new texture
348 // available for compositing. 359 // available for compositing.
349 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_BuffersSwapped, 360 IPC_MESSAGE_ROUTED4(BrowserPluginMsg_BuffersSwapped,
350 int /* instance_id */, 361 int /* instance_id */,
351 uint64 /* surface_handle */, 362 uint64 /* surface_handle */,
352 int /* route_id */, 363 int /* route_id */,
353 int /* gpu_host_id */) 364 int /* gpu_host_id */)
354 365
355 // HW accelerated surface was created in the guest, forward this 366 // HW accelerated surface was created in the guest, forward this
356 // information to the embedder to update rendering parameters 367 // information to the embedder to update rendering parameters
357 // in the compositor. 368 // in the compositor.
358 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, 369 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew,
359 int /* instance_id */, 370 int /* instance_id */,
360 gfx::Size /* size */) 371 gfx::Size /* size */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698