OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/common_param_traits.h" | 8 #include "content/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 "webkit/glue/webdropdata.h" | 13 #include "webkit/glue/webdropdata.h" |
13 | 14 |
14 #define IPC_MESSAGE_START DragMsgStart | 15 #define IPC_MESSAGE_START DragMsgStart |
15 | 16 |
16 IPC_ENUM_TRAITS(WebKit::WebDragOperation) | 17 IPC_ENUM_TRAITS(WebKit::WebDragOperation) |
17 | 18 |
18 IPC_STRUCT_TRAITS_BEGIN(WebDropData) | 19 IPC_STRUCT_TRAITS_BEGIN(WebDropData) |
19 IPC_STRUCT_TRAITS_MEMBER(url) | 20 IPC_STRUCT_TRAITS_MEMBER(url) |
20 IPC_STRUCT_TRAITS_MEMBER(url_title) | 21 IPC_STRUCT_TRAITS_MEMBER(url_title) |
21 IPC_STRUCT_TRAITS_MEMBER(download_metadata) | 22 IPC_STRUCT_TRAITS_MEMBER(download_metadata) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 IPC_MESSAGE_ROUTED4(DragHostMsg_StartDragging, | 68 IPC_MESSAGE_ROUTED4(DragHostMsg_StartDragging, |
68 WebDropData /* drop_data */, | 69 WebDropData /* drop_data */, |
69 WebKit::WebDragOperationsMask /* ops_allowed */, | 70 WebKit::WebDragOperationsMask /* ops_allowed */, |
70 SkBitmap /* image */, | 71 SkBitmap /* image */, |
71 gfx::Point /* image_offset */) | 72 gfx::Point /* image_offset */) |
72 | 73 |
73 // The page wants to update the mouse cursor during a drag & drop operation. | 74 // The page wants to update the mouse cursor during a drag & drop operation. |
74 // |is_drop_target| is true if the mouse is over a valid drop target. | 75 // |is_drop_target| is true if the mouse is over a valid drop target. |
75 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, | 76 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, |
76 WebKit::WebDragOperation /* drag_operation */) | 77 WebKit::WebDragOperation /* drag_operation */) |
OLD | NEW |