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 25 matching lines...) Expand all Loading... |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class DataObject; | 42 class DataObject; |
43 class DataTransferItemList; | 43 class DataTransferItemList; |
44 class DragImage; | 44 class DragImage; |
45 class Element; | 45 class Element; |
46 class ExceptionState; | |
47 class FileList; | 46 class FileList; |
48 class FrameSelection; | 47 class FrameSelection; |
49 class LocalFrame; | 48 class LocalFrame; |
50 class Node; | 49 class Node; |
51 class Range; | 50 class Range; |
52 | 51 |
53 // Used for drag and drop and copy/paste. | 52 // Used for drag and drop and copy/paste. |
54 // Drag and Drop: http://www.whatwg.org/specs/web-apps/current-work/multipage/dn
d.html | 53 // Drag and Drop: http://www.whatwg.org/specs/web-apps/current-work/multipage/dn
d.html |
55 // Clipboard API (copy/paste): http://dev.w3.org/2006/webapi/clipops/clipops.htm
l | 54 // Clipboard API (copy/paste): http://dev.w3.org/2006/webapi/clipops/clipops.htm
l |
56 class CORE_EXPORT DataTransfer : public GarbageCollectedFinalized<DataTransfer>,
public ScriptWrappable { | 55 class CORE_EXPORT DataTransfer : public GarbageCollectedFinalized<DataTransfer>,
public ScriptWrappable { |
(...skipping 19 matching lines...) Expand all Loading... |
76 | 75 |
77 void clearData(const String& type = String()); | 76 void clearData(const String& type = String()); |
78 String getData(const String& type) const; | 77 String getData(const String& type) const; |
79 void setData(const String& type, const String& data); | 78 void setData(const String& type, const String& data); |
80 | 79 |
81 // extensions beyond IE's API | 80 // extensions beyond IE's API |
82 Vector<String> types() const; | 81 Vector<String> types() const; |
83 FileList* files() const; | 82 FileList* files() const; |
84 | 83 |
85 IntPoint dragLocation() const { return m_dragLoc; } | 84 IntPoint dragLocation() const { return m_dragLoc; } |
86 void setDragImage(Element*, int x, int y, ExceptionState&); | 85 void setDragImage(Element*, int x, int y); |
87 void clearDragImage(); | 86 void clearDragImage(); |
88 void setDragImageResource(ImageResource*, const IntPoint&); | 87 void setDragImageResource(ImageResource*, const IntPoint&); |
89 void setDragImageElement(Node*, const IntPoint&); | 88 void setDragImageElement(Node*, const IntPoint&); |
90 | 89 |
91 PassOwnPtr<DragImage> createDragImage(IntPoint& dragLocation, LocalFrame*) c
onst; | 90 PassOwnPtr<DragImage> createDragImage(IntPoint& dragLocation, LocalFrame*) c
onst; |
92 void declareAndWriteDragImage(Element*, const KURL&, const String& title); | 91 void declareAndWriteDragImage(Element*, const KURL&, const String& title); |
93 void writeURL(const KURL&, const String&); | 92 void writeURL(const KURL&, const String&); |
94 void writeSelection(const FrameSelection&); | 93 void writeSelection(const FrameSelection&); |
95 | 94 |
96 void setAccessPolicy(DataTransferAccessPolicy); | 95 void setAccessPolicy(DataTransferAccessPolicy); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ResourcePtr<ImageResource> m_dragImage; | 134 ResourcePtr<ImageResource> m_dragImage; |
136 RefPtrWillBeMember<Node> m_dragImageElement; | 135 RefPtrWillBeMember<Node> m_dragImageElement; |
137 }; | 136 }; |
138 | 137 |
139 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); | 138 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio
n); |
140 String convertDragOperationToDropZoneOperation(DragOperation); | 139 String convertDragOperationToDropZoneOperation(DragOperation); |
141 | 140 |
142 } // namespace blink | 141 } // namespace blink |
143 | 142 |
144 #endif // DataTransfer_h | 143 #endif // DataTransfer_h |
OLD | NEW |