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

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

Issue 2875013002: DataTransfer: Make |types| be a FrozenArray<DOMString>. (Closed)
Patch Set: Fix interactive_ui_tests Created 3 years, 7 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 Constructor, 32 Constructor,
33 ] interface DataTransfer { 33 ] interface DataTransfer {
34 attribute DOMString dropEffect; 34 attribute DOMString dropEffect;
35 attribute DOMString effectAllowed; 35 attribute DOMString effectAllowed;
36 36
37 [SameObject] readonly attribute DataTransferItemList items; 37 [SameObject] readonly attribute DataTransferItemList items;
38 38
39 void setDragImage(Element image, long x, long y); 39 void setDragImage(Element image, long x, long y);
40 40
41 /* old interface */ 41 /* old interface */
42 // TODO(foolip): Switch to FrozenArray<DOMString> when the spec is fixed: 42 [CachedAttribute=hasDataStoreItemListChanged] readonly attribute FrozenArray <DOMString> types;
43 // https://github.com/whatwg/html/issues/11
44 [SameObject] readonly attribute DOMString[] types;
45 DOMString getData(DOMString format); 43 DOMString getData(DOMString format);
46 void setData(DOMString format, DOMString data); 44 void setData(DOMString format, DOMString data);
47 void clearData(optional DOMString format); 45 void clearData(optional DOMString format);
48 [SameObject] readonly attribute FileList files; 46 [SameObject] readonly attribute FileList files;
49 }; 47 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698