| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2001 Peter Kelly (pmk@post.com) |    2  * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 
|    3  * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |    3  * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 
|    4  * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |    4  * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 
|    5  * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |    5  * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 
|    6  * |    6  * | 
|    7  * This library is free software; you can redistribute it and/or |    7  * This library is free software; you can redistribute it and/or | 
|    8  * modify it under the terms of the GNU Library General Public |    8  * modify it under the terms of the GNU Library General Public | 
|    9  * License as published by the Free Software Foundation; either |    9  * License as published by the Free Software Foundation; either | 
|   10  * version 2 of the License, or (at your option) any later version. |   10  * version 2 of the License, or (at your option) any later version. | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|   37  |   37  | 
|   38 namespace blink { |   38 namespace blink { | 
|   39  |   39  | 
|   40 class DataTransferItemList; |   40 class DataTransferItemList; | 
|   41 class DragImage; |   41 class DragImage; | 
|   42 class Element; |   42 class Element; | 
|   43 class FileList; |   43 class FileList; | 
|   44 class FrameSelection; |   44 class FrameSelection; | 
|   45 class LocalFrame; |   45 class LocalFrame; | 
|   46 class Node; |   46 class Node; | 
 |   47 class PaintRecordBuilder; | 
 |   48 class PropertyTreeState; | 
|   47  |   49  | 
|   48 // Used for drag and drop and copy/paste. |   50 // Used for drag and drop and copy/paste. | 
|   49 // Drag and Drop: |   51 // Drag and Drop: | 
|   50 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html |   52 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html | 
|   51 // Clipboard API (copy/paste): |   53 // Clipboard API (copy/paste): | 
|   52 // http://dev.w3.org/2006/webapi/clipops/clipops.html |   54 // http://dev.w3.org/2006/webapi/clipops/clipops.html | 
|   53 class CORE_EXPORT DataTransfer final |   55 class CORE_EXPORT DataTransfer final | 
|   54     : public GarbageCollectedFinalized<DataTransfer>, |   56     : public GarbageCollectedFinalized<DataTransfer>, | 
|   55       public ScriptWrappable, |   57       public ScriptWrappable, | 
|   56       public DataObject::Observer { |   58       public DataObject::Observer { | 
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  125   DragOperation DestinationOperation() const; |  127   DragOperation DestinationOperation() const; | 
|  126   void SetSourceOperation(DragOperation); |  128   void SetSourceOperation(DragOperation); | 
|  127   void SetDestinationOperation(DragOperation); |  129   void SetDestinationOperation(DragOperation); | 
|  128  |  130  | 
|  129   bool HasDropZoneType(const String&); |  131   bool HasDropZoneType(const String&); | 
|  130  |  132  | 
|  131   DataTransferItemList* items(); |  133   DataTransferItemList* items(); | 
|  132  |  134  | 
|  133   DataObject* GetDataObject() const; |  135   DataObject* GetDataObject() const; | 
|  134  |  136  | 
 |  137   static FloatRect DeviceSpaceBounds(const FloatRect, const LocalFrame&); | 
 |  138   static std::unique_ptr<DragImage> CreateDragImageForFrame( | 
 |  139       const LocalFrame&, | 
 |  140       float, | 
 |  141       RespectImageOrientationEnum, | 
 |  142       const FloatRect&, | 
 |  143       PaintRecordBuilder&, | 
 |  144       const PropertyTreeState&); | 
 |  145   static std::unique_ptr<DragImage> NodeImage(const LocalFrame&, Node&); | 
 |  146  | 
|  135   DECLARE_TRACE(); |  147   DECLARE_TRACE(); | 
|  136  |  148  | 
|  137  private: |  149  private: | 
|  138   DataTransfer(DataTransferType, DataTransferAccessPolicy, DataObject*); |  150   DataTransfer(DataTransferType, DataTransferAccessPolicy, DataObject*); | 
|  139  |  151  | 
|  140   void setDragImage(ImageResourceContent*, Node*, const IntPoint&); |  152   void setDragImage(ImageResourceContent*, Node*, const IntPoint&); | 
|  141  |  153  | 
|  142   bool HasFileOfType(const String&) const; |  154   bool HasFileOfType(const String&) const; | 
|  143   bool HasStringOfType(const String&) const; |  155   bool HasStringOfType(const String&) const; | 
|  144  |  156  | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
|  160   Member<Node> drag_image_element_; |  172   Member<Node> drag_image_element_; | 
|  161 }; |  173 }; | 
|  162  |  174  | 
|  163 DragOperation ConvertDropZoneOperationToDragOperation( |  175 DragOperation ConvertDropZoneOperationToDragOperation( | 
|  164     const String& drag_operation); |  176     const String& drag_operation); | 
|  165 String ConvertDragOperationToDropZoneOperation(DragOperation); |  177 String ConvertDragOperationToDropZoneOperation(DragOperation); | 
|  166  |  178  | 
|  167 }  // namespace blink |  179 }  // namespace blink | 
|  168  |  180  | 
|  169 #endif  // DataTransfer_h |  181 #endif  // DataTransfer_h | 
| OLD | NEW |