| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 FileList* files() const; | 91 FileList* files() const; |
| 92 | 92 |
| 93 IntPoint dragLocation() const { return m_dragLoc; } | 93 IntPoint dragLocation() const { return m_dragLoc; } |
| 94 void setDragImage(Element*, int x, int y); | 94 void setDragImage(Element*, int x, int y); |
| 95 void clearDragImage(); | 95 void clearDragImage(); |
| 96 void setDragImageResource(ImageResourceContent*, const IntPoint&); | 96 void setDragImageResource(ImageResourceContent*, const IntPoint&); |
| 97 void setDragImageElement(Node*, const IntPoint&); | 97 void setDragImageElement(Node*, const IntPoint&); |
| 98 | 98 |
| 99 std::unique_ptr<DragImage> createDragImage(IntPoint& dragLocation, | 99 std::unique_ptr<DragImage> createDragImage(IntPoint& dragLocation, |
| 100 LocalFrame*) const; | 100 LocalFrame*) const; |
| 101 void declareAndWriteDragImage(Element*, const KURL&, const String& title); | 101 void declareAndWriteDragImage(Element*, |
| 102 const KURL& linkURL, |
| 103 const KURL& imageURL, |
| 104 const String& title); |
| 102 void writeURL(Node*, const KURL&, const String&); | 105 void writeURL(Node*, const KURL&, const String&); |
| 103 void writeSelection(const FrameSelection&); | 106 void writeSelection(const FrameSelection&); |
| 104 | 107 |
| 105 void setAccessPolicy(DataTransferAccessPolicy); | 108 void setAccessPolicy(DataTransferAccessPolicy); |
| 106 bool canReadTypes() const; | 109 bool canReadTypes() const; |
| 107 bool canReadData() const; | 110 bool canReadData() const; |
| 108 bool canWriteData() const; | 111 bool canWriteData() const; |
| 109 // Note that the spec doesn't actually allow drag image modification outside | 112 // Note that the spec doesn't actually allow drag image modification outside |
| 110 // the dragstart event. This capability is maintained for backwards | 113 // the dragstart event. This capability is maintained for backwards |
| 111 // compatiblity for ports that have supported this in the past. On many ports, | 114 // compatiblity for ports that have supported this in the past. On many ports, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 Member<Node> m_dragImageElement; | 150 Member<Node> m_dragImageElement; |
| 148 }; | 151 }; |
| 149 | 152 |
| 150 DragOperation convertDropZoneOperationToDragOperation( | 153 DragOperation convertDropZoneOperationToDragOperation( |
| 151 const String& dragOperation); | 154 const String& dragOperation); |
| 152 String convertDragOperationToDropZoneOperation(DragOperation); | 155 String convertDragOperationToDropZoneOperation(DragOperation); |
| 153 | 156 |
| 154 } // namespace blink | 157 } // namespace blink |
| 155 | 158 |
| 156 #endif // DataTransfer_h | 159 #endif // DataTransfer_h |
| OLD | NEW |