Chromium Code Reviews| 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/WebDragStatus.h" | |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | |
| 17 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 18 #include "ui/gfx/size.h" | 20 #include "ui/gfx/size.h" |
| 19 #include "webkit/glue/webcursor.h" | 21 #include "webkit/glue/webcursor.h" |
| 22 #include "webkit/glue/webdropdata.h" | |
| 20 | 23 |
| 21 #undef IPC_MESSAGE_EXPORT | 24 #undef IPC_MESSAGE_EXPORT |
| 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 25 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 23 | 26 |
| 24 #define IPC_MESSAGE_START BrowserPluginMsgStart | 27 #define IPC_MESSAGE_START BrowserPluginMsgStart |
| 25 | 28 |
| 29 IPC_ENUM_TRAITS(WebKit::WebDragStatus) | |
| 30 | |
| 26 // Browser plugin messages | 31 // Browser plugin messages |
| 27 | 32 |
| 28 // ----------------------------------------------------------------------------- | 33 // ----------------------------------------------------------------------------- |
| 29 // These messages are from the embedder to the browser process. | 34 // These messages are from the embedder to the browser process. |
| 30 | 35 |
| 31 // This message is sent to the browser process to create the browser plugin | 36 // This message is sent to the browser process to create the browser plugin |
| 32 // embedder and helper. It is sent once prior to sending the first | 37 // embedder and helper. It is sent once prior to sending the first |
| 33 // BrowserPluginHostMsg_NavigateGuest message. | 38 // BrowserPluginHostMsg_NavigateGuest message. |
| 34 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_CreateGuest, | 39 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_CreateGuest, |
| 35 int /* instance_id */, | 40 int /* instance_id */, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 120 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
| 116 // the browser process to cleanup the guest. | 121 // the browser process to cleanup the guest. |
| 117 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 122 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
| 118 int /* instance_id */) | 123 int /* instance_id */) |
| 119 | 124 |
| 120 // Tells the guest it has been shown or hidden. | 125 // Tells the guest it has been shown or hidden. |
| 121 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, | 126 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
| 122 int /* instance_id */, | 127 int /* instance_id */, |
| 123 bool /* visible */) | 128 bool /* visible */) |
| 124 | 129 |
| 130 // Tells the guest that a drag event happened on the plugin. | |
| 131 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_DragStatusUpdate, | |
| 132 int /* instance_id */, | |
| 133 WebKit::WebDragStatus, | |
|
jam
2012/10/10 20:14:46
nit: see the convention in this file of putting th
sadrul
2012/10/10 20:23:10
Fixed.
| |
| 134 WebDropData, | |
| 135 WebKit::WebDragOperationsMask, | |
| 136 gfx::Point); | |
| 137 | |
| 125 // ----------------------------------------------------------------------------- | 138 // ----------------------------------------------------------------------------- |
| 126 // These messages are from the guest renderer to the browser process | 139 // These messages are from the guest renderer to the browser process |
| 127 | 140 |
| 128 // A embedder sends this message to the browser when it wants | 141 // A embedder sends this message to the browser when it wants |
| 129 // to resize a guest plugin container so that the guest is relaid out | 142 // to resize a guest plugin container so that the guest is relaid out |
| 130 // according to the new size. | 143 // according to the new size. |
| 131 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, | 144 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, |
| 132 int /* instance_id*/, | 145 int /* instance_id*/, |
| 133 BrowserPluginHostMsg_ResizeGuest_Params) | 146 BrowserPluginHostMsg_ResizeGuest_Params) |
| 134 | 147 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 231 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 219 int /* instance_id */, | 232 int /* instance_id */, |
| 220 bool /* accept */) | 233 bool /* accept */) |
| 221 | 234 |
| 222 // The guest has damage it wants to convey to the embedder so that it can | 235 // The guest has damage it wants to convey to the embedder so that it can |
| 223 // update its backing store. | 236 // update its backing store. |
| 224 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 237 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 225 int /* instance_id */, | 238 int /* instance_id */, |
| 226 int /* message_id */, | 239 int /* message_id */, |
| 227 BrowserPluginMsg_UpdateRect_Params) | 240 BrowserPluginMsg_UpdateRect_Params) |
| OLD | NEW |