Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.h

Issue 1860293003: Serialize original node when dragging a link instead of synthesizing HTML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete delete Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 FileList* files() const; 81 FileList* files() const;
82 82
83 IntPoint dragLocation() const { return m_dragLoc; } 83 IntPoint dragLocation() const { return m_dragLoc; }
84 void setDragImage(Element*, int x, int y); 84 void setDragImage(Element*, int x, int y);
85 void clearDragImage(); 85 void clearDragImage();
86 void setDragImageResource(ImageResource*, const IntPoint&); 86 void setDragImageResource(ImageResource*, const IntPoint&);
87 void setDragImageElement(Node*, const IntPoint&); 87 void setDragImageElement(Node*, const IntPoint&);
88 88
89 PassOwnPtr<DragImage> createDragImage(IntPoint& dragLocation, LocalFrame*) c onst; 89 PassOwnPtr<DragImage> createDragImage(IntPoint& dragLocation, LocalFrame*) c onst;
90 void declareAndWriteDragImage(Element*, const KURL&, const String& title); 90 void declareAndWriteDragImage(Element*, const KURL&, const String& title);
91 void writeURL(const KURL&, const String&); 91 void writeURL(Node*, const KURL&, const String&);
92 void writeSelection(const FrameSelection&); 92 void writeSelection(const FrameSelection&);
93 93
94 void setAccessPolicy(DataTransferAccessPolicy); 94 void setAccessPolicy(DataTransferAccessPolicy);
95 bool canReadTypes() const; 95 bool canReadTypes() const;
96 bool canReadData() const; 96 bool canReadData() const;
97 bool canWriteData() const; 97 bool canWriteData() const;
98 // Note that the spec doesn't actually allow drag image modification outside the dragstart 98 // Note that the spec doesn't actually allow drag image modification outside the dragstart
99 // event. This capability is maintained for backwards compatiblity for ports that have 99 // event. This capability is maintained for backwards compatiblity for ports that have
100 // supported this in the past. On many ports, attempting to set a drag image outside the 100 // supported this in the past. On many ports, attempting to set a drag image outside the
101 // dragstart operation is a no-op anyway. 101 // dragstart operation is a no-op anyway.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 Member<ImageResource> m_dragImage; 133 Member<ImageResource> m_dragImage;
134 Member<Node> m_dragImageElement; 134 Member<Node> m_dragImageElement;
135 }; 135 };
136 136
137 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio n); 137 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio n);
138 String convertDragOperationToDropZoneOperation(DragOperation); 138 String convertDragOperationToDropZoneOperation(DragOperation);
139 139
140 } // namespace blink 140 } // namespace blink
141 141
142 #endif // DataTransfer_h 142 #endif // DataTransfer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698