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

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

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

Powered by Google App Engine
This is Rietveld 408576698