OLD | NEW |
1 | 1 |
2 class _ClipboardImpl extends _DOMTypeBase implements Clipboard { | 2 class _ClipboardImpl extends _DOMTypeBase implements Clipboard { |
3 _ClipboardImpl._wrap(ptr) : super._wrap(ptr); | 3 _ClipboardImpl._wrap(ptr) : super._wrap(ptr); |
4 | 4 |
5 String get dropEffect() => _wrap(_ptr.dropEffect); | 5 String get dropEffect() => _wrap(_ptr.dropEffect); |
6 | 6 |
7 void set dropEffect(String value) { _ptr.dropEffect = _unwrap(value); } | 7 void set dropEffect(String value) { _ptr.dropEffect = _unwrap(value); } |
8 | 8 |
9 String get effectAllowed() => _wrap(_ptr.effectAllowed); | 9 String get effectAllowed() => _wrap(_ptr.effectAllowed); |
10 | 10 |
11 void set effectAllowed(String value) { _ptr.effectAllowed = _unwrap(value); } | 11 void set effectAllowed(String value) { _ptr.effectAllowed = _unwrap(value); } |
12 | 12 |
13 FileList get files() => _wrap(_ptr.files); | 13 FileList get files() => _wrap(_ptr.files); |
14 | 14 |
15 DataTransferItemList get items() => _wrap(_ptr.items); | 15 DataTransferItemList get items() => _wrap(_ptr.items); |
16 | 16 |
17 List get types() => _wrap(_ptr.types); | 17 List<String> get types() => _wrap(_ptr.types); |
18 | 18 |
19 void clearData([String type = null]) { | 19 void clearData([String type = null]) { |
20 if (type === null) { | 20 if (type === null) { |
21 _ptr.clearData(); | 21 _ptr.clearData(); |
22 return; | 22 return; |
23 } else { | 23 } else { |
24 _ptr.clearData(_unwrap(type)); | 24 _ptr.clearData(_unwrap(type)); |
25 return; | 25 return; |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 void getData(String type) { | 29 void getData(String type) { |
30 _ptr.getData(_unwrap(type)); | 30 _ptr.getData(_unwrap(type)); |
31 return; | 31 return; |
32 } | 32 } |
33 | 33 |
34 bool setData(String type, String data) { | 34 bool setData(String type, String data) { |
35 return _wrap(_ptr.setData(_unwrap(type), _unwrap(data))); | 35 return _wrap(_ptr.setData(_unwrap(type), _unwrap(data))); |
36 } | 36 } |
37 | 37 |
38 void setDragImage(ImageElement image, int x, int y) { | 38 void setDragImage(ImageElement image, int x, int y) { |
39 _ptr.setDragImage(_unwrap(image), _unwrap(x), _unwrap(y)); | 39 _ptr.setDragImage(_unwrap(image), _unwrap(x), _unwrap(y)); |
40 return; | 40 return; |
41 } | 41 } |
42 } | 42 } |
OLD | NEW |