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

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

Issue 10965048: [BrowserTag] Send dib info with NavigateGuest message, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix OSX (this CL exposes this): manage transport dibs on mac ourselves, instead of letting browser … Created 8 years, 2 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // An ACK to the guest process letting it know that the embedder has handled 52 // An ACK to the guest process letting it know that the embedder has handled
53 // the previous frame and is ready for the next frame. If the guest sent the 53 // the previous frame and is ready for the next frame. If the guest sent the
54 // embedder a bitmap that does not match the size of the BrowserPlugin's 54 // embedder a bitmap that does not match the size of the BrowserPlugin's
55 // container, the BrowserPlugin requests a new size as well. 55 // container, the BrowserPlugin requests a new size as well.
56 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK, 56 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_UpdateRect_ACK,
57 int /* instance_id */, 57 int /* instance_id */,
58 int /* message_id */, 58 int /* message_id */,
59 gfx::Size /* repaint_view_size */) 59 gfx::Size /* repaint_view_size */)
60 60
61 // A BrowserPlugin sends this to the browser process when it wants to navigate
62 // to a given src URL. If a guest WebContents already exists, it will navigate
63 // that WebContents. If not, it will create the WebContents, associate it with
64 // the BrowserPlugin's browser-side BrowserPluginHost as a guest, and navigate
65 // it to the requested URL.
66 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest,
67 int /* instance_id*/,
68 std::string /* src */,
69 gfx::Size /* size */)
70
71 // When a BrowserPlugin has been removed from the embedder's DOM, it informs
72 // the browser process to cleanup the guest.
73 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
74 int /* instance_id */)
75
76 // -----------------------------------------------------------------------------
77 // These messages are from the guest renderer to the browser process
78
79 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) 61 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
80 // A handle to the new buffer to use to transport damage to the 62 // An identifier to the new buffer to use to transport damage to the embedder
81 // embedder renderer process. 63 // renderer process.
82 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id) 64 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id)
65 #if defined(OS_MACOSX)
66 // On OSX, a handle to the new buffer is used to map the transport dib since
67 // we don't let browser manage the dib.
68 IPC_STRUCT_MEMBER(TransportDIB::Handle, damage_buffer_handle)
69 #endif
83 #if defined(OS_WIN) 70 #if defined(OS_WIN)
84 // The size of the damage buffer because this information is not available 71 // The size of the damage buffer because this information is not available
85 // on Windows. 72 // on Windows.
86 IPC_STRUCT_MEMBER(int, damage_buffer_size) 73 IPC_STRUCT_MEMBER(int, damage_buffer_size)
87 #endif 74 #endif
88 // The new width of the plugin container. 75 // The new width of the plugin container.
89 IPC_STRUCT_MEMBER(int, width) 76 IPC_STRUCT_MEMBER(int, width)
90 // The new height of the plugin container. 77 // The new height of the plugin container.
91 IPC_STRUCT_MEMBER(int, height) 78 IPC_STRUCT_MEMBER(int, height)
92 // Indicates whether the embedder is currently waiting on a ACK from the 79 // Indicates whether the embedder is currently waiting on a ACK from the
93 // guest for a previous resize request. 80 // guest for a previous resize request.
94 IPC_STRUCT_MEMBER(bool, resize_pending) 81 IPC_STRUCT_MEMBER(bool, resize_pending)
95 // Indicates the scale factor of the embedder WebView. 82 // Indicates the scale factor of the embedder WebView.
96 IPC_STRUCT_MEMBER(float, scale_factor) 83 IPC_STRUCT_MEMBER(float, scale_factor)
97 IPC_STRUCT_END() 84 IPC_STRUCT_END()
98 85
86 // A BrowserPlugin sends this to BrowserPluginEmbedder (browser process) when it
87 // wants to navigate to a given src URL. If a guest WebContents already exists,
88 // it will navigate that WebContents. If not, it will create the WebContents,
89 // associate it with the BrowserPluginGuest, and navigate it to the requested
90 // URL.
91 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_NavigateGuest,
92 int /* instance_id*/,
93 std::string /* src */,
94 BrowserPluginHostMsg_ResizeGuest_Params /* resize_params */)
95
96 // When a BrowserPlugin has been removed from the embedder's DOM, it informs
97 // the browser process to cleanup the guest.
98 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
99 int /* instance_id */)
100
101 // -----------------------------------------------------------------------------
102 // These messages are from the guest renderer to the browser process
103
99 // A embedder sends this message to the browser when it wants 104 // A embedder sends this message to the browser when it wants
100 // to resize a guest plugin container so that the guest is relaid out 105 // to resize a guest plugin container so that the guest is relaid out
101 // according to the new size. 106 // according to the new size.
102 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, 107 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest,
103 int /* instance_id*/, 108 int /* instance_id*/,
104 BrowserPluginHostMsg_ResizeGuest_Params) 109 BrowserPluginHostMsg_ResizeGuest_Params)
105 110
106 // ----------------------------------------------------------------------------- 111 // -----------------------------------------------------------------------------
107 // These messages are from the browser process to the embedder. 112 // These messages are from the browser process to the embedder.
108 113
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, 163 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus,
159 int /* instance_id */, 164 int /* instance_id */,
160 bool /* reverse */) 165 bool /* reverse */)
161 166
162 // The guest has damage it wants to convey to the embedder so that it can 167 // The guest has damage it wants to convey to the embedder so that it can
163 // update its backing store. 168 // update its backing store.
164 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 169 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
165 int /* instance_id */, 170 int /* instance_id */,
166 int /* message_id */, 171 int /* message_id */,
167 BrowserPluginMsg_UpdateRect_Params) 172 BrowserPluginMsg_UpdateRect_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698