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 Clipboa
rd { | 7 class _ClipboardWrappingImplementation extends DOMWrapperBase implements Clipboa
rd { |
8 _ClipboardWrappingImplementation() : super() {} | 8 _ClipboardWrappingImplementation() : super() {} |
9 | 9 |
10 static create__ClipboardWrappingImplementation() native { | 10 static create__ClipboardWrappingImplementation() native { |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 void set effectAllowed(String value) { _set_effectAllowed(this, value); } | 23 void set effectAllowed(String value) { _set_effectAllowed(this, value); } |
24 static void _set_effectAllowed(var _this, String value) native; | 24 static void _set_effectAllowed(var _this, String value) native; |
25 | 25 |
26 FileList get files() { return _get_files(this); } | 26 FileList get files() { return _get_files(this); } |
27 static FileList _get_files(var _this) native; | 27 static FileList _get_files(var _this) native; |
28 | 28 |
29 DataTransferItemList get items() { return _get_items(this); } | 29 DataTransferItemList get items() { return _get_items(this); } |
30 static DataTransferItemList _get_items(var _this) native; | 30 static DataTransferItemList _get_items(var _this) native; |
31 | 31 |
32 List<String> get types() { return _get_types(this); } | 32 List get types() { return _get_types(this); } |
33 static List<String> _get_types(var _this) native; | 33 static List _get_types(var _this) native; |
34 | 34 |
35 void clearData([String type = null]) { | 35 void clearData([String type = null]) { |
36 if (type === null) { | 36 if (type === null) { |
37 _clearData(this); | 37 _clearData(this); |
38 return; | 38 return; |
39 } else { | 39 } else { |
40 _clearData_2(this, type); | 40 _clearData_2(this, type); |
41 return; | 41 return; |
42 } | 42 } |
43 } | 43 } |
44 static void _clearData(receiver) native; | 44 static void _clearData(receiver) native; |
45 static void _clearData_2(receiver, type) native; | 45 static void _clearData_2(receiver, type) native; |
46 | 46 |
47 void getData(String type) { | 47 String getData(String type) { |
48 _getData(this, type); | 48 return _getData(this, type); |
49 return; | |
50 } | 49 } |
51 static void _getData(receiver, type) native; | 50 static String _getData(receiver, type) native; |
52 | 51 |
53 bool setData(String type, String data) { | 52 bool setData(String type, String data) { |
54 return _setData(this, type, data); | 53 return _setData(this, type, data); |
55 } | 54 } |
56 static bool _setData(receiver, type, data) native; | 55 static bool _setData(receiver, type, data) native; |
57 | 56 |
58 void setDragImage(HTMLImageElement image, int x, int y) { | 57 void setDragImage(HTMLImageElement image, int x, int y) { |
59 _setDragImage(this, image, x, y); | 58 _setDragImage(this, image, x, y); |
60 return; | 59 return; |
61 } | 60 } |
62 static void _setDragImage(receiver, image, x, y) native; | 61 static void _setDragImage(receiver, image, x, y) native; |
63 | 62 |
64 String get typeName() { return "Clipboard"; } | 63 String get typeName() { return "Clipboard"; } |
65 } | 64 } |
OLD | NEW |