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

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

Issue 11093080: <webview>: First stab at implementing media permission request for guests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reup patch, with new style event handling + fix tests. Created 8 years, 1 month 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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/content_param_traits.h" 12 #include "content/common/content_param_traits.h"
13 #include "content/public/common/common_param_traits.h" 13 #include "content/public/common/common_param_traits.h"
14 #include "ipc/ipc_channel_handle.h" 14 #include "ipc/ipc_channel_handle.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "ipc/ipc_message_utils.h" 16 #include "ipc/ipc_message_utils.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
19 #include "ui/gfx/point.h" 19 #include "ui/gfx/point.h"
20 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 #include "ui/gfx/size.h" 21 #include "ui/gfx/size.h"
22 #include "webkit/glue/webcursor.h" 22 #include "webkit/glue/webcursor.h"
23 #include "webkit/glue/webdropdata.h" 23 #include "webkit/glue/webdropdata.h"
24 24
25 #undef IPC_MESSAGE_EXPORT 25 #undef IPC_MESSAGE_EXPORT
26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
27 27
28 #define IPC_MESSAGE_START BrowserPluginMsgStart 28 #define IPC_MESSAGE_START BrowserPluginMsgStart
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 WebKit::WebDragOperationsMask /* operation_mask */, 205 WebKit::WebDragOperationsMask /* operation_mask */,
206 gfx::Point /* plugin_location */) 206 gfx::Point /* plugin_location */)
207 207
208 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser 208 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser
209 // plugin instace id and the coordinates (local to the plugin). 209 // plugin instace id and the coordinates (local to the plugin).
210 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, 210 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse,
211 int /* instance_id */, 211 int /* instance_id */,
212 int /* request_id */, 212 int /* request_id */,
213 gfx::Point /* position */) 213 gfx::Point /* position */)
214 214
215 // Tells the guest that its request for media permission has been allowed or
216 // denied.
217 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess,
218 int /* instance_id */,
219 int /* request_id */,
220 bool /* allow */)
221
215 // ----------------------------------------------------------------------------- 222 // -----------------------------------------------------------------------------
216 // These messages are from the guest renderer to the browser process 223 // These messages are from the guest renderer to the browser process
217 224
218 // A embedder sends this message to the browser when it wants 225 // A embedder sends this message to the browser when it wants
219 // to resize a guest plugin container so that the guest is relaid out 226 // to resize a guest plugin container so that the guest is relaid out
220 // according to the new size. 227 // according to the new size.
221 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, 228 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest,
222 int /* instance_id*/, 229 int /* instance_id*/,
223 BrowserPluginHostMsg_ResizeGuest_Params) 230 BrowserPluginHostMsg_ResizeGuest_Params)
224 231
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_LoadStop, 274 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_LoadStop,
268 int /* instance_id */) 275 int /* instance_id */)
269 276
270 // When the guest crashes, the browser process informs the embedder through this 277 // When the guest crashes, the browser process informs the embedder through this
271 // message. 278 // message.
272 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_GuestGone, 279 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_GuestGone,
273 int /* instance_id */, 280 int /* instance_id */,
274 int /* process_id */, 281 int /* process_id */,
275 int /* This is really base::TerminationStatus */) 282 int /* This is really base::TerminationStatus */)
276 283
284 // When the guest requests media access, the browser process forwards this
285 // request to the embeddder through this message.
286 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_RequestMediaAccess,
287 int /* instance_id */,
288 int /* request_id */)
289
277 // When the user tabs to the end of the tab stops of a guest, the browser 290 // When the user tabs to the end of the tab stops of a guest, the browser
278 // process informs the embedder to tab out of the browser plugin. 291 // process informs the embedder to tab out of the browser plugin.
279 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, 292 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus,
280 int /* instance_id */, 293 int /* instance_id */,
281 bool /* reverse */) 294 bool /* reverse */)
282 295
283 // When the guest starts/stops listening to touch events, it needs to notify the 296 // When the guest starts/stops listening to touch events, it needs to notify the
284 // plugin in the embedder about it. 297 // plugin in the embedder about it.
285 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 298 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
286 int /* instance_id */, 299 int /* instance_id */,
(...skipping 12 matching lines...) Expand all
299 BrowserPluginMsg_UpdateRect_Params) 312 BrowserPluginMsg_UpdateRect_Params)
300 313
301 // Requests the renderer to find out if a browser plugin is at position 314 // Requests the renderer to find out if a browser plugin is at position
302 // (|x|, |y|) within the embedder. 315 // (|x|, |y|) within the embedder.
303 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse. 316 // The response message is BrowserPluginHostMsg_PluginAtPositionResponse.
304 // The |request_id| uniquely identifies a request from an embedder. 317 // The |request_id| uniquely identifies a request from an embedder.
305 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_PluginAtPositionRequest, 318 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_PluginAtPositionRequest,
306 int /* source_routing_id */, 319 int /* source_routing_id */,
307 int /* request_id */, 320 int /* request_id */,
308 gfx::Point /* position */) 321 gfx::Point /* position */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698