| OLD | NEW | 
| (Empty) |  | 
 |   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 | 
 |   3 // found in the LICENSE file. | 
 |   4  | 
 |   5 // IPC messages for drag and drop. | 
 |   6 // Multiply-included message file, hence no include guard. | 
 |   7  | 
 |   8 #include "content/common/common_param_traits.h" | 
 |   9 #include "ipc/ipc_message_macros.h" | 
 |  10 #include "third_party/skia/include/core/SkBitmap.h" | 
 |  11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 
 |  12 #include "webkit/glue/webdropdata.h" | 
 |  13  | 
 |  14 #define IPC_MESSAGE_START DragMsgStart | 
 |  15  | 
 |  16 IPC_ENUM_TRAITS(WebKit::WebDragOperation) | 
 |  17  | 
 |  18 IPC_STRUCT_TRAITS_BEGIN(WebDropData) | 
 |  19   IPC_STRUCT_TRAITS_MEMBER(url) | 
 |  20   IPC_STRUCT_TRAITS_MEMBER(url_title) | 
 |  21   IPC_STRUCT_TRAITS_MEMBER(download_metadata) | 
 |  22   IPC_STRUCT_TRAITS_MEMBER(file_extension) | 
 |  23   IPC_STRUCT_TRAITS_MEMBER(filenames) | 
 |  24   IPC_STRUCT_TRAITS_MEMBER(plain_text) | 
 |  25   IPC_STRUCT_TRAITS_MEMBER(text_html) | 
 |  26   IPC_STRUCT_TRAITS_MEMBER(html_base_url) | 
 |  27   IPC_STRUCT_TRAITS_MEMBER(file_description_filename) | 
 |  28   IPC_STRUCT_TRAITS_MEMBER(file_contents) | 
 |  29 IPC_STRUCT_TRAITS_END() | 
 |  30  | 
 |  31 // Messages sent from the browser to the renderer. | 
 |  32  | 
 |  33 IPC_MESSAGE_ROUTED4(DragMsg_TargetDragEnter, | 
 |  34                     WebDropData /* drop_data */, | 
 |  35                     gfx::Point /* client_pt */, | 
 |  36                     gfx::Point /* screen_pt */, | 
 |  37                     WebKit::WebDragOperationsMask /* ops_allowed */) | 
 |  38  | 
 |  39 IPC_MESSAGE_ROUTED3(DragMsg_TargetDragOver, | 
 |  40                     gfx::Point /* client_pt */, | 
 |  41                     gfx::Point /* screen_pt */, | 
 |  42                     WebKit::WebDragOperationsMask /* ops_allowed */) | 
 |  43  | 
 |  44 IPC_MESSAGE_ROUTED0(DragMsg_TargetDragLeave) | 
 |  45  | 
 |  46 IPC_MESSAGE_ROUTED2(DragMsg_TargetDrop, | 
 |  47                     gfx::Point /* client_pt */, | 
 |  48                     gfx::Point /* screen_pt */) | 
 |  49  | 
 |  50 // Notifies the renderer of updates in mouse position of an in-progress | 
 |  51 // drag.  if |ended| is true, then the user has ended the drag operation. | 
 |  52 IPC_MESSAGE_ROUTED4(DragMsg_SourceEndedOrMoved, | 
 |  53                     gfx::Point /* client_pt */, | 
 |  54                     gfx::Point /* screen_pt */, | 
 |  55                     bool /* ended */, | 
 |  56                     WebKit::WebDragOperation /* drag_operation */) | 
 |  57  | 
 |  58 // Notifies the renderer that the system DoDragDrop call has ended. | 
 |  59 IPC_MESSAGE_ROUTED0(DragMsg_SourceSystemDragEnded) | 
 |  60  | 
 |  61 // Messages sent from the renderer to the browser. | 
 |  62  | 
 |  63 // Used to tell the parent the user started dragging in the content area. The | 
 |  64 // WebDropData struct contains contextual information about the pieces of the | 
 |  65 // page the user dragged. The parent uses this notification to initiate a | 
 |  66 // drag session at the OS level. | 
 |  67 IPC_MESSAGE_ROUTED4(DragHostMsg_StartDragging, | 
 |  68                     WebDropData /* drop_data */, | 
 |  69                     WebKit::WebDragOperationsMask /* ops_allowed */, | 
 |  70                     SkBitmap /* image */, | 
 |  71                     gfx::Point /* image_offset */) | 
 |  72  | 
 |  73 // 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 IPC_MESSAGE_ROUTED1(DragHostMsg_UpdateDragCursor, | 
 |  76                     WebKit::WebDragOperation /* drag_operation */) | 
| OLD | NEW |