| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class ClipboardWrappingImplementation extends DOMWrapperBase implements Clipboar
d { | 7 class ClipboardWrappingImplementation extends DOMWrapperBase implements Clipboar
d { |
| 8 ClipboardWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 ClipboardWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 String get dropEffect() { return _ptr.dropEffect; } | 10 String get dropEffect() { return _ptr.dropEffect; } |
| 11 | 11 |
| 12 void set dropEffect(String value) { _ptr.dropEffect = value; } | 12 void set dropEffect(String value) { _ptr.dropEffect = value; } |
| 13 | 13 |
| 14 String get effectAllowed() { return _ptr.effectAllowed; } | 14 String get effectAllowed() { return _ptr.effectAllowed; } |
| 15 | 15 |
| 16 void set effectAllowed(String value) { _ptr.effectAllowed = value; } | 16 void set effectAllowed(String value) { _ptr.effectAllowed = value; } |
| 17 | 17 |
| 18 FileList get files() { return LevelDom.wrapFileList(_ptr.files); } | 18 FileList get files() { return LevelDom.wrapFileList(_ptr.files); } |
| 19 | 19 |
| 20 DataTransferItems get items() { return LevelDom.wrapDataTransferItems(_ptr.ite
ms); } | 20 DataTransferItemList get items() { return LevelDom.wrapDataTransferItemList(_p
tr.items); } |
| 21 | 21 |
| 22 void clearData([String type = null]) { | 22 List get types() { return _ptr.types; } |
| 23 |
| 24 void clearData([String type]) { |
| 23 if (type === null) { | 25 if (type === null) { |
| 24 _ptr.clearData(); | 26 _ptr.clearData(); |
| 25 return; | 27 return; |
| 26 } else { | 28 } else { |
| 27 _ptr.clearData(type); | 29 _ptr.clearData(type); |
| 28 return; | 30 return; |
| 29 } | 31 } |
| 30 } | 32 } |
| 31 | 33 |
| 32 void getData(String type) { | 34 void getData(String type) { |
| 33 _ptr.getData(type); | 35 _ptr.getData(type); |
| 34 return; | 36 return; |
| 35 } | 37 } |
| 36 | 38 |
| 37 bool setData(String type, String data) { | 39 bool setData(String type, String data) { |
| 38 return _ptr.setData(type, data); | 40 return _ptr.setData(type, data); |
| 39 } | 41 } |
| 40 | 42 |
| 41 void setDragImage(ImageElement image, int x, int y) { | 43 void setDragImage(ImageElement image, int x, int y) { |
| 42 _ptr.setDragImage(LevelDom.unwrap(image), x, y); | 44 _ptr.setDragImage(LevelDom.unwrap(image), x, y); |
| 43 return; | 45 return; |
| 44 } | 46 } |
| 45 } | 47 } |
| OLD | NEW |