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

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

Issue 10377119: Plumb event flags (shift/alt/ctrl modifiers) for drag/drop events to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 8 years, 7 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 // 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 "content/public/common/common_param_traits.h" 8 #include "content/public/common/common_param_traits.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 19 matching lines...) Expand all
30 IPC_STRUCT_TRAITS_MEMBER(plain_text) 30 IPC_STRUCT_TRAITS_MEMBER(plain_text)
31 IPC_STRUCT_TRAITS_MEMBER(text_html) 31 IPC_STRUCT_TRAITS_MEMBER(text_html)
32 IPC_STRUCT_TRAITS_MEMBER(html_base_url) 32 IPC_STRUCT_TRAITS_MEMBER(html_base_url)
33 IPC_STRUCT_TRAITS_MEMBER(file_description_filename) 33 IPC_STRUCT_TRAITS_MEMBER(file_description_filename)
34 IPC_STRUCT_TRAITS_MEMBER(file_contents) 34 IPC_STRUCT_TRAITS_MEMBER(file_contents)
35 IPC_STRUCT_TRAITS_MEMBER(custom_data) 35 IPC_STRUCT_TRAITS_MEMBER(custom_data)
36 IPC_STRUCT_TRAITS_END() 36 IPC_STRUCT_TRAITS_END()
37 37
38 // Messages sent from the browser to the renderer. 38 // Messages sent from the browser to the renderer.
39 39
40 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragEnter, 40 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter,
41 WebDropData /* drop_data */, 41 WebDropData /* drop_data */,
42 gfx::Point /* client_pt */, 42 gfx::Point /* client_pt */,
43 gfx::Point /* screen_pt */, 43 gfx::Point /* screen_pt */,
44 WebKit::WebDragOperationsMask /* ops_allowed */) 44 WebKit::WebDragOperationsMask /* ops_allowed */,
45 int /* key_modifiers */)
45 46
46 IPC_MESSAGE_ROUTED3(DragMsg_TargetDragOver, 47 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragOver,
47 gfx::Point /* client_pt */, 48 gfx::Point /* client_pt */,
48 gfx::Point /* screen_pt */, 49 gfx::Point /* screen_pt */,
49 WebKit::WebDragOperationsMask /* ops_allowed */) 50 WebKit::WebDragOperationsMask /* ops_allowed */,
51 int /* key_modifiers */)
50 52
51 IPC_MESSAGE_ROUTED0(DragMsg_TargetDragLeave) 53 IPC_MESSAGE_ROUTED0(DragMsg_TargetDragLeave)
52 54
53 IPC_MESSAGE_ROUTED2(DragMsg_TargetDrop, 55 IPC_MESSAGE_ROUTED3(DragMsg_TargetDrop,
54 gfx::Point /* client_pt */, 56 gfx::Point /* client_pt */,
55 gfx::Point /* screen_pt */) 57 gfx::Point /* screen_pt */,
58 int /* key_modifiers */)
56 59
57 // Notifies the renderer of updates in mouse position of an in-progress 60 // Notifies the renderer of updates in mouse position of an in-progress
58 // drag. if |ended| is true, then the user has ended the drag operation. 61 // drag. if |ended| is true, then the user has ended the drag operation.
59 IPC_MESSAGE_ROUTED4(DragMsg_SourceEndedOrMoved, 62 IPC_MESSAGE_ROUTED4(DragMsg_SourceEndedOrMoved,
60 gfx::Point /* client_pt */, 63 gfx::Point /* client_pt */,
61 gfx::Point /* screen_pt */, 64 gfx::Point /* screen_pt */,
62 bool /* ended */, 65 bool /* ended */,
63 WebKit::WebDragOperation /* drag_operation */) 66 WebKit::WebDragOperation /* drag_operation */)
64 67
65 // Notifies the renderer that the system DoDragDrop call has ended. 68 // Notifies the renderer that the system DoDragDrop call has ended.
(...skipping 11 matching lines...) Expand all
77 SkBitmap /* image */, 80 SkBitmap /* image */,
78 gfx::Point /* image_offset */) 81 gfx::Point /* image_offset */)
79 82
80 // The page wants to update the mouse cursor during a drag & drop operation. 83 // The page wants to update the mouse cursor during a drag & drop operation.
81 // |is_drop_target| is true if the mouse is over a valid drop target. 84 // |is_drop_target| is true if the mouse is over a valid drop target.
82 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, 85 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor,
83 WebKit::WebDragOperation /* drag_operation */) 86 WebKit::WebDragOperation /* drag_operation */)
84 87
85 // Notifies the host that the renderer finished a drop operation. 88 // Notifies the host that the renderer finished a drop operation.
86 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) 89 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_dest_win.cc ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698