| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 WebKit::WebDragOperationsMask /* operation_mask */, | 225 WebKit::WebDragOperationsMask /* operation_mask */, |
| 226 gfx::Point /* plugin_location */) | 226 gfx::Point /* plugin_location */) |
| 227 | 227 |
| 228 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser | 228 // Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser |
| 229 // plugin instace id and the coordinates (local to the plugin). | 229 // plugin instace id and the coordinates (local to the plugin). |
| 230 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, | 230 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, |
| 231 int /* instance_id */, | 231 int /* instance_id */, |
| 232 int /* request_id */, | 232 int /* request_id */, |
| 233 gfx::Point /* position */) | 233 gfx::Point /* position */) |
| 234 | 234 |
| 235 // Tells the guest that its request for media permission has been allowed or |
| 236 // denied. |
| 237 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess, |
| 238 int /* instance_id */, |
| 239 int /* request_id */, |
| 240 bool /* allow */) |
| 241 |
| 235 // ----------------------------------------------------------------------------- | 242 // ----------------------------------------------------------------------------- |
| 236 // These messages are from the guest renderer to the browser process | 243 // These messages are from the guest renderer to the browser process |
| 237 | 244 |
| 238 // A embedder sends this message to the browser when it wants | 245 // A embedder sends this message to the browser when it wants |
| 239 // to resize a guest plugin container so that the guest is relaid out | 246 // to resize a guest plugin container so that the guest is relaid out |
| 240 // according to the new size. | 247 // according to the new size. |
| 241 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, | 248 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, |
| 242 int /* instance_id*/, | 249 int /* instance_id*/, |
| 243 BrowserPluginHostMsg_ResizeGuest_Params) | 250 BrowserPluginHostMsg_ResizeGuest_Params) |
| 244 | 251 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_LoadStop, | 294 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_LoadStop, |
| 288 int /* instance_id */) | 295 int /* instance_id */) |
| 289 | 296 |
| 290 // When the guest crashes, the browser process informs the embedder through this | 297 // When the guest crashes, the browser process informs the embedder through this |
| 291 // message. | 298 // message. |
| 292 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_GuestGone, | 299 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_GuestGone, |
| 293 int /* instance_id */, | 300 int /* instance_id */, |
| 294 int /* process_id */, | 301 int /* process_id */, |
| 295 int /* This is really base::TerminationStatus */) | 302 int /* This is really base::TerminationStatus */) |
| 296 | 303 |
| 304 // When the guest requests media access, the browser process forwards this |
| 305 // request to the embeddder through this message. |
| 306 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_RequestMediaAccess, |
| 307 int /* instance_id */, |
| 308 int /* request_id */) |
| 309 |
| 297 // When the user tabs to the end of the tab stops of a guest, the browser | 310 // When the user tabs to the end of the tab stops of a guest, the browser |
| 298 // process informs the embedder to tab out of the browser plugin. | 311 // process informs the embedder to tab out of the browser plugin. |
| 299 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AdvanceFocus, | 312 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AdvanceFocus, |
| 300 int /* instance_id */, | 313 int /* instance_id */, |
| 301 bool /* reverse */) | 314 bool /* reverse */) |
| 302 | 315 |
| 303 // When the guest starts/stops listening to touch events, it needs to notify the | 316 // When the guest starts/stops listening to touch events, it needs to notify the |
| 304 // plugin in the embedder about it. | 317 // plugin in the embedder about it. |
| 305 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 318 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 306 int /* instance_id */, | 319 int /* instance_id */, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 uint64 /* surface_handle */, | 353 uint64 /* surface_handle */, |
| 341 int /* route_id */, | 354 int /* route_id */, |
| 342 int /* gpu_host_id */) | 355 int /* gpu_host_id */) |
| 343 | 356 |
| 344 // HW accelerated surface was created in the guest, forward this | 357 // HW accelerated surface was created in the guest, forward this |
| 345 // information to the embedder to update rendering parameters | 358 // information to the embedder to update rendering parameters |
| 346 // in the compositor. | 359 // in the compositor. |
| 347 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, | 360 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, |
| 348 int /* instance_id */, | 361 int /* instance_id */, |
| 349 gfx::Size /* size */) | 362 gfx::Size /* size */) |
| OLD | NEW |