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

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

Issue 928103002: Remove some unused functions in core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git cl try Created 5 years, 10 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
« no previous file with comments | « Source/core/clipboard/DataObject.cpp ('k') | Source/core/clipboard/DataTransfer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void setDragImageResource(ImageResource*, const IntPoint&); 87 void setDragImageResource(ImageResource*, const IntPoint&);
88 Node* dragImageElement() const { return m_dragImageElement.get(); } 88 Node* dragImageElement() const { return m_dragImageElement.get(); }
89 void setDragImageElement(Node*, const IntPoint&); 89 void setDragImageElement(Node*, const IntPoint&);
90 90
91 PassOwnPtr<DragImage> createDragImage(IntPoint& dragLocation, LocalFrame*) c onst; 91 PassOwnPtr<DragImage> createDragImage(IntPoint& dragLocation, LocalFrame*) c onst;
92 void declareAndWriteDragImage(Element*, const KURL&, const String& title); 92 void declareAndWriteDragImage(Element*, const KURL&, const String& title);
93 void writeURL(const KURL&, const String&); 93 void writeURL(const KURL&, const String&);
94 void writeRange(Range*, LocalFrame*); 94 void writeRange(Range*, LocalFrame*);
95 void writePlainText(const String&); 95 void writePlainText(const String&);
96 96
97 bool hasData();
98
99 void setAccessPolicy(DataTransferAccessPolicy); 97 void setAccessPolicy(DataTransferAccessPolicy);
100 bool canReadTypes() const; 98 bool canReadTypes() const;
101 bool canReadData() const; 99 bool canReadData() const;
102 bool canWriteData() const; 100 bool canWriteData() const;
103 // Note that the spec doesn't actually allow drag image modification outside the dragstart 101 // Note that the spec doesn't actually allow drag image modification outside the dragstart
104 // event. This capability is maintained for backwards compatiblity for ports that have 102 // event. This capability is maintained for backwards compatiblity for ports that have
105 // supported this in the past. On many ports, attempting to set a drag image outside the 103 // supported this in the past. On many ports, attempting to set a drag image outside the
106 // dragstart operation is a no-op anyway. 104 // dragstart operation is a no-op anyway.
107 bool canSetDragImage() const; 105 bool canSetDragImage() const;
108 106
(...skipping 29 matching lines...) Expand all
138 ResourcePtr<ImageResource> m_dragImage; 136 ResourcePtr<ImageResource> m_dragImage;
139 RefPtrWillBeMember<Node> m_dragImageElement; 137 RefPtrWillBeMember<Node> m_dragImageElement;
140 }; 138 };
141 139
142 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio n); 140 DragOperation convertDropZoneOperationToDragOperation(const String& dragOperatio n);
143 String convertDragOperationToDropZoneOperation(DragOperation); 141 String convertDragOperationToDropZoneOperation(DragOperation);
144 142
145 } // namespace blink 143 } // namespace blink
146 144
147 #endif // DataTransfer_h 145 #endif // DataTransfer_h
OLDNEW
« no previous file with comments | « Source/core/clipboard/DataObject.cpp ('k') | Source/core/clipboard/DataTransfer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698