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

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

Issue 529203002: BrowserPlugin: Remove dependency upon ViewHostMsg_UpdateRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary browsertest (there's a webview resize test) and IPC Created 6 years, 3 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
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/process.h" 10 #include "base/process/process.h"
(...skipping 19 matching lines...) Expand all
30 30
31 #undef IPC_MESSAGE_EXPORT 31 #undef IPC_MESSAGE_EXPORT
32 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 32 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
33 33
34 #define IPC_MESSAGE_START BrowserPluginMsgStart 34 #define IPC_MESSAGE_START BrowserPluginMsgStart
35 35
36 36
37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast) 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast)
38 38
39 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) 39 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
40 // Indicates whether the parameters have been populated or not.
41 IPC_STRUCT_MEMBER(bool, size_changed)
42 // The new size of guest view. 40 // The new size of guest view.
43 IPC_STRUCT_MEMBER(gfx::Size, view_size) 41 IPC_STRUCT_MEMBER(gfx::Size, view_size)
44 // Indicates the scale factor of the embedder WebView. 42 // Indicates the scale factor of the embedder WebView.
45 IPC_STRUCT_MEMBER(float, scale_factor) 43 IPC_STRUCT_MEMBER(float, scale_factor)
46 // Indicates a request for a full repaint of the page. 44 // Indicates a request for a full repaint of the page.
47 // This is required for switching from compositing to the software 45 // This is required for switching from compositing to the software
48 // rendering path. 46 // rendering path.
49 IPC_STRUCT_MEMBER(bool, repaint) 47 IPC_STRUCT_MEMBER(bool, repaint)
50 IPC_STRUCT_END() 48 IPC_STRUCT_END()
51 49
52 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) 50 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params)
53 IPC_STRUCT_MEMBER(bool, focused) 51 IPC_STRUCT_MEMBER(bool, focused)
54 IPC_STRUCT_MEMBER(bool, visible) 52 IPC_STRUCT_MEMBER(bool, visible)
55 IPC_STRUCT_MEMBER(bool, opaque) 53 IPC_STRUCT_MEMBER(bool, opaque)
56 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, 54 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
57 resize_guest_params) 55 resize_guest_params)
58 IPC_STRUCT_MEMBER(gfx::Point, origin) 56 IPC_STRUCT_MEMBER(gfx::Point, origin)
59 IPC_STRUCT_END() 57 IPC_STRUCT_END()
60 58
61 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
62 // The size of the RenderView when this message was generated. This is
63 // included so the host knows how large the view is from the perspective of
64 // the renderer process. This is necessary in case a resize operation is in
65 // progress. If auto-resize is enabled, this should update the corresponding
66 // view size.
67 IPC_STRUCT_MEMBER(gfx::Size, view_size)
68
69 // Is this UpdateRect an ACK to a resize request?
70 IPC_STRUCT_MEMBER(bool, is_resize_ack)
71 IPC_STRUCT_END()
72
73 // Browser plugin messages 59 // Browser plugin messages
74 60
75 // ----------------------------------------------------------------------------- 61 // -----------------------------------------------------------------------------
76 // These messages are from the embedder to the browser process. 62 // These messages are from the embedder to the browser process.
77 63
78 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an 64 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an
79 // edit command. 65 // edit command.
80 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, 66 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand,
81 int /* browser_plugin_instance_id */, 67 int /* browser_plugin_instance_id */,
82 std::string /* command */) 68 std::string /* command */)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 151
166 // Sends a PointerLock Lock ACK to the BrowserPluginGuest. 152 // Sends a PointerLock Lock ACK to the BrowserPluginGuest.
167 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_LockMouse_ACK, 153 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_LockMouse_ACK,
168 int /* browser_plugin_instance_id */, 154 int /* browser_plugin_instance_id */,
169 bool /* succeeded */) 155 bool /* succeeded */)
170 156
171 // Sends a PointerLock Unlock ACK to the BrowserPluginGuest. 157 // Sends a PointerLock Unlock ACK to the BrowserPluginGuest.
172 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_UnlockMouse_ACK, 158 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_UnlockMouse_ACK,
173 int /* browser_plugin_instance_id */) 159 int /* browser_plugin_instance_id */)
174 160
175 // Sent when plugin's position has changed without UpdateRect. 161 // Sent when plugin's position has changed.
176 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_UpdateGeometry, 162 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_UpdateGeometry,
177 int /* browser_plugin_instance_id */, 163 int /* browser_plugin_instance_id */,
178 gfx::Rect /* view_rect */) 164 gfx::Rect /* view_rect */)
179 165
180 // ----------------------------------------------------------------------------- 166 // -----------------------------------------------------------------------------
181 // These messages are from the guest renderer to the browser process 167 // These messages are from the guest renderer to the browser process
182 168
183 // A embedder sends this message to the browser when it wants 169 // A embedder sends this message to the browser when it wants
184 // to resize a guest plugin container so that the guest is relaid out 170 // to resize a guest plugin container so that the guest is relaid out
185 // according to the new size. 171 // according to the new size.
(...skipping 30 matching lines...) Expand all
216 // plugin in the embedder about it. 202 // plugin in the embedder about it.
217 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 203 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
218 int /* browser_plugin_instance_id */, 204 int /* browser_plugin_instance_id */,
219 bool /* accept */) 205 bool /* accept */)
220 206
221 // Inform the embedder of the cursor the guest wishes to display. 207 // Inform the embedder of the cursor the guest wishes to display.
222 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, 208 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor,
223 int /* browser_plugin_instance_id */, 209 int /* browser_plugin_instance_id */,
224 content::WebCursor /* cursor */) 210 content::WebCursor /* cursor */)
225 211
226 // The guest has damage it wants to convey to the embedder so that it can
227 // update its backing store.
228 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_UpdateRect,
229 int /* browser_plugin_instance_id */,
230 BrowserPluginMsg_UpdateRect_Params)
231
232 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, 212 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface,
233 int /* browser_plugin_instance_id */, 213 int /* browser_plugin_instance_id */,
234 int /* request_id */, 214 int /* request_id */,
235 gfx::Rect /* source_rect */, 215 gfx::Rect /* source_rect */,
236 gfx::Size /* dest_size */) 216 gfx::Size /* dest_size */)
237 217
238 // Guest renders into an FBO with textures provided by the embedder. 218 // Guest renders into an FBO with textures provided by the embedder.
239 // BrowserPlugin shares mostly the same logic as out-of-process RenderFrames but 219 // BrowserPlugin shares mostly the same logic as out-of-process RenderFrames but
240 // because BrowserPlugins implement custom a second level of routing logic, 220 // because BrowserPlugins implement custom a second level of routing logic,
241 // the IPCs need to be annotated with an extra browser_plugin_instance_id. These 221 // the IPCs need to be annotated with an extra browser_plugin_instance_id. These
(...skipping 14 matching lines...) Expand all
256 // See comment about BrowserPluginMsg_BuffersSwapped and 236 // See comment about BrowserPluginMsg_BuffersSwapped and
257 // BrowserPluginMsg_CompositorFrameSwapped for how these related 237 // BrowserPluginMsg_CompositorFrameSwapped for how these related
258 // to the FrameHostMsg variants. 238 // to the FrameHostMsg variants.
259 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, 239 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK,
260 FrameHostMsg_BuffersSwappedACK_Params /* params */) 240 FrameHostMsg_BuffersSwappedACK_Params /* params */)
261 241
262 // Acknowledge that we presented an ubercomp frame. 242 // Acknowledge that we presented an ubercomp frame.
263 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, 243 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK,
264 int /* browser_plugin_instance_id */, 244 int /* browser_plugin_instance_id */,
265 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 245 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698