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

Unified Diff: Source/core/clipboard/DataTransfer.idl

Issue 1036273002: Sync the DataTransfer* interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: link to getAsFile() bug Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/clipboard/DataTransferItem.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataTransfer.idl
diff --git a/Source/core/clipboard/DataTransfer.idl b/Source/core/clipboard/DataTransfer.idl
index 5448d014bf2a8efa50041da747ff4dad01366f31..4966cc4d10dd360368f5d8edac0d85ec84513d6e 100644
--- a/Source/core/clipboard/DataTransfer.idl
+++ b/Source/core/clipboard/DataTransfer.idl
@@ -26,19 +26,23 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#the-datatransfer-interface
+
[
WillBeGarbageCollected
] interface DataTransfer {
- [TreatReturnedNullStringAs=Undefined] attribute DOMString dropEffect;
- [TreatReturnedNullStringAs=Undefined] attribute DOMString effectAllowed;
- readonly attribute DOMString[] types;
- readonly attribute FileList files;
+ // TODO(philipj): Remove [TreatReturnedNullStringAs=Undefined].
+ [TreatReturnedNullStringAs=Undefined] attribute DOMString dropEffect;
+ [TreatReturnedNullStringAs=Undefined] attribute DOMString effectAllowed;
+
+ [SameObject] readonly attribute DataTransferItemList items;
- void clearData(optional DOMString type);
- DOMString getData(DOMString type);
- void setData(DOMString type, DOMString data);
[RaisesException] void setDragImage(Element image, long x, long y);
- readonly attribute DataTransferItemList items;
+ /* old interface */
+ [SameObject] readonly attribute DOMString[] types;
+ DOMString getData(DOMString format);
+ void setData(DOMString format, DOMString data);
+ void clearData(optional DOMString format);
+ [SameObject] readonly attribute FileList files;
};
-
« no previous file with comments | « no previous file | Source/core/clipboard/DataTransferItem.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698