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

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

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 6 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
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/common/drag_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // IPC messages for drag and drop. 5 // IPC messages for drag and drop.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <vector>
9
8 #include "content/common/drag_event_source_info.h" 10 #include "content/common/drag_event_source_info.h"
9 #include "content/public/common/drop_data.h" 11 #include "content/public/common/drop_data.h"
10 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
11 #include "third_party/WebKit/public/platform/WebDragOperation.h" 13 #include "third_party/WebKit/public/platform/WebDragOperation.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "ui/gfx/geometry/point.h" 15 #include "ui/gfx/geometry/point.h"
14 #include "ui/gfx/geometry/vector2d.h" 16 #include "ui/gfx/geometry/vector2d.h"
15 17
16 #define IPC_MESSAGE_START DragMsgStart 18 #define IPC_MESSAGE_START DragMsgStart
17 19
18 // Messages sent from the browser to the renderer. 20 // Messages sent from the browser to the renderer.
19 21
20 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter, 22 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter,
21 content::DropData /* drop_data */, 23 std::vector<content::DropData::Metadata> /* drop_data */,
22 gfx::Point /* client_pt */, 24 gfx::Point /* client_pt */,
23 gfx::Point /* screen_pt */, 25 gfx::Point /* screen_pt */,
24 blink::WebDragOperationsMask /* ops_allowed */, 26 blink::WebDragOperationsMask /* ops_allowed */,
25 int /* key_modifiers */) 27 int /* key_modifiers */)
26 28
27 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragOver, 29 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragOver,
28 gfx::Point /* client_pt */, 30 gfx::Point /* client_pt */,
29 gfx::Point /* screen_pt */, 31 gfx::Point /* screen_pt */,
30 blink::WebDragOperationsMask /* ops_allowed */, 32 blink::WebDragOperationsMask /* ops_allowed */,
31 int /* key_modifiers */) 33 int /* key_modifiers */)
32 34
33 IPC_MESSAGE_ROUTED0(DragMsg_TargetDragLeave) 35 IPC_MESSAGE_ROUTED0(DragMsg_TargetDragLeave)
34 36
35 IPC_MESSAGE_ROUTED3(DragMsg_TargetDrop, 37 IPC_MESSAGE_ROUTED4(DragMsg_TargetDrop,
38 content::DropData /* drop_data */,
36 gfx::Point /* client_pt */, 39 gfx::Point /* client_pt */,
37 gfx::Point /* screen_pt */, 40 gfx::Point /* screen_pt */,
38 int /* key_modifiers */) 41 int /* key_modifiers */)
39 42
40 // Notifies the renderer when and where the mouse-drag ended. 43 // Notifies the renderer when and where the mouse-drag ended.
41 IPC_MESSAGE_ROUTED3(DragMsg_SourceEnded, 44 IPC_MESSAGE_ROUTED3(DragMsg_SourceEnded,
42 gfx::Point /* client_pt */, 45 gfx::Point /* client_pt */,
43 gfx::Point /* screen_pt */, 46 gfx::Point /* screen_pt */,
44 blink::WebDragOperation /* drag_operation */) 47 blink::WebDragOperation /* drag_operation */)
45 48
(...skipping 10 matching lines...) Expand all
56 content::DropData /* drop_data */, 59 content::DropData /* drop_data */,
57 blink::WebDragOperationsMask /* ops_allowed */, 60 blink::WebDragOperationsMask /* ops_allowed */,
58 SkBitmap /* image */, 61 SkBitmap /* image */,
59 gfx::Vector2d /* image_offset */, 62 gfx::Vector2d /* image_offset */,
60 content::DragEventSourceInfo /* event_info */) 63 content::DragEventSourceInfo /* event_info */)
61 64
62 // The page wants to update the mouse cursor during a drag & drop operation. 65 // The page wants to update the mouse cursor during a drag & drop operation.
63 // |is_drop_target| is true if the mouse is over a valid drop target. 66 // |is_drop_target| is true if the mouse is over a valid drop target.
64 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, 67 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor,
65 blink::WebDragOperation /* drag_operation */) 68 blink::WebDragOperation /* drag_operation */)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/common/drag_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698