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

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

Issue 1169983006: Convert BrowserPlugin to render using cc::Surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test to always call UpdateGuestSizeIfNecessary(). Created 5 years, 6 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"
11 #include "cc/surfaces/surface.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "content/common/content_param_traits.h" 13 #include "content/common/content_param_traits.h"
13 #include "content/common/cursors/webcursor.h" 14 #include "content/common/cursors/webcursor.h"
14 #include "content/common/edit_command.h" 15 #include "content/common/edit_command.h"
15 #include "content/common/frame_param_macros.h" 16 #include "content/common/frame_param_macros.h"
16 #include "content/public/common/common_param_traits.h" 17 #include "content/public/common/common_param_traits.h"
17 #include "content/public/common/drop_data.h" 18 #include "content/public/common/drop_data.h"
18 #include "ipc/ipc_channel_handle.h" 19 #include "ipc/ipc_channel_handle.h"
19 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
20 #include "ipc/ipc_message_utils.h" 21 #include "ipc/ipc_message_utils.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 // Sends a PointerLock Unlock ACK to the BrowserPluginGuest. 147 // Sends a PointerLock Unlock ACK to the BrowserPluginGuest.
147 IPC_MESSAGE_CONTROL1(BrowserPluginHostMsg_UnlockMouse_ACK, 148 IPC_MESSAGE_CONTROL1(BrowserPluginHostMsg_UnlockMouse_ACK,
148 int /* browser_plugin_instance_id */) 149 int /* browser_plugin_instance_id */)
149 150
150 // Sent when plugin's position has changed. 151 // Sent when plugin's position has changed.
151 IPC_MESSAGE_CONTROL2(BrowserPluginHostMsg_UpdateGeometry, 152 IPC_MESSAGE_CONTROL2(BrowserPluginHostMsg_UpdateGeometry,
152 int /* browser_plugin_instance_id */, 153 int /* browser_plugin_instance_id */,
153 gfx::Rect /* view_rect */) 154 gfx::Rect /* view_rect */)
154 155
156 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SatisfySequence,
157 int /* browser_plugin_instance_id */,
158 cc::SurfaceSequence /* sequence */)
159
160 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_RequireSequence,
161 int /* browser_plugin_instance_id */,
162 cc::SurfaceId /* surface_id */,
163 cc::SurfaceSequence /* sequence */)
164
155 // ----------------------------------------------------------------------------- 165 // -----------------------------------------------------------------------------
156 // These messages are from the browser process to the embedder. 166 // These messages are from the browser process to the embedder.
157 167
158 // When the guest crashes, the browser process informs the embedder through this 168 // When the guest crashes, the browser process informs the embedder through this
159 // message. 169 // message.
160 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestGone, 170 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestGone,
161 int /* browser_plugin_instance_id */) 171 int /* browser_plugin_instance_id */)
162 172
163 // When the user tabs to the end of the tab stops of a guest, the browser 173 // When the user tabs to the end of the tab stops of a guest, the browser
164 // process informs the embedder to tab out of the browser plugin. 174 // process informs the embedder to tab out of the browser plugin.
(...skipping 14 matching lines...) Expand all
179 189
180 // Inform the embedder of the cursor the guest wishes to display. 190 // Inform the embedder of the cursor the guest wishes to display.
181 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, 191 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor,
182 int /* browser_plugin_instance_id */, 192 int /* browser_plugin_instance_id */,
183 content::WebCursor /* cursor */) 193 content::WebCursor /* cursor */)
184 194
185 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, 195 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped,
186 int /* browser_plugin_instance_id */, 196 int /* browser_plugin_instance_id */,
187 FrameMsg_CompositorFrameSwapped_Params /* params */) 197 FrameMsg_CompositorFrameSwapped_Params /* params */)
188 198
199 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_SetChildFrameSurface,
200 int /* browser_plugin_instance_id */,
201 cc::SurfaceId /* surface_id */,
202 gfx::Size /* frame_size */,
203 float /* scale_factor */,
204 cc::SurfaceSequence /* sequence */)
205
189 // Forwards a PointerLock Unlock request to the BrowserPlugin. 206 // Forwards a PointerLock Unlock request to the BrowserPlugin.
190 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, 207 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock,
191 int /* browser_plugin_instance_id */, 208 int /* browser_plugin_instance_id */,
192 bool /* enable */) 209 bool /* enable */)
193 210
194 // Sends text to be displayed in tooltip. 211 // Sends text to be displayed in tooltip.
195 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetTooltipText, 212 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetTooltipText,
196 int /* browser_plugin_instance_id */, 213 int /* browser_plugin_instance_id */,
197 base::string16 /* tooltip_text */) 214 base::string16 /* tooltip_text */)
198 215
199 // Acknowledge that we presented an ubercomp frame. 216 // Acknowledge that we presented an ubercomp frame.
200 IPC_MESSAGE_CONTROL2(BrowserPluginHostMsg_CompositorFrameSwappedACK, 217 IPC_MESSAGE_CONTROL2(BrowserPluginHostMsg_CompositorFrameSwappedACK,
201 int /* browser_plugin_instance_id */, 218 int /* browser_plugin_instance_id */,
202 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 219 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest_unittest.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698