| 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 "webkit/glue/webdropdata.h" | 13 #include "webkit/glue/webdropdata.h" |
| 14 | 14 |
| 15 #define IPC_MESSAGE_START DragMsgStart | 15 #define IPC_MESSAGE_START DragMsgStart |
| 16 | 16 |
| 17 IPC_ENUM_TRAITS(WebKit::WebDragOperation) | |
| 18 | |
| 19 IPC_STRUCT_TRAITS_BEGIN(WebDropData::FileInfo) | |
| 20 IPC_STRUCT_TRAITS_MEMBER(path) | |
| 21 IPC_STRUCT_TRAITS_MEMBER(display_name) | |
| 22 IPC_STRUCT_TRAITS_END() | |
| 23 | |
| 24 IPC_STRUCT_TRAITS_BEGIN(WebDropData) | |
| 25 IPC_STRUCT_TRAITS_MEMBER(url) | |
| 26 IPC_STRUCT_TRAITS_MEMBER(url_title) | |
| 27 IPC_STRUCT_TRAITS_MEMBER(download_metadata) | |
| 28 IPC_STRUCT_TRAITS_MEMBER(referrer_policy) | |
| 29 IPC_STRUCT_TRAITS_MEMBER(filenames) | |
| 30 IPC_STRUCT_TRAITS_MEMBER(filesystem_id) | |
| 31 IPC_STRUCT_TRAITS_MEMBER(text) | |
| 32 IPC_STRUCT_TRAITS_MEMBER(html) | |
| 33 IPC_STRUCT_TRAITS_MEMBER(html_base_url) | |
| 34 IPC_STRUCT_TRAITS_MEMBER(file_description_filename) | |
| 35 IPC_STRUCT_TRAITS_MEMBER(file_contents) | |
| 36 IPC_STRUCT_TRAITS_MEMBER(custom_data) | |
| 37 IPC_STRUCT_TRAITS_END() | |
| 38 | |
| 39 // Messages sent from the browser to the renderer. | 17 // Messages sent from the browser to the renderer. |
| 40 | 18 |
| 41 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter, | 19 IPC_MESSAGE_ROUTED5(DragMsg_TargetDragEnter, |
| 42 WebDropData /* drop_data */, | 20 WebDropData /* drop_data */, |
| 43 gfx::Point /* client_pt */, | 21 gfx::Point /* client_pt */, |
| 44 gfx::Point /* screen_pt */, | 22 gfx::Point /* screen_pt */, |
| 45 WebKit::WebDragOperationsMask /* ops_allowed */, | 23 WebKit::WebDragOperationsMask /* ops_allowed */, |
| 46 int /* key_modifiers */) | 24 int /* key_modifiers */) |
| 47 | 25 |
| 48 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragOver, | 26 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragOver, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 SkBitmap /* image */, | 59 SkBitmap /* image */, |
| 82 gfx::Point /* image_offset */) | 60 gfx::Point /* image_offset */) |
| 83 | 61 |
| 84 // The page wants to update the mouse cursor during a drag & drop operation. | 62 // The page wants to update the mouse cursor during a drag & drop operation. |
| 85 // |is_drop_target| is true if the mouse is over a valid drop target. | 63 // |is_drop_target| is true if the mouse is over a valid drop target. |
| 86 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, | 64 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, |
| 87 WebKit::WebDragOperation /* drag_operation */) | 65 WebKit::WebDragOperation /* drag_operation */) |
| 88 | 66 |
| 89 // Notifies the host that the renderer finished a drop operation. | 67 // Notifies the host that the renderer finished a drop operation. |
| 90 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) | 68 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) |
| OLD | NEW |