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 // 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" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
| 13 #include "ui/gfx/vector2d.h" |
13 #include "webkit/glue/webdropdata.h" | 14 #include "webkit/glue/webdropdata.h" |
14 | 15 |
15 #define IPC_MESSAGE_START DragMsgStart | 16 #define IPC_MESSAGE_START DragMsgStart |
16 | 17 |
17 // Messages sent from the browser to the renderer. | 18 // Messages sent from the browser to the renderer. |
18 | 19 |
19 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter, | 20 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter, |
20 WebDropData /* drop_data */, | 21 WebDropData /* drop_data */, |
21 gfx::Point /* client_pt */, | 22 gfx::Point /* client_pt */, |
22 gfx::Point /* screen_pt */, | 23 gfx::Point /* screen_pt */, |
(...skipping 27 matching lines...) Expand all Loading... |
50 // Messages sent from the renderer to the browser. | 51 // Messages sent from the renderer to the browser. |
51 | 52 |
52 // Used to tell the parent the user started dragging in the content area. The | 53 // Used to tell the parent the user started dragging in the content area. The |
53 // WebDropData struct contains contextual information about the pieces of the | 54 // WebDropData struct contains contextual information about the pieces of the |
54 // page the user dragged. The parent uses this notification to initiate a | 55 // page the user dragged. The parent uses this notification to initiate a |
55 // drag session at the OS level. | 56 // drag session at the OS level. |
56 IPC_MESSAGE_ROUTED4(DragHostMsg_StartDragging, | 57 IPC_MESSAGE_ROUTED4(DragHostMsg_StartDragging, |
57 WebDropData /* drop_data */, | 58 WebDropData /* drop_data */, |
58 WebKit::WebDragOperationsMask /* ops_allowed */, | 59 WebKit::WebDragOperationsMask /* ops_allowed */, |
59 SkBitmap /* image */, | 60 SkBitmap /* image */, |
60 gfx::Point /* image_offset */) | 61 gfx::Vector2d /* image_offset */) |
61 | 62 |
62 // The page wants to update the mouse cursor during a drag & drop operation. | 63 // 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. | 64 // |is_drop_target| is true if the mouse is over a valid drop target. |
64 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, | 65 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, |
65 WebKit::WebDragOperation /* drag_operation */) | 66 WebKit::WebDragOperation /* drag_operation */) |
66 | 67 |
67 // Notifies the host that the renderer finished a drop operation. | 68 // Notifies the host that the renderer finished a drop operation. |
68 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) | 69 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) |
OLD | NEW |