OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |