| OLD | NEW |
| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 WebKit::WebDragOperationsMask /* operation_mask */, | 224 WebKit::WebDragOperationsMask /* operation_mask */, |
| 225 gfx::Point /* plugin_location */) | 225 gfx::Point /* plugin_location */) |
| 226 | 226 |
| 227 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser | 227 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser |
| 228 // plugin instace id and the coordinates (local to the plugin). | 228 // plugin instace id and the coordinates (local to the plugin). |
| 229 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, | 229 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, |
| 230 int /* instance_id */, | 230 int /* instance_id */, |
| 231 int /* request_id */, | 231 int /* request_id */, |
| 232 gfx::Point /* position */) | 232 gfx::Point /* position */) |
| 233 | 233 |
| 234 // Tells the guest that its request for media permission has been allowed or |
| 235 // denied. |
| 236 // Note that |allow| = true does not readily mean that the guest will be granted |
| 237 // permission, since a security check in the embedder will follow. The guest |
| 238 // will be granted permission only if its embedder also has access to media. |
| 239 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess, |
| 240 int /* instance_id */, |
| 241 int /* request_id */, |
| 242 bool /* allow */) |
| 243 |
| 234 // ----------------------------------------------------------------------------- | 244 // ----------------------------------------------------------------------------- |
| 235 // These messages are from the guest renderer to the browser process | 245 // These messages are from the guest renderer to the browser process |
| 236 | 246 |
| 237 // A embedder sends this message to the browser when it wants | 247 // A embedder sends this message to the browser when it wants |
| 238 // to resize a guest plugin container so that the guest is relaid out | 248 // to resize a guest plugin container so that the guest is relaid out |
| 239 // according to the new size. | 249 // according to the new size. |
| 240 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, | 250 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, |
| 241 int /* instance_id*/, | 251 int /* instance_id*/, |
| 242 BrowserPluginHostMsg_ResizeGuest_Params) | 252 BrowserPluginHostMsg_ResizeGuest_Params) |
| 243 | 253 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestUnresponsive, | 308 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestUnresponsive, |
| 299 int /* instance_id */, | 309 int /* instance_id */, |
| 300 int /* process_id */) | 310 int /* process_id */) |
| 301 | 311 |
| 302 // When the guest begins responding again, the browser process informs the | 312 // When the guest begins responding again, the browser process informs the |
| 303 // embedder through this message. | 313 // embedder through this message. |
| 304 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestResponsive, | 314 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestResponsive, |
| 305 int /* instance_id */, | 315 int /* instance_id */, |
| 306 int /* process_id */) | 316 int /* process_id */) |
| 307 | 317 |
| 318 // When the guest requests media access, the browser process forwards this |
| 319 // request to the embeddder through this message. |
| 320 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_RequestMediaAccess, |
| 321 int /* instance_id */, |
| 322 int /* request_id */, |
| 323 GURL /* security_origin */) |
| 324 |
| 308 // When the user tabs to the end of the tab stops of a guest, the browser | 325 // When the user tabs to the end of the tab stops of a guest, the browser |
| 309 // process informs the embedder to tab out of the browser plugin. | 326 // process informs the embedder to tab out of the browser plugin. |
| 310 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AdvanceFocus, | 327 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AdvanceFocus, |
| 311 int /* instance_id */, | 328 int /* instance_id */, |
| 312 bool /* reverse */) | 329 bool /* reverse */) |
| 313 | 330 |
| 314 // When the guest starts/stops listening to touch events, it needs to notify the | 331 // When the guest starts/stops listening to touch events, it needs to notify the |
| 315 // plugin in the embedder about it. | 332 // plugin in the embedder about it. |
| 316 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 333 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 317 int /* instance_id */, | 334 int /* instance_id */, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 uint64 /* surface_handle */, | 368 uint64 /* surface_handle */, |
| 352 int /* route_id */, | 369 int /* route_id */, |
| 353 int /* gpu_host_id */) | 370 int /* gpu_host_id */) |
| 354 | 371 |
| 355 // HW accelerated surface was created in the guest, forward this | 372 // HW accelerated surface was created in the guest, forward this |
| 356 // information to the embedder to update rendering parameters | 373 // information to the embedder to update rendering parameters |
| 357 // in the compositor. | 374 // in the compositor. |
| 358 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, | 375 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, |
| 359 int /* instance_id */, | 376 int /* instance_id */, |
| 360 gfx::Size /* size */) | 377 gfx::Size /* size */) |
| OLD | NEW |