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

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: Merged with ToT Created 7 years, 11 months 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 IPC_STRUCT_MEMBER(gfx::Size, view_size) 48 IPC_STRUCT_MEMBER(gfx::Size, view_size)
49 // Indicates the scale factor of the embedder WebView. 49 // Indicates the scale factor of the embedder WebView.
50 IPC_STRUCT_MEMBER(float, scale_factor) 50 IPC_STRUCT_MEMBER(float, scale_factor)
51 IPC_STRUCT_END() 51 IPC_STRUCT_END()
52 52
53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) 53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params)
54 IPC_STRUCT_MEMBER(std::string, storage_partition_id) 54 IPC_STRUCT_MEMBER(std::string, storage_partition_id)
55 IPC_STRUCT_MEMBER(bool, persist_storage) 55 IPC_STRUCT_MEMBER(bool, persist_storage)
56 IPC_STRUCT_MEMBER(bool, focused) 56 IPC_STRUCT_MEMBER(bool, focused)
57 IPC_STRUCT_MEMBER(bool, visible) 57 IPC_STRUCT_MEMBER(bool, visible)
58 IPC_STRUCT_MEMBER(std::string, name)
58 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) 59 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params)
59 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, 60 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
60 resize_guest_params) 61 resize_guest_params)
61 IPC_STRUCT_END() 62 IPC_STRUCT_END()
62 63
63 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) 64 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params)
64 // The current URL of the guest. 65 // The current URL of the guest.
65 IPC_STRUCT_MEMBER(GURL, url) 66 IPC_STRUCT_MEMBER(GURL, url)
66 // Indicates whether the navigation was on the top-level frame. 67 // Indicates whether the navigation was on the top-level frame.
67 IPC_STRUCT_MEMBER(bool, is_top_level) 68 IPC_STRUCT_MEMBER(bool, is_top_level)
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 WebKit::WebDragOperationsMask /* operation_mask */, 208 WebKit::WebDragOperationsMask /* operation_mask */,
208 gfx::Point /* plugin_location */) 209 gfx::Point /* plugin_location */)
209 210
210 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser 211 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser
211 // plugin instace id and the coordinates (local to the plugin). 212 // plugin instace id and the coordinates (local to the plugin).
212 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, 213 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse,
213 int /* instance_id */, 214 int /* instance_id */,
214 int /* request_id */, 215 int /* request_id */,
215 gfx::Point /* position */) 216 gfx::Point /* position */)
216 217
218 // Sets the name of the guest window to the provided |name|.
219 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName,
220 int /* instance_id */,
221 std::string /* name */)
222
217 // ----------------------------------------------------------------------------- 223 // -----------------------------------------------------------------------------
218 // These messages are from the guest renderer to the browser process 224 // These messages are from the guest renderer to the browser process
219 225
220 // A embedder sends this message to the browser when it wants 226 // A embedder sends this message to the browser when it wants
221 // to resize a guest plugin container so that the guest is relaid out 227 // to resize a guest plugin container so that the guest is relaid out
222 // according to the new size. 228 // according to the new size.
223 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 229 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
224 int /* instance_id*/, 230 int /* instance_id*/,
225 BrowserPluginHostMsg_ResizeGuest_Params) 231 BrowserPluginHostMsg_ResizeGuest_Params)
226 232
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 BrowserPluginMsg_UpdateRect_Params) 318 BrowserPluginMsg_UpdateRect_Params)
313 319
314 // Requests the renderer to find out if a browser plugin is at position 320 // Requests the renderer to find out if a browser plugin is at position
315 // (|x|, |y|) within the embedder. 321 // (|x|, |y|) within the embedder.
316 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. 322 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse.
317 // The |request_id| uniquely identifies a request from an embedder. 323 // The |request_id| uniquely identifies a request from an embedder.
318 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest, 324 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_PluginAtPositionRequest,
319 int /* request_id */, 325 int /* request_id */,
320 gfx::Point /* position */) 326 gfx::Point /* position */)
321 327
328 // Informs BrowserPlugin of a new name set for the top-level guest frame.
329 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_UpdatedName,
330 int /* instance_id */,
331 std::string /* name */)
332
322 // Guest renders into an FBO with textures provided by the embedder. 333 // Guest renders into an FBO with textures provided by the embedder.
323 // When HW accelerated buffers are swapped in the guest, the message 334 // When HW accelerated buffers are swapped in the guest, the message
324 // is forwarded to the embedder to notify it of a new texture 335 // is forwarded to the embedder to notify it of a new texture
325 // available for compositing. 336 // available for compositing.
326 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, 337 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped,
327 int /* instance_id */, 338 int /* instance_id */,
328 gfx::Size /* size */, 339 gfx::Size /* size */,
329 std::string /* mailbox_name */, 340 std::string /* mailbox_name */,
330 int /* route_id */, 341 int /* route_id */,
331 int /* gpu_host_id */) 342 int /* gpu_host_id */)
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_host_browsertest.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698