| 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. |
| 11 * | 11 * |
| 12 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 * Library General Public License for more details. | 15 * Library General Public License for more details. |
| 16 * | 16 * |
| 17 * You should have received a copy of the GNU Library General Public License | 17 * You should have received a copy of the GNU Library General Public License |
| 18 * along with this library; see the file COPYING.LIB. If not, write to | 18 * along with this library; see the file COPYING.LIB. If not, write to |
| 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 * Boston, MA 02110-1301, USA. | 20 * Boston, MA 02110-1301, USA. |
| 21 * | 21 * |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #ifndef DataTransfer_h | 24 #ifndef DataTransfer_h |
| 25 #define DataTransfer_h | 25 #define DataTransfer_h |
| 26 | 26 |
| 27 #include "bindings/core/v8/ScriptWrappable.h" | 27 #include "bindings/core/v8/ScriptWrappable.h" |
| 28 #include "core/clipboard/DataTransferAccessPolicy.h" | 28 #include "core/clipboard/DataTransferAccessPolicy.h" |
| 29 #include "core/fetch/ImageResource.h" |
| 29 #include "core/fetch/ResourcePtr.h" | 30 #include "core/fetch/ResourcePtr.h" |
| 30 #include "core/page/DragActions.h" | 31 #include "core/page/DragActions.h" |
| 31 #include "platform/geometry/IntPoint.h" | 32 #include "platform/geometry/IntPoint.h" |
| 32 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 33 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 34 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
| 35 #include "wtf/RefPtr.h" | 36 #include "wtf/RefPtr.h" |
| 36 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 37 | 38 |
| 38 namespace blink { | 39 namespace blink { |
| 39 | 40 |
| 40 class DataObject; | 41 class DataObject; |
| 41 class DataTransferItemList; | 42 class DataTransferItemList; |
| 42 class DragImage; | 43 class DragImage; |
| 43 class Element; | 44 class Element; |
| 44 class ExceptionState; | 45 class ExceptionState; |
| 45 class FileList; | 46 class FileList; |
| 46 class LocalFrame; | 47 class LocalFrame; |
| 47 class ImageResource; | |
| 48 class Node; | 48 class Node; |
| 49 class Range; | 49 class Range; |
| 50 | 50 |
| 51 // Used for drag and drop and copy/paste. | 51 // Used for drag and drop and copy/paste. |
| 52 // Drag and Drop: http://www.whatwg.org/specs/web-apps/current-work/multipage/dn
d.html | 52 // Drag and Drop: http://www.whatwg.org/specs/web-apps/current-work/multipage/dn
d.html |
| 53 // Clipboard API (copy/paste): http://dev.w3.org/2006/webapi/clipops/clipops.htm
l | 53 // Clipboard API (copy/paste): http://dev.w3.org/2006/webapi/clipops/clipops.htm
l |
| 54 class DataTransfer : public RefCountedWillBeGarbageCollectedFinalized<DataTransf
er>, public ScriptWrappable { | 54 class DataTransfer : public RefCountedWillBeGarbageCollectedFinalized<DataTransf
er>, public ScriptWrappable { |
| 55 DEFINE_WRAPPERTYPEINFO(); | 55 DEFINE_WRAPPERTYPEINFO(); |
| 56 public: | 56 public: |
| 57 // Whether this transfer is serving a drag-drop or copy-paste request. | 57 // Whether this transfer is serving a drag-drop or copy-paste request. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ResourcePtr<ImageResource> m_dragImage; | 138 ResourcePtr<ImageResource> m_dragImage; |
| 139 RefPtrWillBeMember<Node> m_dragImageElement; | 139 RefPtrWillBeMember<Node> m_dragImageElement; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); | 142 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); |
| 143 String convertDragOperationToDropZoneOperation(DragOperation); | 143 String convertDragOperationToDropZoneOperation(DragOperation); |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| 146 | 146 |
| 147 #endif // DataTransfer_h | 147 #endif // DataTransfer_h |
| OLD | NEW |