| 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) | 17 IPC_ENUM_TRAITS(WebKit::WebDragOperation) |
| 18 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) | |
| 19 | 18 |
| 20 IPC_STRUCT_TRAITS_BEGIN(WebDropData::FileInfo) | 19 IPC_STRUCT_TRAITS_BEGIN(WebDropData::FileInfo) |
| 21 IPC_STRUCT_TRAITS_MEMBER(path) | 20 IPC_STRUCT_TRAITS_MEMBER(path) |
| 22 IPC_STRUCT_TRAITS_MEMBER(display_name) | 21 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 23 IPC_STRUCT_TRAITS_END() | 22 IPC_STRUCT_TRAITS_END() |
| 24 | 23 |
| 25 IPC_STRUCT_TRAITS_BEGIN(WebDropData) | 24 IPC_STRUCT_TRAITS_BEGIN(WebDropData) |
| 26 IPC_STRUCT_TRAITS_MEMBER(url) | 25 IPC_STRUCT_TRAITS_MEMBER(url) |
| 27 IPC_STRUCT_TRAITS_MEMBER(url_title) | 26 IPC_STRUCT_TRAITS_MEMBER(url_title) |
| 28 IPC_STRUCT_TRAITS_MEMBER(download_metadata) | 27 IPC_STRUCT_TRAITS_MEMBER(download_metadata) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 SkBitmap /* image */, | 81 SkBitmap /* image */, |
| 83 gfx::Point /* image_offset */) | 82 gfx::Point /* image_offset */) |
| 84 | 83 |
| 85 // The page wants to update the mouse cursor during a drag & drop operation. | 84 // The page wants to update the mouse cursor during a drag & drop operation. |
| 86 // |is_drop_target| is true if the mouse is over a valid drop target. | 85 // |is_drop_target| is true if the mouse is over a valid drop target. |
| 87 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, | 86 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, |
| 88 WebKit::WebDragOperation /* drag_operation */) | 87 WebKit::WebDragOperation /* drag_operation */) |
| 89 | 88 |
| 90 // Notifies the host that the renderer finished a drop operation. | 89 // Notifies the host that the renderer finished a drop operation. |
| 91 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) | 90 IPC_MESSAGE_ROUTED0(DragHostMsg_TargetDrop_ACK) |
| OLD | NEW |