| 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/process.h" | 10 #include "base/process/process.h" |
| 11 #include "base/values.h" | |
| 12 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 13 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
| 14 #include "content/common/cursors/webcursor.h" | 13 #include "content/common/cursors/webcursor.h" |
| 15 #include "content/common/edit_command.h" | 14 #include "content/common/edit_command.h" |
| 16 #include "content/common/frame_param_macros.h" | 15 #include "content/common/frame_param_macros.h" |
| 17 #include "content/public/common/common_param_traits.h" | 16 #include "content/public/common/common_param_traits.h" |
| 18 #include "content/public/common/drop_data.h" | 17 #include "content/public/common/drop_data.h" |
| 19 #include "ipc/ipc_channel_handle.h" | 18 #include "ipc/ipc_channel_handle.h" |
| 20 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 21 #include "ipc/ipc_message_utils.h" | 20 #include "ipc/ipc_message_utils.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 BrowserPluginHostMsg_SetAutoSize, | 127 BrowserPluginHostMsg_SetAutoSize, |
| 129 int /* instance_id */, | 128 int /* instance_id */, |
| 130 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, | 129 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, |
| 131 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) | 130 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) |
| 132 | 131 |
| 133 // This message is sent to the browser process to indicate that a BrowserPlugin | 132 // This message is sent to the browser process to indicate that a BrowserPlugin |
| 134 // has taken ownership of the lifetime of the guest of the given |instance_id|. | 133 // has taken ownership of the lifetime of the guest of the given |instance_id|. |
| 135 // |params| is the state of the BrowserPlugin taking ownership of | 134 // |params| is the state of the BrowserPlugin taking ownership of |
| 136 // the guest. If a guest doesn't already exist with the given |instance_id|, | 135 // the guest. If a guest doesn't already exist with the given |instance_id|, |
| 137 // a new one will be created. | 136 // a new one will be created. |
| 138 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_Attach, | 137 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_Attach, |
| 139 int /* instance_id */, | 138 int /* instance_id */, |
| 140 BrowserPluginHostMsg_Attach_Params /* params */, | 139 BrowserPluginHostMsg_Attach_Params /* params */) |
| 141 base::DictionaryValue /* extra_params */) | |
| 142 | 140 |
| 143 // Tells the guest to focus or defocus itself. | 141 // Tells the guest to focus or defocus itself. |
| 144 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, | 142 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetFocus, |
| 145 int /* instance_id */, | 143 int /* instance_id */, |
| 146 bool /* enable */) | 144 bool /* enable */) |
| 147 | 145 |
| 148 // Sends an input event to the guest. | 146 // Sends an input event to the guest. |
| 149 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_HandleInputEvent, | 147 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_HandleInputEvent, |
| 150 int /* instance_id */, | 148 int /* instance_id */, |
| 151 gfx::Rect /* guest_window_rect */, | 149 gfx::Rect /* guest_window_rect */, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // according to the new size. | 204 // according to the new size. |
| 207 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, | 205 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, |
| 208 int /* instance_id*/, | 206 int /* instance_id*/, |
| 209 BrowserPluginHostMsg_ResizeGuest_Params) | 207 BrowserPluginHostMsg_ResizeGuest_Params) |
| 210 | 208 |
| 211 // ----------------------------------------------------------------------------- | 209 // ----------------------------------------------------------------------------- |
| 212 // These messages are from the browser process to the embedder. | 210 // These messages are from the browser process to the embedder. |
| 213 | 211 |
| 214 // This message is sent in response to a completed attachment of a guest | 212 // This message is sent in response to a completed attachment of a guest |
| 215 // to a BrowserPlugin. | 213 // to a BrowserPlugin. |
| 216 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_Attach_ACK, int /* instance_id */) | 214 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_Attach_ACK, |
| 215 int /* browser_plugin_instance_id */, |
| 216 int /* instance_id */) |
| 217 | 217 |
| 218 // Once the swapped out guest RenderView has been created in the embedder render | 218 // Once the swapped out guest RenderView has been created in the embedder render |
| 219 // process, the browser process informs the embedder of its routing ID. | 219 // process, the browser process informs the embedder of its routing ID. |
| 220 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, | 220 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, |
| 221 int /* instance_id */, | 221 int /* instance_id */, |
| 222 int /* source_routing_id */) | 222 int /* source_routing_id */) |
| 223 | 223 |
| 224 // When the guest crashes, the browser process informs the embedder through this | 224 // When the guest crashes, the browser process informs the embedder through this |
| 225 // message. | 225 // message. |
| 226 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestGone, | 226 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestGone, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // See comment about BrowserPluginMsg_BuffersSwapped and | 276 // See comment about BrowserPluginMsg_BuffersSwapped and |
| 277 // BrowserPluginMsg_CompositorFrameSwapped for how these related | 277 // BrowserPluginMsg_CompositorFrameSwapped for how these related |
| 278 // to the FrameHostMsg variants. | 278 // to the FrameHostMsg variants. |
| 279 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, | 279 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, |
| 280 FrameHostMsg_BuffersSwappedACK_Params /* params */) | 280 FrameHostMsg_BuffersSwappedACK_Params /* params */) |
| 281 | 281 |
| 282 // Acknowledge that we presented an ubercomp frame. | 282 // Acknowledge that we presented an ubercomp frame. |
| 283 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, | 283 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, |
| 284 int /* instance_id */, | 284 int /* instance_id */, |
| 285 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 285 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| OLD | NEW |