| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class FileList; | 45 class FileList; |
| 46 class LocalFrame; | 46 class LocalFrame; |
| 47 class ImageResource; | 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 public: | 56 public: |
| 56 // 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. |
| 57 enum DataTransferType { | 58 enum DataTransferType { |
| 58 CopyAndPaste, | 59 CopyAndPaste, |
| 59 DragAndDrop, | 60 DragAndDrop, |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 static PassRefPtrWillBeRawPtr<DataTransfer> create(DataTransferType, DataTra
nsferAccessPolicy, PassRefPtrWillBeRawPtr<DataObject>); | 63 static PassRefPtrWillBeRawPtr<DataTransfer> create(DataTransferType, DataTra
nsferAccessPolicy, PassRefPtrWillBeRawPtr<DataObject>); |
| 63 ~DataTransfer(); | 64 ~DataTransfer(); |
| 64 | 65 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 ResourcePtr<ImageResource> m_dragImage; | 138 ResourcePtr<ImageResource> m_dragImage; |
| 138 RefPtrWillBeMember<Node> m_dragImageElement; | 139 RefPtrWillBeMember<Node> m_dragImageElement; |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); | 142 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); |
| 142 String convertDragOperationToDropZoneOperation(DragOperation); | 143 String convertDragOperationToDropZoneOperation(DragOperation); |
| 143 | 144 |
| 144 } // namespace blink | 145 } // namespace blink |
| 145 | 146 |
| 146 #endif // DataTransfer_h | 147 #endif // DataTransfer_h |
| OLD | NEW |