| OLD | NEW |
| 1 library dart.dom.svg; | 1 library dart.dom.svg; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_internal' hide deprecated; | 5 import 'dart:_internal' hide deprecated; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:_blink' as _blink; | 9 import 'dart:_blink' as _blink; |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 'SVGAnimatedTransformList': () => AnimatedTransformList, | 38 'SVGAnimatedTransformList': () => AnimatedTransformList, |
| 39 'SVGAnimationElement': () => AnimationElement, | 39 'SVGAnimationElement': () => AnimationElement, |
| 40 'SVGCircleElement': () => CircleElement, | 40 'SVGCircleElement': () => CircleElement, |
| 41 'SVGClipPathElement': () => ClipPathElement, | 41 'SVGClipPathElement': () => ClipPathElement, |
| 42 'SVGComponentTransferFunctionElement': () => _SVGComponentTransferFunctionElem
ent, | 42 'SVGComponentTransferFunctionElement': () => _SVGComponentTransferFunctionElem
ent, |
| 43 'SVGCursorElement': () => _SVGCursorElement, | 43 'SVGCursorElement': () => _SVGCursorElement, |
| 44 'SVGDefsElement': () => DefsElement, | 44 'SVGDefsElement': () => DefsElement, |
| 45 'SVGDescElement': () => DescElement, | 45 'SVGDescElement': () => DescElement, |
| 46 'SVGDiscardElement': () => DiscardElement, | 46 'SVGDiscardElement': () => DiscardElement, |
| 47 'SVGElement': () => SvgElement, | 47 'SVGElement': () => SvgElement, |
| 48 'SVGElementInstance': () => ElementInstance, | |
| 49 'SVGElementInstanceList': () => _ElementInstanceList, | |
| 50 'SVGEllipseElement': () => EllipseElement, | 48 'SVGEllipseElement': () => EllipseElement, |
| 51 'SVGFEBlendElement': () => FEBlendElement, | 49 'SVGFEBlendElement': () => FEBlendElement, |
| 52 'SVGFEColorMatrixElement': () => FEColorMatrixElement, | 50 'SVGFEColorMatrixElement': () => FEColorMatrixElement, |
| 53 'SVGFEComponentTransferElement': () => FEComponentTransferElement, | 51 'SVGFEComponentTransferElement': () => FEComponentTransferElement, |
| 54 'SVGFECompositeElement': () => FECompositeElement, | 52 'SVGFECompositeElement': () => FECompositeElement, |
| 55 'SVGFEConvolveMatrixElement': () => FEConvolveMatrixElement, | 53 'SVGFEConvolveMatrixElement': () => FEConvolveMatrixElement, |
| 56 'SVGFEDiffuseLightingElement': () => FEDiffuseLightingElement, | 54 'SVGFEDiffuseLightingElement': () => FEDiffuseLightingElement, |
| 57 'SVGFEDisplacementMapElement': () => FEDisplacementMapElement, | 55 'SVGFEDisplacementMapElement': () => FEDisplacementMapElement, |
| 58 'SVGFEDistantLightElement': () => FEDistantLightElement, | 56 'SVGFEDistantLightElement': () => FEDistantLightElement, |
| 59 'SVGFEDropShadowElement': () => _SVGFEDropShadowElement, | 57 'SVGFEDropShadowElement': () => _SVGFEDropShadowElement, |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 | 927 |
| 930 } | 928 } |
| 931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 932 // for details. All rights reserved. Use of this source code is governed by a | 930 // for details. All rights reserved. Use of this source code is governed by a |
| 933 // BSD-style license that can be found in the LICENSE file. | 931 // BSD-style license that can be found in the LICENSE file. |
| 934 | 932 |
| 935 // WARNING: Do not edit - generated code. | 933 // WARNING: Do not edit - generated code. |
| 936 | 934 |
| 937 | 935 |
| 938 @DocsEditable() | 936 @DocsEditable() |
| 939 @DomName('SVGElementInstance') | |
| 940 @Unstable() | |
| 941 class ElementInstance extends EventTarget { | |
| 942 // To suppress missing implicit constructor warnings. | |
| 943 factory ElementInstance._() { throw new UnsupportedError("Not supported"); } | |
| 944 | |
| 945 /** | |
| 946 * Static factory designed to expose `abort` events to event | |
| 947 * handlers that are not necessarily instances of [ElementInstance]. | |
| 948 * | |
| 949 * See [EventStreamProvider] for usage information. | |
| 950 */ | |
| 951 @DomName('SVGElementInstance.abortEvent') | |
| 952 @DocsEditable() | |
| 953 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | |
| 954 | |
| 955 /** | |
| 956 * Static factory designed to expose `beforecopy` events to event | |
| 957 * handlers that are not necessarily instances of [ElementInstance]. | |
| 958 * | |
| 959 * See [EventStreamProvider] for usage information. | |
| 960 */ | |
| 961 @DomName('SVGElementInstance.beforecopyEvent') | |
| 962 @DocsEditable() | |
| 963 static const EventStreamProvider<Event> beforeCopyEvent = const EventStreamPro
vider<Event>('beforecopy'); | |
| 964 | |
| 965 /** | |
| 966 * Static factory designed to expose `beforecut` events to event | |
| 967 * handlers that are not necessarily instances of [ElementInstance]. | |
| 968 * | |
| 969 * See [EventStreamProvider] for usage information. | |
| 970 */ | |
| 971 @DomName('SVGElementInstance.beforecutEvent') | |
| 972 @DocsEditable() | |
| 973 static const EventStreamProvider<Event> beforeCutEvent = const EventStreamProv
ider<Event>('beforecut'); | |
| 974 | |
| 975 /** | |
| 976 * Static factory designed to expose `beforepaste` events to event | |
| 977 * handlers that are not necessarily instances of [ElementInstance]. | |
| 978 * | |
| 979 * See [EventStreamProvider] for usage information. | |
| 980 */ | |
| 981 @DomName('SVGElementInstance.beforepasteEvent') | |
| 982 @DocsEditable() | |
| 983 static const EventStreamProvider<Event> beforePasteEvent = const EventStreamPr
ovider<Event>('beforepaste'); | |
| 984 | |
| 985 /** | |
| 986 * Static factory designed to expose `blur` events to event | |
| 987 * handlers that are not necessarily instances of [ElementInstance]. | |
| 988 * | |
| 989 * See [EventStreamProvider] for usage information. | |
| 990 */ | |
| 991 @DomName('SVGElementInstance.blurEvent') | |
| 992 @DocsEditable() | |
| 993 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); | |
| 994 | |
| 995 /** | |
| 996 * Static factory designed to expose `change` events to event | |
| 997 * handlers that are not necessarily instances of [ElementInstance]. | |
| 998 * | |
| 999 * See [EventStreamProvider] for usage information. | |
| 1000 */ | |
| 1001 @DomName('SVGElementInstance.changeEvent') | |
| 1002 @DocsEditable() | |
| 1003 static const EventStreamProvider<Event> changeEvent = const EventStreamProvide
r<Event>('change'); | |
| 1004 | |
| 1005 /** | |
| 1006 * Static factory designed to expose `click` events to event | |
| 1007 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1008 * | |
| 1009 * See [EventStreamProvider] for usage information. | |
| 1010 */ | |
| 1011 @DomName('SVGElementInstance.clickEvent') | |
| 1012 @DocsEditable() | |
| 1013 static const EventStreamProvider<MouseEvent> clickEvent = const EventStreamPro
vider<MouseEvent>('click'); | |
| 1014 | |
| 1015 /** | |
| 1016 * Static factory designed to expose `contextmenu` events to event | |
| 1017 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1018 * | |
| 1019 * See [EventStreamProvider] for usage information. | |
| 1020 */ | |
| 1021 @DomName('SVGElementInstance.contextmenuEvent') | |
| 1022 @DocsEditable() | |
| 1023 static const EventStreamProvider<MouseEvent> contextMenuEvent = const EventStr
eamProvider<MouseEvent>('contextmenu'); | |
| 1024 | |
| 1025 /** | |
| 1026 * Static factory designed to expose `copy` events to event | |
| 1027 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1028 * | |
| 1029 * See [EventStreamProvider] for usage information. | |
| 1030 */ | |
| 1031 @DomName('SVGElementInstance.copyEvent') | |
| 1032 @DocsEditable() | |
| 1033 static const EventStreamProvider<Event> copyEvent = const EventStreamProvider<
Event>('copy'); | |
| 1034 | |
| 1035 /** | |
| 1036 * Static factory designed to expose `cut` events to event | |
| 1037 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1038 * | |
| 1039 * See [EventStreamProvider] for usage information. | |
| 1040 */ | |
| 1041 @DomName('SVGElementInstance.cutEvent') | |
| 1042 @DocsEditable() | |
| 1043 static const EventStreamProvider<Event> cutEvent = const EventStreamProvider<E
vent>('cut'); | |
| 1044 | |
| 1045 /** | |
| 1046 * Static factory designed to expose `doubleclick` events to event | |
| 1047 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1048 * | |
| 1049 * See [EventStreamProvider] for usage information. | |
| 1050 */ | |
| 1051 @DomName('SVGElementInstance.dblclickEvent') | |
| 1052 @DocsEditable() | |
| 1053 static const EventStreamProvider<Event> doubleClickEvent = const EventStreamPr
ovider<Event>('dblclick'); | |
| 1054 | |
| 1055 /** | |
| 1056 * Static factory designed to expose `drag` events to event | |
| 1057 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1058 * | |
| 1059 * See [EventStreamProvider] for usage information. | |
| 1060 */ | |
| 1061 @DomName('SVGElementInstance.dragEvent') | |
| 1062 @DocsEditable() | |
| 1063 static const EventStreamProvider<MouseEvent> dragEvent = const EventStreamProv
ider<MouseEvent>('drag'); | |
| 1064 | |
| 1065 /** | |
| 1066 * Static factory designed to expose `dragend` events to event | |
| 1067 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1068 * | |
| 1069 * See [EventStreamProvider] for usage information. | |
| 1070 */ | |
| 1071 @DomName('SVGElementInstance.dragendEvent') | |
| 1072 @DocsEditable() | |
| 1073 static const EventStreamProvider<MouseEvent> dragEndEvent = const EventStreamP
rovider<MouseEvent>('dragend'); | |
| 1074 | |
| 1075 /** | |
| 1076 * Static factory designed to expose `dragenter` events to event | |
| 1077 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1078 * | |
| 1079 * See [EventStreamProvider] for usage information. | |
| 1080 */ | |
| 1081 @DomName('SVGElementInstance.dragenterEvent') | |
| 1082 @DocsEditable() | |
| 1083 static const EventStreamProvider<MouseEvent> dragEnterEvent = const EventStrea
mProvider<MouseEvent>('dragenter'); | |
| 1084 | |
| 1085 /** | |
| 1086 * Static factory designed to expose `dragleave` events to event | |
| 1087 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1088 * | |
| 1089 * See [EventStreamProvider] for usage information. | |
| 1090 */ | |
| 1091 @DomName('SVGElementInstance.dragleaveEvent') | |
| 1092 @DocsEditable() | |
| 1093 static const EventStreamProvider<MouseEvent> dragLeaveEvent = const EventStrea
mProvider<MouseEvent>('dragleave'); | |
| 1094 | |
| 1095 /** | |
| 1096 * Static factory designed to expose `dragover` events to event | |
| 1097 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1098 * | |
| 1099 * See [EventStreamProvider] for usage information. | |
| 1100 */ | |
| 1101 @DomName('SVGElementInstance.dragoverEvent') | |
| 1102 @DocsEditable() | |
| 1103 static const EventStreamProvider<MouseEvent> dragOverEvent = const EventStream
Provider<MouseEvent>('dragover'); | |
| 1104 | |
| 1105 /** | |
| 1106 * Static factory designed to expose `dragstart` events to event | |
| 1107 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1108 * | |
| 1109 * See [EventStreamProvider] for usage information. | |
| 1110 */ | |
| 1111 @DomName('SVGElementInstance.dragstartEvent') | |
| 1112 @DocsEditable() | |
| 1113 static const EventStreamProvider<MouseEvent> dragStartEvent = const EventStrea
mProvider<MouseEvent>('dragstart'); | |
| 1114 | |
| 1115 /** | |
| 1116 * Static factory designed to expose `drop` events to event | |
| 1117 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1118 * | |
| 1119 * See [EventStreamProvider] for usage information. | |
| 1120 */ | |
| 1121 @DomName('SVGElementInstance.dropEvent') | |
| 1122 @DocsEditable() | |
| 1123 static const EventStreamProvider<MouseEvent> dropEvent = const EventStreamProv
ider<MouseEvent>('drop'); | |
| 1124 | |
| 1125 /** | |
| 1126 * Static factory designed to expose `error` events to event | |
| 1127 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1128 * | |
| 1129 * See [EventStreamProvider] for usage information. | |
| 1130 */ | |
| 1131 @DomName('SVGElementInstance.errorEvent') | |
| 1132 @DocsEditable() | |
| 1133 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | |
| 1134 | |
| 1135 /** | |
| 1136 * Static factory designed to expose `focus` events to event | |
| 1137 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1138 * | |
| 1139 * See [EventStreamProvider] for usage information. | |
| 1140 */ | |
| 1141 @DomName('SVGElementInstance.focusEvent') | |
| 1142 @DocsEditable() | |
| 1143 static const EventStreamProvider<Event> focusEvent = const EventStreamProvider
<Event>('focus'); | |
| 1144 | |
| 1145 /** | |
| 1146 * Static factory designed to expose `input` events to event | |
| 1147 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1148 * | |
| 1149 * See [EventStreamProvider] for usage information. | |
| 1150 */ | |
| 1151 @DomName('SVGElementInstance.inputEvent') | |
| 1152 @DocsEditable() | |
| 1153 static const EventStreamProvider<Event> inputEvent = const EventStreamProvider
<Event>('input'); | |
| 1154 | |
| 1155 /** | |
| 1156 * Static factory designed to expose `keydown` events to event | |
| 1157 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1158 * | |
| 1159 * See [EventStreamProvider] for usage information. | |
| 1160 */ | |
| 1161 @DomName('SVGElementInstance.keydownEvent') | |
| 1162 @DocsEditable() | |
| 1163 static const EventStreamProvider<KeyboardEvent> keyDownEvent = const EventStre
amProvider<KeyboardEvent>('keydown'); | |
| 1164 | |
| 1165 /** | |
| 1166 * Static factory designed to expose `keypress` events to event | |
| 1167 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1168 * | |
| 1169 * See [EventStreamProvider] for usage information. | |
| 1170 */ | |
| 1171 @DomName('SVGElementInstance.keypressEvent') | |
| 1172 @DocsEditable() | |
| 1173 static const EventStreamProvider<KeyboardEvent> keyPressEvent = const EventStr
eamProvider<KeyboardEvent>('keypress'); | |
| 1174 | |
| 1175 /** | |
| 1176 * Static factory designed to expose `keyup` events to event | |
| 1177 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1178 * | |
| 1179 * See [EventStreamProvider] for usage information. | |
| 1180 */ | |
| 1181 @DomName('SVGElementInstance.keyupEvent') | |
| 1182 @DocsEditable() | |
| 1183 static const EventStreamProvider<KeyboardEvent> keyUpEvent = const EventStream
Provider<KeyboardEvent>('keyup'); | |
| 1184 | |
| 1185 /** | |
| 1186 * Static factory designed to expose `load` events to event | |
| 1187 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1188 * | |
| 1189 * See [EventStreamProvider] for usage information. | |
| 1190 */ | |
| 1191 @DomName('SVGElementInstance.loadEvent') | |
| 1192 @DocsEditable() | |
| 1193 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<
Event>('load'); | |
| 1194 | |
| 1195 /** | |
| 1196 * Static factory designed to expose `mousedown` events to event | |
| 1197 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1198 * | |
| 1199 * See [EventStreamProvider] for usage information. | |
| 1200 */ | |
| 1201 @DomName('SVGElementInstance.mousedownEvent') | |
| 1202 @DocsEditable() | |
| 1203 static const EventStreamProvider<MouseEvent> mouseDownEvent = const EventStrea
mProvider<MouseEvent>('mousedown'); | |
| 1204 | |
| 1205 /** | |
| 1206 * Static factory designed to expose `mouseenter` events to event | |
| 1207 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1208 * | |
| 1209 * See [EventStreamProvider] for usage information. | |
| 1210 */ | |
| 1211 @DomName('SVGElementInstance.mouseenterEvent') | |
| 1212 @DocsEditable() | |
| 1213 @Experimental() // untriaged | |
| 1214 static const EventStreamProvider<MouseEvent> mouseEnterEvent = const EventStre
amProvider<MouseEvent>('mouseenter'); | |
| 1215 | |
| 1216 /** | |
| 1217 * Static factory designed to expose `mouseleave` events to event | |
| 1218 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1219 * | |
| 1220 * See [EventStreamProvider] for usage information. | |
| 1221 */ | |
| 1222 @DomName('SVGElementInstance.mouseleaveEvent') | |
| 1223 @DocsEditable() | |
| 1224 @Experimental() // untriaged | |
| 1225 static const EventStreamProvider<MouseEvent> mouseLeaveEvent = const EventStre
amProvider<MouseEvent>('mouseleave'); | |
| 1226 | |
| 1227 /** | |
| 1228 * Static factory designed to expose `mousemove` events to event | |
| 1229 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1230 * | |
| 1231 * See [EventStreamProvider] for usage information. | |
| 1232 */ | |
| 1233 @DomName('SVGElementInstance.mousemoveEvent') | |
| 1234 @DocsEditable() | |
| 1235 static const EventStreamProvider<MouseEvent> mouseMoveEvent = const EventStrea
mProvider<MouseEvent>('mousemove'); | |
| 1236 | |
| 1237 /** | |
| 1238 * Static factory designed to expose `mouseout` events to event | |
| 1239 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1240 * | |
| 1241 * See [EventStreamProvider] for usage information. | |
| 1242 */ | |
| 1243 @DomName('SVGElementInstance.mouseoutEvent') | |
| 1244 @DocsEditable() | |
| 1245 static const EventStreamProvider<MouseEvent> mouseOutEvent = const EventStream
Provider<MouseEvent>('mouseout'); | |
| 1246 | |
| 1247 /** | |
| 1248 * Static factory designed to expose `mouseover` events to event | |
| 1249 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1250 * | |
| 1251 * See [EventStreamProvider] for usage information. | |
| 1252 */ | |
| 1253 @DomName('SVGElementInstance.mouseoverEvent') | |
| 1254 @DocsEditable() | |
| 1255 static const EventStreamProvider<MouseEvent> mouseOverEvent = const EventStrea
mProvider<MouseEvent>('mouseover'); | |
| 1256 | |
| 1257 /** | |
| 1258 * Static factory designed to expose `mouseup` events to event | |
| 1259 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1260 * | |
| 1261 * See [EventStreamProvider] for usage information. | |
| 1262 */ | |
| 1263 @DomName('SVGElementInstance.mouseupEvent') | |
| 1264 @DocsEditable() | |
| 1265 static const EventStreamProvider<MouseEvent> mouseUpEvent = const EventStreamP
rovider<MouseEvent>('mouseup'); | |
| 1266 | |
| 1267 /** | |
| 1268 * Static factory designed to expose `mousewheel` events to event | |
| 1269 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1270 * | |
| 1271 * See [EventStreamProvider] for usage information. | |
| 1272 */ | |
| 1273 @DomName('SVGElementInstance.mousewheelEvent') | |
| 1274 @DocsEditable() | |
| 1275 static const EventStreamProvider<WheelEvent> mouseWheelEvent = const EventStre
amProvider<WheelEvent>('mousewheel'); | |
| 1276 | |
| 1277 /** | |
| 1278 * Static factory designed to expose `paste` events to event | |
| 1279 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1280 * | |
| 1281 * See [EventStreamProvider] for usage information. | |
| 1282 */ | |
| 1283 @DomName('SVGElementInstance.pasteEvent') | |
| 1284 @DocsEditable() | |
| 1285 static const EventStreamProvider<Event> pasteEvent = const EventStreamProvider
<Event>('paste'); | |
| 1286 | |
| 1287 /** | |
| 1288 * Static factory designed to expose `reset` events to event | |
| 1289 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1290 * | |
| 1291 * See [EventStreamProvider] for usage information. | |
| 1292 */ | |
| 1293 @DomName('SVGElementInstance.resetEvent') | |
| 1294 @DocsEditable() | |
| 1295 static const EventStreamProvider<Event> resetEvent = const EventStreamProvider
<Event>('reset'); | |
| 1296 | |
| 1297 /** | |
| 1298 * Static factory designed to expose `resize` events to event | |
| 1299 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1300 * | |
| 1301 * See [EventStreamProvider] for usage information. | |
| 1302 */ | |
| 1303 @DomName('SVGElementInstance.resizeEvent') | |
| 1304 @DocsEditable() | |
| 1305 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide
r<Event>('resize'); | |
| 1306 | |
| 1307 /** | |
| 1308 * Static factory designed to expose `scroll` events to event | |
| 1309 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1310 * | |
| 1311 * See [EventStreamProvider] for usage information. | |
| 1312 */ | |
| 1313 @DomName('SVGElementInstance.scrollEvent') | |
| 1314 @DocsEditable() | |
| 1315 static const EventStreamProvider<Event> scrollEvent = const EventStreamProvide
r<Event>('scroll'); | |
| 1316 | |
| 1317 /** | |
| 1318 * Static factory designed to expose `search` events to event | |
| 1319 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1320 * | |
| 1321 * See [EventStreamProvider] for usage information. | |
| 1322 */ | |
| 1323 @DomName('SVGElementInstance.searchEvent') | |
| 1324 @DocsEditable() | |
| 1325 // http://www.w3.org/TR/html-markup/input.search.html | |
| 1326 @Experimental() | |
| 1327 static const EventStreamProvider<Event> searchEvent = const EventStreamProvide
r<Event>('search'); | |
| 1328 | |
| 1329 /** | |
| 1330 * Static factory designed to expose `select` events to event | |
| 1331 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1332 * | |
| 1333 * See [EventStreamProvider] for usage information. | |
| 1334 */ | |
| 1335 @DomName('SVGElementInstance.selectEvent') | |
| 1336 @DocsEditable() | |
| 1337 static const EventStreamProvider<Event> selectEvent = const EventStreamProvide
r<Event>('select'); | |
| 1338 | |
| 1339 /** | |
| 1340 * Static factory designed to expose `selectstart` events to event | |
| 1341 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1342 * | |
| 1343 * See [EventStreamProvider] for usage information. | |
| 1344 */ | |
| 1345 @DomName('SVGElementInstance.selectstartEvent') | |
| 1346 @DocsEditable() | |
| 1347 static const EventStreamProvider<Event> selectStartEvent = const EventStreamPr
ovider<Event>('selectstart'); | |
| 1348 | |
| 1349 /** | |
| 1350 * Static factory designed to expose `submit` events to event | |
| 1351 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1352 * | |
| 1353 * See [EventStreamProvider] for usage information. | |
| 1354 */ | |
| 1355 @DomName('SVGElementInstance.submitEvent') | |
| 1356 @DocsEditable() | |
| 1357 static const EventStreamProvider<Event> submitEvent = const EventStreamProvide
r<Event>('submit'); | |
| 1358 | |
| 1359 /** | |
| 1360 * Static factory designed to expose `unload` events to event | |
| 1361 * handlers that are not necessarily instances of [ElementInstance]. | |
| 1362 * | |
| 1363 * See [EventStreamProvider] for usage information. | |
| 1364 */ | |
| 1365 @DomName('SVGElementInstance.unloadEvent') | |
| 1366 @DocsEditable() | |
| 1367 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide
r<Event>('unload'); | |
| 1368 | |
| 1369 @DomName('SVGElementInstance.correspondingElement') | |
| 1370 @DocsEditable() | |
| 1371 SvgElement get correspondingElement => _blink.BlinkSVGElementInstance.correspo
ndingElement_Getter(this); | |
| 1372 | |
| 1373 @DomName('SVGElementInstance.correspondingUseElement') | |
| 1374 @DocsEditable() | |
| 1375 UseElement get correspondingUseElement => _blink.BlinkSVGElementInstance.corre
spondingUseElement_Getter(this); | |
| 1376 | |
| 1377 @DomName('SVGElementInstance.firstChild') | |
| 1378 @DocsEditable() | |
| 1379 ElementInstance get firstChild => _blink.BlinkSVGElementInstance.firstChild_Ge
tter(this); | |
| 1380 | |
| 1381 @DomName('SVGElementInstance.lastChild') | |
| 1382 @DocsEditable() | |
| 1383 ElementInstance get lastChild => _blink.BlinkSVGElementInstance.lastChild_Gett
er(this); | |
| 1384 | |
| 1385 @DomName('SVGElementInstance.nextSibling') | |
| 1386 @DocsEditable() | |
| 1387 ElementInstance get nextSibling => _blink.BlinkSVGElementInstance.nextSibling_
Getter(this); | |
| 1388 | |
| 1389 @DomName('SVGElementInstance.parentNode') | |
| 1390 @DocsEditable() | |
| 1391 ElementInstance get parentNode => _blink.BlinkSVGElementInstance.parentNode_Ge
tter(this); | |
| 1392 | |
| 1393 @DomName('SVGElementInstance.previousSibling') | |
| 1394 @DocsEditable() | |
| 1395 ElementInstance get previousSibling => _blink.BlinkSVGElementInstance.previous
Sibling_Getter(this); | |
| 1396 | |
| 1397 /// Stream of `abort` events handled by this [ElementInstance]. | |
| 1398 @DomName('SVGElementInstance.onabort') | |
| 1399 @DocsEditable() | |
| 1400 Stream<Event> get onAbort => abortEvent.forTarget(this); | |
| 1401 | |
| 1402 /// Stream of `beforecopy` events handled by this [ElementInstance]. | |
| 1403 @DomName('SVGElementInstance.onbeforecopy') | |
| 1404 @DocsEditable() | |
| 1405 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); | |
| 1406 | |
| 1407 /// Stream of `beforecut` events handled by this [ElementInstance]. | |
| 1408 @DomName('SVGElementInstance.onbeforecut') | |
| 1409 @DocsEditable() | |
| 1410 Stream<Event> get onBeforeCut => beforeCutEvent.forTarget(this); | |
| 1411 | |
| 1412 /// Stream of `beforepaste` events handled by this [ElementInstance]. | |
| 1413 @DomName('SVGElementInstance.onbeforepaste') | |
| 1414 @DocsEditable() | |
| 1415 Stream<Event> get onBeforePaste => beforePasteEvent.forTarget(this); | |
| 1416 | |
| 1417 /// Stream of `blur` events handled by this [ElementInstance]. | |
| 1418 @DomName('SVGElementInstance.onblur') | |
| 1419 @DocsEditable() | |
| 1420 Stream<Event> get onBlur => blurEvent.forTarget(this); | |
| 1421 | |
| 1422 /// Stream of `change` events handled by this [ElementInstance]. | |
| 1423 @DomName('SVGElementInstance.onchange') | |
| 1424 @DocsEditable() | |
| 1425 Stream<Event> get onChange => changeEvent.forTarget(this); | |
| 1426 | |
| 1427 /// Stream of `click` events handled by this [ElementInstance]. | |
| 1428 @DomName('SVGElementInstance.onclick') | |
| 1429 @DocsEditable() | |
| 1430 Stream<MouseEvent> get onClick => clickEvent.forTarget(this); | |
| 1431 | |
| 1432 /// Stream of `contextmenu` events handled by this [ElementInstance]. | |
| 1433 @DomName('SVGElementInstance.oncontextmenu') | |
| 1434 @DocsEditable() | |
| 1435 Stream<MouseEvent> get onContextMenu => contextMenuEvent.forTarget(this); | |
| 1436 | |
| 1437 /// Stream of `copy` events handled by this [ElementInstance]. | |
| 1438 @DomName('SVGElementInstance.oncopy') | |
| 1439 @DocsEditable() | |
| 1440 Stream<Event> get onCopy => copyEvent.forTarget(this); | |
| 1441 | |
| 1442 /// Stream of `cut` events handled by this [ElementInstance]. | |
| 1443 @DomName('SVGElementInstance.oncut') | |
| 1444 @DocsEditable() | |
| 1445 Stream<Event> get onCut => cutEvent.forTarget(this); | |
| 1446 | |
| 1447 /// Stream of `doubleclick` events handled by this [ElementInstance]. | |
| 1448 @DomName('SVGElementInstance.ondblclick') | |
| 1449 @DocsEditable() | |
| 1450 Stream<Event> get onDoubleClick => doubleClickEvent.forTarget(this); | |
| 1451 | |
| 1452 /// Stream of `drag` events handled by this [ElementInstance]. | |
| 1453 @DomName('SVGElementInstance.ondrag') | |
| 1454 @DocsEditable() | |
| 1455 Stream<MouseEvent> get onDrag => dragEvent.forTarget(this); | |
| 1456 | |
| 1457 /// Stream of `dragend` events handled by this [ElementInstance]. | |
| 1458 @DomName('SVGElementInstance.ondragend') | |
| 1459 @DocsEditable() | |
| 1460 Stream<MouseEvent> get onDragEnd => dragEndEvent.forTarget(this); | |
| 1461 | |
| 1462 /// Stream of `dragenter` events handled by this [ElementInstance]. | |
| 1463 @DomName('SVGElementInstance.ondragenter') | |
| 1464 @DocsEditable() | |
| 1465 Stream<MouseEvent> get onDragEnter => dragEnterEvent.forTarget(this); | |
| 1466 | |
| 1467 /// Stream of `dragleave` events handled by this [ElementInstance]. | |
| 1468 @DomName('SVGElementInstance.ondragleave') | |
| 1469 @DocsEditable() | |
| 1470 Stream<MouseEvent> get onDragLeave => dragLeaveEvent.forTarget(this); | |
| 1471 | |
| 1472 /// Stream of `dragover` events handled by this [ElementInstance]. | |
| 1473 @DomName('SVGElementInstance.ondragover') | |
| 1474 @DocsEditable() | |
| 1475 Stream<MouseEvent> get onDragOver => dragOverEvent.forTarget(this); | |
| 1476 | |
| 1477 /// Stream of `dragstart` events handled by this [ElementInstance]. | |
| 1478 @DomName('SVGElementInstance.ondragstart') | |
| 1479 @DocsEditable() | |
| 1480 Stream<MouseEvent> get onDragStart => dragStartEvent.forTarget(this); | |
| 1481 | |
| 1482 /// Stream of `drop` events handled by this [ElementInstance]. | |
| 1483 @DomName('SVGElementInstance.ondrop') | |
| 1484 @DocsEditable() | |
| 1485 Stream<MouseEvent> get onDrop => dropEvent.forTarget(this); | |
| 1486 | |
| 1487 /// Stream of `error` events handled by this [ElementInstance]. | |
| 1488 @DomName('SVGElementInstance.onerror') | |
| 1489 @DocsEditable() | |
| 1490 Stream<Event> get onError => errorEvent.forTarget(this); | |
| 1491 | |
| 1492 /// Stream of `focus` events handled by this [ElementInstance]. | |
| 1493 @DomName('SVGElementInstance.onfocus') | |
| 1494 @DocsEditable() | |
| 1495 Stream<Event> get onFocus => focusEvent.forTarget(this); | |
| 1496 | |
| 1497 /// Stream of `input` events handled by this [ElementInstance]. | |
| 1498 @DomName('SVGElementInstance.oninput') | |
| 1499 @DocsEditable() | |
| 1500 Stream<Event> get onInput => inputEvent.forTarget(this); | |
| 1501 | |
| 1502 /// Stream of `keydown` events handled by this [ElementInstance]. | |
| 1503 @DomName('SVGElementInstance.onkeydown') | |
| 1504 @DocsEditable() | |
| 1505 Stream<KeyboardEvent> get onKeyDown => keyDownEvent.forTarget(this); | |
| 1506 | |
| 1507 /// Stream of `keypress` events handled by this [ElementInstance]. | |
| 1508 @DomName('SVGElementInstance.onkeypress') | |
| 1509 @DocsEditable() | |
| 1510 Stream<KeyboardEvent> get onKeyPress => keyPressEvent.forTarget(this); | |
| 1511 | |
| 1512 /// Stream of `keyup` events handled by this [ElementInstance]. | |
| 1513 @DomName('SVGElementInstance.onkeyup') | |
| 1514 @DocsEditable() | |
| 1515 Stream<KeyboardEvent> get onKeyUp => keyUpEvent.forTarget(this); | |
| 1516 | |
| 1517 /// Stream of `load` events handled by this [ElementInstance]. | |
| 1518 @DomName('SVGElementInstance.onload') | |
| 1519 @DocsEditable() | |
| 1520 Stream<Event> get onLoad => loadEvent.forTarget(this); | |
| 1521 | |
| 1522 /// Stream of `mousedown` events handled by this [ElementInstance]. | |
| 1523 @DomName('SVGElementInstance.onmousedown') | |
| 1524 @DocsEditable() | |
| 1525 Stream<MouseEvent> get onMouseDown => mouseDownEvent.forTarget(this); | |
| 1526 | |
| 1527 /// Stream of `mouseenter` events handled by this [ElementInstance]. | |
| 1528 @DomName('SVGElementInstance.onmouseenter') | |
| 1529 @DocsEditable() | |
| 1530 @Experimental() // untriaged | |
| 1531 Stream<MouseEvent> get onMouseEnter => mouseEnterEvent.forTarget(this); | |
| 1532 | |
| 1533 /// Stream of `mouseleave` events handled by this [ElementInstance]. | |
| 1534 @DomName('SVGElementInstance.onmouseleave') | |
| 1535 @DocsEditable() | |
| 1536 @Experimental() // untriaged | |
| 1537 Stream<MouseEvent> get onMouseLeave => mouseLeaveEvent.forTarget(this); | |
| 1538 | |
| 1539 /// Stream of `mousemove` events handled by this [ElementInstance]. | |
| 1540 @DomName('SVGElementInstance.onmousemove') | |
| 1541 @DocsEditable() | |
| 1542 Stream<MouseEvent> get onMouseMove => mouseMoveEvent.forTarget(this); | |
| 1543 | |
| 1544 /// Stream of `mouseout` events handled by this [ElementInstance]. | |
| 1545 @DomName('SVGElementInstance.onmouseout') | |
| 1546 @DocsEditable() | |
| 1547 Stream<MouseEvent> get onMouseOut => mouseOutEvent.forTarget(this); | |
| 1548 | |
| 1549 /// Stream of `mouseover` events handled by this [ElementInstance]. | |
| 1550 @DomName('SVGElementInstance.onmouseover') | |
| 1551 @DocsEditable() | |
| 1552 Stream<MouseEvent> get onMouseOver => mouseOverEvent.forTarget(this); | |
| 1553 | |
| 1554 /// Stream of `mouseup` events handled by this [ElementInstance]. | |
| 1555 @DomName('SVGElementInstance.onmouseup') | |
| 1556 @DocsEditable() | |
| 1557 Stream<MouseEvent> get onMouseUp => mouseUpEvent.forTarget(this); | |
| 1558 | |
| 1559 /// Stream of `mousewheel` events handled by this [ElementInstance]. | |
| 1560 @DomName('SVGElementInstance.onmousewheel') | |
| 1561 @DocsEditable() | |
| 1562 Stream<WheelEvent> get onMouseWheel => mouseWheelEvent.forTarget(this); | |
| 1563 | |
| 1564 /// Stream of `paste` events handled by this [ElementInstance]. | |
| 1565 @DomName('SVGElementInstance.onpaste') | |
| 1566 @DocsEditable() | |
| 1567 Stream<Event> get onPaste => pasteEvent.forTarget(this); | |
| 1568 | |
| 1569 /// Stream of `reset` events handled by this [ElementInstance]. | |
| 1570 @DomName('SVGElementInstance.onreset') | |
| 1571 @DocsEditable() | |
| 1572 Stream<Event> get onReset => resetEvent.forTarget(this); | |
| 1573 | |
| 1574 /// Stream of `resize` events handled by this [ElementInstance]. | |
| 1575 @DomName('SVGElementInstance.onresize') | |
| 1576 @DocsEditable() | |
| 1577 Stream<Event> get onResize => resizeEvent.forTarget(this); | |
| 1578 | |
| 1579 /// Stream of `scroll` events handled by this [ElementInstance]. | |
| 1580 @DomName('SVGElementInstance.onscroll') | |
| 1581 @DocsEditable() | |
| 1582 Stream<Event> get onScroll => scrollEvent.forTarget(this); | |
| 1583 | |
| 1584 /// Stream of `search` events handled by this [ElementInstance]. | |
| 1585 @DomName('SVGElementInstance.onsearch') | |
| 1586 @DocsEditable() | |
| 1587 // http://www.w3.org/TR/html-markup/input.search.html | |
| 1588 @Experimental() | |
| 1589 Stream<Event> get onSearch => searchEvent.forTarget(this); | |
| 1590 | |
| 1591 /// Stream of `select` events handled by this [ElementInstance]. | |
| 1592 @DomName('SVGElementInstance.onselect') | |
| 1593 @DocsEditable() | |
| 1594 Stream<Event> get onSelect => selectEvent.forTarget(this); | |
| 1595 | |
| 1596 /// Stream of `selectstart` events handled by this [ElementInstance]. | |
| 1597 @DomName('SVGElementInstance.onselectstart') | |
| 1598 @DocsEditable() | |
| 1599 Stream<Event> get onSelectStart => selectStartEvent.forTarget(this); | |
| 1600 | |
| 1601 /// Stream of `submit` events handled by this [ElementInstance]. | |
| 1602 @DomName('SVGElementInstance.onsubmit') | |
| 1603 @DocsEditable() | |
| 1604 Stream<Event> get onSubmit => submitEvent.forTarget(this); | |
| 1605 | |
| 1606 /// Stream of `unload` events handled by this [ElementInstance]. | |
| 1607 @DomName('SVGElementInstance.onunload') | |
| 1608 @DocsEditable() | |
| 1609 Stream<Event> get onUnload => unloadEvent.forTarget(this); | |
| 1610 | |
| 1611 } | |
| 1612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 1613 // for details. All rights reserved. Use of this source code is governed by a | |
| 1614 // BSD-style license that can be found in the LICENSE file. | |
| 1615 | |
| 1616 // WARNING: Do not edit - generated code. | |
| 1617 | |
| 1618 | |
| 1619 @DocsEditable() | |
| 1620 @DomName('SVGEllipseElement') | 937 @DomName('SVGEllipseElement') |
| 1621 @Unstable() | 938 @Unstable() |
| 1622 class EllipseElement extends GeometryElement { | 939 class EllipseElement extends GeometryElement { |
| 1623 // To suppress missing implicit constructor warnings. | 940 // To suppress missing implicit constructor warnings. |
| 1624 factory EllipseElement._() { throw new UnsupportedError("Not supported"); } | 941 factory EllipseElement._() { throw new UnsupportedError("Not supported"); } |
| 1625 | 942 |
| 1626 @DomName('SVGEllipseElement.SVGEllipseElement') | 943 @DomName('SVGEllipseElement.SVGEllipseElement') |
| 1627 @DocsEditable() | 944 @DocsEditable() |
| 1628 factory EllipseElement() => _SvgElementFactoryProvider.createSvgElement_tag("e
llipse"); | 945 factory EllipseElement() => _SvgElementFactoryProvider.createSvgElement_tag("e
llipse"); |
| 1629 /** | 946 /** |
| (...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3624 // WARNING: Do not edit - generated code. | 2941 // WARNING: Do not edit - generated code. |
| 3625 | 2942 |
| 3626 | 2943 |
| 3627 @DocsEditable() | 2944 @DocsEditable() |
| 3628 @DomName('SVGLengthList') | 2945 @DomName('SVGLengthList') |
| 3629 @Unstable() | 2946 @Unstable() |
| 3630 class LengthList extends NativeFieldWrapperClass2 with ListMixin<Length>, Immuta
bleListMixin<Length> implements List<Length> { | 2947 class LengthList extends NativeFieldWrapperClass2 with ListMixin<Length>, Immuta
bleListMixin<Length> implements List<Length> { |
| 3631 // To suppress missing implicit constructor warnings. | 2948 // To suppress missing implicit constructor warnings. |
| 3632 factory LengthList._() { throw new UnsupportedError("Not supported"); } | 2949 factory LengthList._() { throw new UnsupportedError("Not supported"); } |
| 3633 | 2950 |
| 2951 @DomName('SVGLengthList.length') |
| 2952 @DocsEditable() |
| 2953 @Experimental() // untriaged |
| 2954 int get length => _blink.BlinkSVGLengthList.length_Getter(this); |
| 2955 |
| 3634 @DomName('SVGLengthList.numberOfItems') | 2956 @DomName('SVGLengthList.numberOfItems') |
| 3635 @DocsEditable() | 2957 @DocsEditable() |
| 3636 int get numberOfItems => _blink.BlinkSVGLengthList.numberOfItems_Getter(this); | 2958 int get numberOfItems => _blink.BlinkSVGLengthList.numberOfItems_Getter(this); |
| 3637 | 2959 |
| 3638 Length operator[](int index) { | 2960 Length operator[](int index) { |
| 3639 if (index < 0 || index >= length) | 2961 if (index < 0 || index >= length) |
| 3640 throw new RangeError.range(index, 0, length); | 2962 throw new RangeError.range(index, 0, length); |
| 3641 return getItem(index); | 2963 return getItem(index); |
| 3642 } | 2964 } |
| 3643 | 2965 |
| 3644 void operator[]=(int index, Length value) { | 2966 void operator[]=(int index, Length value) { |
| 3645 throw new UnsupportedError("Cannot assign element of immutable List."); | 2967 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 3646 } | 2968 } |
| 3647 // -- start List<Length> mixins. | 2969 // -- start List<Length> mixins. |
| 3648 // Length is the element type. | 2970 // Length is the element type. |
| 3649 | 2971 |
| 3650 // SVG Collections expose numberOfItems rather than length. | |
| 3651 int get length => numberOfItems; | |
| 3652 | 2972 |
| 3653 void set length(int value) { | 2973 void set length(int value) { |
| 3654 throw new UnsupportedError("Cannot resize immutable List."); | 2974 throw new UnsupportedError("Cannot resize immutable List."); |
| 3655 } | 2975 } |
| 3656 | 2976 |
| 3657 Length get first { | 2977 Length get first { |
| 3658 if (this.length > 0) { | 2978 if (this.length > 0) { |
| 3659 return getItem(0); | 2979 return getItem(0); |
| 3660 } | 2980 } |
| 3661 throw new StateError("No elements"); | 2981 throw new StateError("No elements"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3674 if (len == 1) { | 2994 if (len == 1) { |
| 3675 return getItem(0); | 2995 return getItem(0); |
| 3676 } | 2996 } |
| 3677 if (len == 0) throw new StateError("No elements"); | 2997 if (len == 0) throw new StateError("No elements"); |
| 3678 throw new StateError("More than one element"); | 2998 throw new StateError("More than one element"); |
| 3679 } | 2999 } |
| 3680 | 3000 |
| 3681 Length elementAt(int index) => this[index]; | 3001 Length elementAt(int index) => this[index]; |
| 3682 // -- end List<Length> mixins. | 3002 // -- end List<Length> mixins. |
| 3683 | 3003 |
| 3004 @DomName('SVGLengthList.__setter__') |
| 3005 @DocsEditable() |
| 3006 @Experimental() // untriaged |
| 3007 void __setter__(int index, Length value) => _blink.BlinkSVGLengthList.$__sette
r___Callback_ul_SVGLength(this, index, value); |
| 3008 |
| 3684 @DomName('SVGLengthList.appendItem') | 3009 @DomName('SVGLengthList.appendItem') |
| 3685 @DocsEditable() | 3010 @DocsEditable() |
| 3686 Length appendItem(Length item) => _blink.BlinkSVGLengthList.appendItem_Callbac
k_SVGLength(this, item); | 3011 Length appendItem(Length item) => _blink.BlinkSVGLengthList.appendItem_Callbac
k_SVGLength(this, item); |
| 3687 | 3012 |
| 3688 @DomName('SVGLengthList.clear') | 3013 @DomName('SVGLengthList.clear') |
| 3689 @DocsEditable() | 3014 @DocsEditable() |
| 3690 void clear() => _blink.BlinkSVGLengthList.clear_Callback(this); | 3015 void clear() => _blink.BlinkSVGLengthList.clear_Callback(this); |
| 3691 | 3016 |
| 3692 @DomName('SVGLengthList.getItem') | 3017 @DomName('SVGLengthList.getItem') |
| 3693 @DocsEditable() | 3018 @DocsEditable() |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4108 // WARNING: Do not edit - generated code. | 3433 // WARNING: Do not edit - generated code. |
| 4109 | 3434 |
| 4110 | 3435 |
| 4111 @DocsEditable() | 3436 @DocsEditable() |
| 4112 @DomName('SVGNumberList') | 3437 @DomName('SVGNumberList') |
| 4113 @Unstable() | 3438 @Unstable() |
| 4114 class NumberList extends NativeFieldWrapperClass2 with ListMixin<Number>, Immuta
bleListMixin<Number> implements List<Number> { | 3439 class NumberList extends NativeFieldWrapperClass2 with ListMixin<Number>, Immuta
bleListMixin<Number> implements List<Number> { |
| 4115 // To suppress missing implicit constructor warnings. | 3440 // To suppress missing implicit constructor warnings. |
| 4116 factory NumberList._() { throw new UnsupportedError("Not supported"); } | 3441 factory NumberList._() { throw new UnsupportedError("Not supported"); } |
| 4117 | 3442 |
| 3443 @DomName('SVGNumberList.length') |
| 3444 @DocsEditable() |
| 3445 @Experimental() // untriaged |
| 3446 int get length => _blink.BlinkSVGNumberList.length_Getter(this); |
| 3447 |
| 4118 @DomName('SVGNumberList.numberOfItems') | 3448 @DomName('SVGNumberList.numberOfItems') |
| 4119 @DocsEditable() | 3449 @DocsEditable() |
| 4120 int get numberOfItems => _blink.BlinkSVGNumberList.numberOfItems_Getter(this); | 3450 int get numberOfItems => _blink.BlinkSVGNumberList.numberOfItems_Getter(this); |
| 4121 | 3451 |
| 4122 Number operator[](int index) { | 3452 Number operator[](int index) { |
| 4123 if (index < 0 || index >= length) | 3453 if (index < 0 || index >= length) |
| 4124 throw new RangeError.range(index, 0, length); | 3454 throw new RangeError.range(index, 0, length); |
| 4125 return getItem(index); | 3455 return getItem(index); |
| 4126 } | 3456 } |
| 4127 | 3457 |
| 4128 void operator[]=(int index, Number value) { | 3458 void operator[]=(int index, Number value) { |
| 4129 throw new UnsupportedError("Cannot assign element of immutable List."); | 3459 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 4130 } | 3460 } |
| 4131 // -- start List<Number> mixins. | 3461 // -- start List<Number> mixins. |
| 4132 // Number is the element type. | 3462 // Number is the element type. |
| 4133 | 3463 |
| 4134 // SVG Collections expose numberOfItems rather than length. | |
| 4135 int get length => numberOfItems; | |
| 4136 | 3464 |
| 4137 void set length(int value) { | 3465 void set length(int value) { |
| 4138 throw new UnsupportedError("Cannot resize immutable List."); | 3466 throw new UnsupportedError("Cannot resize immutable List."); |
| 4139 } | 3467 } |
| 4140 | 3468 |
| 4141 Number get first { | 3469 Number get first { |
| 4142 if (this.length > 0) { | 3470 if (this.length > 0) { |
| 4143 return getItem(0); | 3471 return getItem(0); |
| 4144 } | 3472 } |
| 4145 throw new StateError("No elements"); | 3473 throw new StateError("No elements"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 4158 if (len == 1) { | 3486 if (len == 1) { |
| 4159 return getItem(0); | 3487 return getItem(0); |
| 4160 } | 3488 } |
| 4161 if (len == 0) throw new StateError("No elements"); | 3489 if (len == 0) throw new StateError("No elements"); |
| 4162 throw new StateError("More than one element"); | 3490 throw new StateError("More than one element"); |
| 4163 } | 3491 } |
| 4164 | 3492 |
| 4165 Number elementAt(int index) => this[index]; | 3493 Number elementAt(int index) => this[index]; |
| 4166 // -- end List<Number> mixins. | 3494 // -- end List<Number> mixins. |
| 4167 | 3495 |
| 3496 @DomName('SVGNumberList.__setter__') |
| 3497 @DocsEditable() |
| 3498 @Experimental() // untriaged |
| 3499 void __setter__(int index, Number value) => _blink.BlinkSVGNumberList.$__sette
r___Callback_ul_SVGNumber(this, index, value); |
| 3500 |
| 4168 @DomName('SVGNumberList.appendItem') | 3501 @DomName('SVGNumberList.appendItem') |
| 4169 @DocsEditable() | 3502 @DocsEditable() |
| 4170 Number appendItem(Number item) => _blink.BlinkSVGNumberList.appendItem_Callbac
k_SVGNumber(this, item); | 3503 Number appendItem(Number item) => _blink.BlinkSVGNumberList.appendItem_Callbac
k_SVGNumber(this, item); |
| 4171 | 3504 |
| 4172 @DomName('SVGNumberList.clear') | 3505 @DomName('SVGNumberList.clear') |
| 4173 @DocsEditable() | 3506 @DocsEditable() |
| 4174 void clear() => _blink.BlinkSVGNumberList.clear_Callback(this); | 3507 void clear() => _blink.BlinkSVGNumberList.clear_Callback(this); |
| 4175 | 3508 |
| 4176 @DomName('SVGNumberList.getItem') | 3509 @DomName('SVGNumberList.getItem') |
| 4177 @DocsEditable() | 3510 @DocsEditable() |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5124 // WARNING: Do not edit - generated code. | 4457 // WARNING: Do not edit - generated code. |
| 5125 | 4458 |
| 5126 | 4459 |
| 5127 @DocsEditable() | 4460 @DocsEditable() |
| 5128 @DomName('SVGPathSegList') | 4461 @DomName('SVGPathSegList') |
| 5129 @Unstable() | 4462 @Unstable() |
| 5130 class PathSegList extends NativeFieldWrapperClass2 with ListMixin<PathSeg>, Immu
tableListMixin<PathSeg> implements List<PathSeg> { | 4463 class PathSegList extends NativeFieldWrapperClass2 with ListMixin<PathSeg>, Immu
tableListMixin<PathSeg> implements List<PathSeg> { |
| 5131 // To suppress missing implicit constructor warnings. | 4464 // To suppress missing implicit constructor warnings. |
| 5132 factory PathSegList._() { throw new UnsupportedError("Not supported"); } | 4465 factory PathSegList._() { throw new UnsupportedError("Not supported"); } |
| 5133 | 4466 |
| 4467 @DomName('SVGPathSegList.length') |
| 4468 @DocsEditable() |
| 4469 @Experimental() // untriaged |
| 4470 int get length => _blink.BlinkSVGPathSegList.length_Getter(this); |
| 4471 |
| 5134 @DomName('SVGPathSegList.numberOfItems') | 4472 @DomName('SVGPathSegList.numberOfItems') |
| 5135 @DocsEditable() | 4473 @DocsEditable() |
| 5136 int get numberOfItems => _blink.BlinkSVGPathSegList.numberOfItems_Getter(this)
; | 4474 int get numberOfItems => _blink.BlinkSVGPathSegList.numberOfItems_Getter(this)
; |
| 5137 | 4475 |
| 5138 PathSeg operator[](int index) { | 4476 PathSeg operator[](int index) { |
| 5139 if (index < 0 || index >= length) | 4477 if (index < 0 || index >= length) |
| 5140 throw new RangeError.range(index, 0, length); | 4478 throw new RangeError.range(index, 0, length); |
| 5141 return getItem(index); | 4479 return getItem(index); |
| 5142 } | 4480 } |
| 5143 | 4481 |
| 5144 void operator[]=(int index, PathSeg value) { | 4482 void operator[]=(int index, PathSeg value) { |
| 5145 throw new UnsupportedError("Cannot assign element of immutable List."); | 4483 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 5146 } | 4484 } |
| 5147 // -- start List<PathSeg> mixins. | 4485 // -- start List<PathSeg> mixins. |
| 5148 // PathSeg is the element type. | 4486 // PathSeg is the element type. |
| 5149 | 4487 |
| 5150 // SVG Collections expose numberOfItems rather than length. | |
| 5151 int get length => numberOfItems; | |
| 5152 | 4488 |
| 5153 void set length(int value) { | 4489 void set length(int value) { |
| 5154 throw new UnsupportedError("Cannot resize immutable List."); | 4490 throw new UnsupportedError("Cannot resize immutable List."); |
| 5155 } | 4491 } |
| 5156 | 4492 |
| 5157 PathSeg get first { | 4493 PathSeg get first { |
| 5158 if (this.length > 0) { | 4494 if (this.length > 0) { |
| 5159 return getItem(0); | 4495 return getItem(0); |
| 5160 } | 4496 } |
| 5161 throw new StateError("No elements"); | 4497 throw new StateError("No elements"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5174 if (len == 1) { | 4510 if (len == 1) { |
| 5175 return getItem(0); | 4511 return getItem(0); |
| 5176 } | 4512 } |
| 5177 if (len == 0) throw new StateError("No elements"); | 4513 if (len == 0) throw new StateError("No elements"); |
| 5178 throw new StateError("More than one element"); | 4514 throw new StateError("More than one element"); |
| 5179 } | 4515 } |
| 5180 | 4516 |
| 5181 PathSeg elementAt(int index) => this[index]; | 4517 PathSeg elementAt(int index) => this[index]; |
| 5182 // -- end List<PathSeg> mixins. | 4518 // -- end List<PathSeg> mixins. |
| 5183 | 4519 |
| 4520 @DomName('SVGPathSegList.__setter__') |
| 4521 @DocsEditable() |
| 4522 @Experimental() // untriaged |
| 4523 void __setter__(int index, PathSeg value) => _blink.BlinkSVGPathSegList.$__set
ter___Callback_ul_SVGPathSeg(this, index, value); |
| 4524 |
| 5184 @DomName('SVGPathSegList.appendItem') | 4525 @DomName('SVGPathSegList.appendItem') |
| 5185 @DocsEditable() | 4526 @DocsEditable() |
| 5186 PathSeg appendItem(PathSeg newItem) => _blink.BlinkSVGPathSegList.appendItem_C
allback_SVGPathSeg(this, newItem); | 4527 PathSeg appendItem(PathSeg newItem) => _blink.BlinkSVGPathSegList.appendItem_C
allback_SVGPathSeg(this, newItem); |
| 5187 | 4528 |
| 5188 @DomName('SVGPathSegList.clear') | 4529 @DomName('SVGPathSegList.clear') |
| 5189 @DocsEditable() | 4530 @DocsEditable() |
| 5190 void clear() => _blink.BlinkSVGPathSegList.clear_Callback(this); | 4531 void clear() => _blink.BlinkSVGPathSegList.clear_Callback(this); |
| 5191 | 4532 |
| 5192 @DomName('SVGPathSegList.getItem') | 4533 @DomName('SVGPathSegList.getItem') |
| 5193 @DocsEditable() | 4534 @DocsEditable() |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5395 // WARNING: Do not edit - generated code. | 4736 // WARNING: Do not edit - generated code. |
| 5396 | 4737 |
| 5397 | 4738 |
| 5398 @DocsEditable() | 4739 @DocsEditable() |
| 5399 @DomName('SVGPointList') | 4740 @DomName('SVGPointList') |
| 5400 @Unstable() | 4741 @Unstable() |
| 5401 class PointList extends NativeFieldWrapperClass2 { | 4742 class PointList extends NativeFieldWrapperClass2 { |
| 5402 // To suppress missing implicit constructor warnings. | 4743 // To suppress missing implicit constructor warnings. |
| 5403 factory PointList._() { throw new UnsupportedError("Not supported"); } | 4744 factory PointList._() { throw new UnsupportedError("Not supported"); } |
| 5404 | 4745 |
| 4746 @DomName('SVGPointList.length') |
| 4747 @DocsEditable() |
| 4748 @Experimental() // untriaged |
| 4749 int get length => _blink.BlinkSVGPointList.length_Getter(this); |
| 4750 |
| 5405 @DomName('SVGPointList.numberOfItems') | 4751 @DomName('SVGPointList.numberOfItems') |
| 5406 @DocsEditable() | 4752 @DocsEditable() |
| 5407 int get numberOfItems => _blink.BlinkSVGPointList.numberOfItems_Getter(this); | 4753 int get numberOfItems => _blink.BlinkSVGPointList.numberOfItems_Getter(this); |
| 5408 | 4754 |
| 4755 @DomName('SVGPointList.__setter__') |
| 4756 @DocsEditable() |
| 4757 @Experimental() // untriaged |
| 4758 void __setter__(int index, Point value) => _blink.BlinkSVGPointList.$__setter_
__Callback_ul_SVGPoint(this, index, value); |
| 4759 |
| 5409 @DomName('SVGPointList.appendItem') | 4760 @DomName('SVGPointList.appendItem') |
| 5410 @DocsEditable() | 4761 @DocsEditable() |
| 5411 Point appendItem(Point item) => _blink.BlinkSVGPointList.appendItem_Callback_S
VGPoint(this, item); | 4762 Point appendItem(Point item) => _blink.BlinkSVGPointList.appendItem_Callback_S
VGPoint(this, item); |
| 5412 | 4763 |
| 5413 @DomName('SVGPointList.clear') | 4764 @DomName('SVGPointList.clear') |
| 5414 @DocsEditable() | 4765 @DocsEditable() |
| 5415 void clear() => _blink.BlinkSVGPointList.clear_Callback(this); | 4766 void clear() => _blink.BlinkSVGPointList.clear_Callback(this); |
| 5416 | 4767 |
| 5417 @DomName('SVGPointList.getItem') | 4768 @DomName('SVGPointList.getItem') |
| 5418 @DocsEditable() | 4769 @DocsEditable() |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5876 // WARNING: Do not edit - generated code. | 5227 // WARNING: Do not edit - generated code. |
| 5877 | 5228 |
| 5878 | 5229 |
| 5879 @DocsEditable() | 5230 @DocsEditable() |
| 5880 @DomName('SVGStringList') | 5231 @DomName('SVGStringList') |
| 5881 @Unstable() | 5232 @Unstable() |
| 5882 class StringList extends NativeFieldWrapperClass2 with ListMixin<String>, Immuta
bleListMixin<String> implements List<String> { | 5233 class StringList extends NativeFieldWrapperClass2 with ListMixin<String>, Immuta
bleListMixin<String> implements List<String> { |
| 5883 // To suppress missing implicit constructor warnings. | 5234 // To suppress missing implicit constructor warnings. |
| 5884 factory StringList._() { throw new UnsupportedError("Not supported"); } | 5235 factory StringList._() { throw new UnsupportedError("Not supported"); } |
| 5885 | 5236 |
| 5237 @DomName('SVGStringList.length') |
| 5238 @DocsEditable() |
| 5239 @Experimental() // untriaged |
| 5240 int get length => _blink.BlinkSVGStringList.length_Getter(this); |
| 5241 |
| 5886 @DomName('SVGStringList.numberOfItems') | 5242 @DomName('SVGStringList.numberOfItems') |
| 5887 @DocsEditable() | 5243 @DocsEditable() |
| 5888 int get numberOfItems => _blink.BlinkSVGStringList.numberOfItems_Getter(this); | 5244 int get numberOfItems => _blink.BlinkSVGStringList.numberOfItems_Getter(this); |
| 5889 | 5245 |
| 5890 String operator[](int index) { | 5246 String operator[](int index) { |
| 5891 if (index < 0 || index >= length) | 5247 if (index < 0 || index >= length) |
| 5892 throw new RangeError.range(index, 0, length); | 5248 throw new RangeError.range(index, 0, length); |
| 5893 return getItem(index); | 5249 return getItem(index); |
| 5894 } | 5250 } |
| 5895 | 5251 |
| 5896 void operator[]=(int index, String value) { | 5252 void operator[]=(int index, String value) { |
| 5897 throw new UnsupportedError("Cannot assign element of immutable List."); | 5253 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 5898 } | 5254 } |
| 5899 // -- start List<String> mixins. | 5255 // -- start List<String> mixins. |
| 5900 // String is the element type. | 5256 // String is the element type. |
| 5901 | 5257 |
| 5902 // SVG Collections expose numberOfItems rather than length. | |
| 5903 int get length => numberOfItems; | |
| 5904 | 5258 |
| 5905 void set length(int value) { | 5259 void set length(int value) { |
| 5906 throw new UnsupportedError("Cannot resize immutable List."); | 5260 throw new UnsupportedError("Cannot resize immutable List."); |
| 5907 } | 5261 } |
| 5908 | 5262 |
| 5909 String get first { | 5263 String get first { |
| 5910 if (this.length > 0) { | 5264 if (this.length > 0) { |
| 5911 return getItem(0); | 5265 return getItem(0); |
| 5912 } | 5266 } |
| 5913 throw new StateError("No elements"); | 5267 throw new StateError("No elements"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5926 if (len == 1) { | 5280 if (len == 1) { |
| 5927 return getItem(0); | 5281 return getItem(0); |
| 5928 } | 5282 } |
| 5929 if (len == 0) throw new StateError("No elements"); | 5283 if (len == 0) throw new StateError("No elements"); |
| 5930 throw new StateError("More than one element"); | 5284 throw new StateError("More than one element"); |
| 5931 } | 5285 } |
| 5932 | 5286 |
| 5933 String elementAt(int index) => this[index]; | 5287 String elementAt(int index) => this[index]; |
| 5934 // -- end List<String> mixins. | 5288 // -- end List<String> mixins. |
| 5935 | 5289 |
| 5290 @DomName('SVGStringList.__setter__') |
| 5291 @DocsEditable() |
| 5292 @Experimental() // untriaged |
| 5293 void __setter__(int index, String value) => _blink.BlinkSVGStringList.$__sette
r___Callback_ul_DOMString(this, index, value); |
| 5294 |
| 5936 @DomName('SVGStringList.appendItem') | 5295 @DomName('SVGStringList.appendItem') |
| 5937 @DocsEditable() | 5296 @DocsEditable() |
| 5938 String appendItem(String item) => _blink.BlinkSVGStringList.appendItem_Callbac
k_DOMString(this, item); | 5297 String appendItem(String item) => _blink.BlinkSVGStringList.appendItem_Callbac
k_DOMString(this, item); |
| 5939 | 5298 |
| 5940 @DomName('SVGStringList.clear') | 5299 @DomName('SVGStringList.clear') |
| 5941 @DocsEditable() | 5300 @DocsEditable() |
| 5942 void clear() => _blink.BlinkSVGStringList.clear_Callback(this); | 5301 void clear() => _blink.BlinkSVGStringList.clear_Callback(this); |
| 5943 | 5302 |
| 5944 @DomName('SVGStringList.getItem') | 5303 @DomName('SVGStringList.getItem') |
| 5945 @DocsEditable() | 5304 @DocsEditable() |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6447 | 5806 |
| 6448 @DomName('SVGElement.ownerSVGElement') | 5807 @DomName('SVGElement.ownerSVGElement') |
| 6449 @DocsEditable() | 5808 @DocsEditable() |
| 6450 SvgSvgElement get ownerSvgElement => _blink.BlinkSVGElement.ownerSVGElement_Ge
tter(this); | 5809 SvgSvgElement get ownerSvgElement => _blink.BlinkSVGElement.ownerSVGElement_Ge
tter(this); |
| 6451 | 5810 |
| 6452 @DomName('SVGElement.style') | 5811 @DomName('SVGElement.style') |
| 6453 @DocsEditable() | 5812 @DocsEditable() |
| 6454 @Experimental() // untriaged | 5813 @Experimental() // untriaged |
| 6455 CssStyleDeclaration get style => _blink.BlinkSVGElement.style_Getter(this); | 5814 CssStyleDeclaration get style => _blink.BlinkSVGElement.style_Getter(this); |
| 6456 | 5815 |
| 5816 @DomName('SVGElement.tabIndex') |
| 5817 @DocsEditable() |
| 5818 @Experimental() // untriaged |
| 5819 int get tabIndex => _blink.BlinkSVGElement.tabIndex_Getter(this); |
| 5820 |
| 5821 @DomName('SVGElement.tabIndex') |
| 5822 @DocsEditable() |
| 5823 @Experimental() // untriaged |
| 5824 void set tabIndex(int value) => _blink.BlinkSVGElement.tabIndex_Setter_long(th
is, value); |
| 5825 |
| 6457 @DomName('SVGElement.viewportElement') | 5826 @DomName('SVGElement.viewportElement') |
| 6458 @DocsEditable() | 5827 @DocsEditable() |
| 6459 SvgElement get viewportElement => _blink.BlinkSVGElement.viewportElement_Gette
r(this); | 5828 SvgElement get viewportElement => _blink.BlinkSVGElement.viewportElement_Gette
r(this); |
| 6460 | 5829 |
| 6461 @DomName('SVGElement.xmlbase') | 5830 @DomName('SVGElement.xmlbase') |
| 6462 @DocsEditable() | 5831 @DocsEditable() |
| 6463 String get xmlbase => _blink.BlinkSVGElement.xmlbase_Getter(this); | 5832 String get xmlbase => _blink.BlinkSVGElement.xmlbase_Getter(this); |
| 6464 | 5833 |
| 6465 @DomName('SVGElement.xmlbase') | 5834 @DomName('SVGElement.xmlbase') |
| 6466 @DocsEditable() | 5835 @DocsEditable() |
| (...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7365 // WARNING: Do not edit - generated code. | 6734 // WARNING: Do not edit - generated code. |
| 7366 | 6735 |
| 7367 | 6736 |
| 7368 @DocsEditable() | 6737 @DocsEditable() |
| 7369 @DomName('SVGTransformList') | 6738 @DomName('SVGTransformList') |
| 7370 @Unstable() | 6739 @Unstable() |
| 7371 class TransformList extends NativeFieldWrapperClass2 with ListMixin<Transform>,
ImmutableListMixin<Transform> implements List<Transform> { | 6740 class TransformList extends NativeFieldWrapperClass2 with ListMixin<Transform>,
ImmutableListMixin<Transform> implements List<Transform> { |
| 7372 // To suppress missing implicit constructor warnings. | 6741 // To suppress missing implicit constructor warnings. |
| 7373 factory TransformList._() { throw new UnsupportedError("Not supported"); } | 6742 factory TransformList._() { throw new UnsupportedError("Not supported"); } |
| 7374 | 6743 |
| 6744 @DomName('SVGTransformList.length') |
| 6745 @DocsEditable() |
| 6746 @Experimental() // untriaged |
| 6747 int get length => _blink.BlinkSVGTransformList.length_Getter(this); |
| 6748 |
| 7375 @DomName('SVGTransformList.numberOfItems') | 6749 @DomName('SVGTransformList.numberOfItems') |
| 7376 @DocsEditable() | 6750 @DocsEditable() |
| 7377 int get numberOfItems => _blink.BlinkSVGTransformList.numberOfItems_Getter(thi
s); | 6751 int get numberOfItems => _blink.BlinkSVGTransformList.numberOfItems_Getter(thi
s); |
| 7378 | 6752 |
| 7379 Transform operator[](int index) { | 6753 Transform operator[](int index) { |
| 7380 if (index < 0 || index >= length) | 6754 if (index < 0 || index >= length) |
| 7381 throw new RangeError.range(index, 0, length); | 6755 throw new RangeError.range(index, 0, length); |
| 7382 return getItem(index); | 6756 return getItem(index); |
| 7383 } | 6757 } |
| 7384 | 6758 |
| 7385 void operator[]=(int index, Transform value) { | 6759 void operator[]=(int index, Transform value) { |
| 7386 throw new UnsupportedError("Cannot assign element of immutable List."); | 6760 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 7387 } | 6761 } |
| 7388 // -- start List<Transform> mixins. | 6762 // -- start List<Transform> mixins. |
| 7389 // Transform is the element type. | 6763 // Transform is the element type. |
| 7390 | 6764 |
| 7391 // SVG Collections expose numberOfItems rather than length. | |
| 7392 int get length => numberOfItems; | |
| 7393 | 6765 |
| 7394 void set length(int value) { | 6766 void set length(int value) { |
| 7395 throw new UnsupportedError("Cannot resize immutable List."); | 6767 throw new UnsupportedError("Cannot resize immutable List."); |
| 7396 } | 6768 } |
| 7397 | 6769 |
| 7398 Transform get first { | 6770 Transform get first { |
| 7399 if (this.length > 0) { | 6771 if (this.length > 0) { |
| 7400 return getItem(0); | 6772 return getItem(0); |
| 7401 } | 6773 } |
| 7402 throw new StateError("No elements"); | 6774 throw new StateError("No elements"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 7415 if (len == 1) { | 6787 if (len == 1) { |
| 7416 return getItem(0); | 6788 return getItem(0); |
| 7417 } | 6789 } |
| 7418 if (len == 0) throw new StateError("No elements"); | 6790 if (len == 0) throw new StateError("No elements"); |
| 7419 throw new StateError("More than one element"); | 6791 throw new StateError("More than one element"); |
| 7420 } | 6792 } |
| 7421 | 6793 |
| 7422 Transform elementAt(int index) => this[index]; | 6794 Transform elementAt(int index) => this[index]; |
| 7423 // -- end List<Transform> mixins. | 6795 // -- end List<Transform> mixins. |
| 7424 | 6796 |
| 6797 @DomName('SVGTransformList.__setter__') |
| 6798 @DocsEditable() |
| 6799 @Experimental() // untriaged |
| 6800 void __setter__(int index, Transform value) => _blink.BlinkSVGTransformList.$_
_setter___Callback_ul_SVGTransform(this, index, value); |
| 6801 |
| 7425 @DomName('SVGTransformList.appendItem') | 6802 @DomName('SVGTransformList.appendItem') |
| 7426 @DocsEditable() | 6803 @DocsEditable() |
| 7427 Transform appendItem(Transform item) => _blink.BlinkSVGTransformList.appendIte
m_Callback_SVGTransform(this, item); | 6804 Transform appendItem(Transform item) => _blink.BlinkSVGTransformList.appendIte
m_Callback_SVGTransform(this, item); |
| 7428 | 6805 |
| 7429 @DomName('SVGTransformList.clear') | 6806 @DomName('SVGTransformList.clear') |
| 7430 @DocsEditable() | 6807 @DocsEditable() |
| 7431 void clear() => _blink.BlinkSVGTransformList.clear_Callback(this); | 6808 void clear() => _blink.BlinkSVGTransformList.clear_Callback(this); |
| 7432 | 6809 |
| 7433 @DomName('SVGTransformList.consolidate') | 6810 @DomName('SVGTransformList.consolidate') |
| 7434 @DocsEditable() | 6811 @DocsEditable() |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7509 // for details. All rights reserved. Use of this source code is governed by a | 6886 // for details. All rights reserved. Use of this source code is governed by a |
| 7510 // BSD-style license that can be found in the LICENSE file. | 6887 // BSD-style license that can be found in the LICENSE file. |
| 7511 | 6888 |
| 7512 // WARNING: Do not edit - generated code. | 6889 // WARNING: Do not edit - generated code. |
| 7513 | 6890 |
| 7514 | 6891 |
| 7515 @DocsEditable() | 6892 @DocsEditable() |
| 7516 @DomName('SVGUseElement') | 6893 @DomName('SVGUseElement') |
| 7517 @Unstable() | 6894 @Unstable() |
| 7518 class UseElement extends GraphicsElement implements UriReference, Tests { | 6895 class UseElement extends GraphicsElement implements UriReference { |
| 7519 // To suppress missing implicit constructor warnings. | 6896 // To suppress missing implicit constructor warnings. |
| 7520 factory UseElement._() { throw new UnsupportedError("Not supported"); } | 6897 factory UseElement._() { throw new UnsupportedError("Not supported"); } |
| 7521 | 6898 |
| 7522 @DomName('SVGUseElement.SVGUseElement') | 6899 @DomName('SVGUseElement.SVGUseElement') |
| 7523 @DocsEditable() | 6900 @DocsEditable() |
| 7524 factory UseElement() => _SvgElementFactoryProvider.createSvgElement_tag("use")
; | 6901 factory UseElement() => _SvgElementFactoryProvider.createSvgElement_tag("use")
; |
| 7525 /** | 6902 /** |
| 7526 * Constructor instantiated by the DOM when a custom element has been created. | 6903 * Constructor instantiated by the DOM when a custom element has been created. |
| 7527 * | 6904 * |
| 7528 * This can only be called by subclasses from their created constructor. | 6905 * This can only be called by subclasses from their created constructor. |
| 7529 */ | 6906 */ |
| 7530 UseElement.created() : super.created(); | 6907 UseElement.created() : super.created(); |
| 7531 | 6908 |
| 7532 @DomName('SVGUseElement.animatedInstanceRoot') | |
| 7533 @DocsEditable() | |
| 7534 ElementInstance get animatedInstanceRoot => _blink.BlinkSVGUseElement.animated
InstanceRoot_Getter(this); | |
| 7535 | |
| 7536 @DomName('SVGUseElement.height') | 6909 @DomName('SVGUseElement.height') |
| 7537 @DocsEditable() | 6910 @DocsEditable() |
| 7538 AnimatedLength get height => _blink.BlinkSVGUseElement.height_Getter(this); | 6911 AnimatedLength get height => _blink.BlinkSVGUseElement.height_Getter(this); |
| 7539 | 6912 |
| 7540 @DomName('SVGUseElement.instanceRoot') | |
| 7541 @DocsEditable() | |
| 7542 ElementInstance get instanceRoot => _blink.BlinkSVGUseElement.instanceRoot_Get
ter(this); | |
| 7543 | |
| 7544 @DomName('SVGUseElement.width') | 6913 @DomName('SVGUseElement.width') |
| 7545 @DocsEditable() | 6914 @DocsEditable() |
| 7546 AnimatedLength get width => _blink.BlinkSVGUseElement.width_Getter(this); | 6915 AnimatedLength get width => _blink.BlinkSVGUseElement.width_Getter(this); |
| 7547 | 6916 |
| 7548 @DomName('SVGUseElement.x') | 6917 @DomName('SVGUseElement.x') |
| 7549 @DocsEditable() | 6918 @DocsEditable() |
| 7550 AnimatedLength get x => _blink.BlinkSVGUseElement.x_Getter(this); | 6919 AnimatedLength get x => _blink.BlinkSVGUseElement.x_Getter(this); |
| 7551 | 6920 |
| 7552 @DomName('SVGUseElement.y') | 6921 @DomName('SVGUseElement.y') |
| 7553 @DocsEditable() | 6922 @DocsEditable() |
| 7554 AnimatedLength get y => _blink.BlinkSVGUseElement.y_Getter(this); | 6923 AnimatedLength get y => _blink.BlinkSVGUseElement.y_Getter(this); |
| 7555 | 6924 |
| 7556 @DomName('SVGUseElement.requiredExtensions') | |
| 7557 @DocsEditable() | |
| 7558 StringList get requiredExtensions => _blink.BlinkSVGUseElement.requiredExtensi
ons_Getter(this); | |
| 7559 | |
| 7560 @DomName('SVGUseElement.requiredFeatures') | |
| 7561 @DocsEditable() | |
| 7562 StringList get requiredFeatures => _blink.BlinkSVGUseElement.requiredFeatures_
Getter(this); | |
| 7563 | |
| 7564 @DomName('SVGUseElement.systemLanguage') | |
| 7565 @DocsEditable() | |
| 7566 StringList get systemLanguage => _blink.BlinkSVGUseElement.systemLanguage_Gett
er(this); | |
| 7567 | |
| 7568 @DomName('SVGUseElement.hasExtension') | |
| 7569 @DocsEditable() | |
| 7570 bool hasExtension(String extension) => _blink.BlinkSVGUseElement.hasExtension_
Callback_DOMString(this, extension); | |
| 7571 | |
| 7572 @DomName('SVGUseElement.href') | 6925 @DomName('SVGUseElement.href') |
| 7573 @DocsEditable() | 6926 @DocsEditable() |
| 7574 AnimatedString get href => _blink.BlinkSVGUseElement.href_Getter(this); | 6927 AnimatedString get href => _blink.BlinkSVGUseElement.href_Getter(this); |
| 7575 | 6928 |
| 7576 } | 6929 } |
| 7577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7578 // for details. All rights reserved. Use of this source code is governed by a | 6931 // for details. All rights reserved. Use of this source code is governed by a |
| 7579 // BSD-style license that can be found in the LICENSE file. | 6932 // BSD-style license that can be found in the LICENSE file. |
| 7580 | 6933 |
| 7581 // WARNING: Do not edit - generated code. | 6934 // WARNING: Do not edit - generated code. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7749 | 7102 |
| 7750 } | 7103 } |
| 7751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7752 // for details. All rights reserved. Use of this source code is governed by a | 7105 // for details. All rights reserved. Use of this source code is governed by a |
| 7753 // BSD-style license that can be found in the LICENSE file. | 7106 // BSD-style license that can be found in the LICENSE file. |
| 7754 | 7107 |
| 7755 // WARNING: Do not edit - generated code. | 7108 // WARNING: Do not edit - generated code. |
| 7756 | 7109 |
| 7757 | 7110 |
| 7758 @DocsEditable() | 7111 @DocsEditable() |
| 7759 @DomName('SVGElementInstanceList') | |
| 7760 @Unstable() | |
| 7761 class _ElementInstanceList extends NativeFieldWrapperClass2 with ListMixin<Eleme
ntInstance>, ImmutableListMixin<ElementInstance> implements List<ElementInstance
> { | |
| 7762 // To suppress missing implicit constructor warnings. | |
| 7763 factory _ElementInstanceList._() { throw new UnsupportedError("Not supported")
; } | |
| 7764 | |
| 7765 @DomName('SVGElementInstanceList.length') | |
| 7766 @DocsEditable() | |
| 7767 int get length => _blink.BlinkSVGElementInstanceList.length_Getter(this); | |
| 7768 | |
| 7769 ElementInstance operator[](int index) { | |
| 7770 if (index < 0 || index >= length) | |
| 7771 throw new RangeError.range(index, 0, length); | |
| 7772 return _blink.BlinkSVGElementInstanceList.item_Callback_ul(this, index); | |
| 7773 } | |
| 7774 | |
| 7775 ElementInstance _nativeIndexedGetter(int index) => _blink.BlinkSVGElementInsta
nceList.item_Callback_ul(this, index); | |
| 7776 | |
| 7777 void operator[]=(int index, ElementInstance value) { | |
| 7778 throw new UnsupportedError("Cannot assign element of immutable List."); | |
| 7779 } | |
| 7780 // -- start List<ElementInstance> mixins. | |
| 7781 // ElementInstance is the element type. | |
| 7782 | |
| 7783 | |
| 7784 void set length(int value) { | |
| 7785 throw new UnsupportedError("Cannot resize immutable List."); | |
| 7786 } | |
| 7787 | |
| 7788 ElementInstance get first { | |
| 7789 if (this.length > 0) { | |
| 7790 return _nativeIndexedGetter(0); | |
| 7791 } | |
| 7792 throw new StateError("No elements"); | |
| 7793 } | |
| 7794 | |
| 7795 ElementInstance get last { | |
| 7796 int len = this.length; | |
| 7797 if (len > 0) { | |
| 7798 return _nativeIndexedGetter(len - 1); | |
| 7799 } | |
| 7800 throw new StateError("No elements"); | |
| 7801 } | |
| 7802 | |
| 7803 ElementInstance get single { | |
| 7804 int len = this.length; | |
| 7805 if (len == 1) { | |
| 7806 return _nativeIndexedGetter(0); | |
| 7807 } | |
| 7808 if (len == 0) throw new StateError("No elements"); | |
| 7809 throw new StateError("More than one element"); | |
| 7810 } | |
| 7811 | |
| 7812 ElementInstance elementAt(int index) => this[index]; | |
| 7813 // -- end List<ElementInstance> mixins. | |
| 7814 | |
| 7815 @DomName('SVGElementInstanceList.item') | |
| 7816 @DocsEditable() | |
| 7817 ElementInstance item(int index) => _blink.BlinkSVGElementInstanceList.item_Cal
lback_ul(this, index); | |
| 7818 | |
| 7819 } | |
| 7820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 7821 // for details. All rights reserved. Use of this source code is governed by a | |
| 7822 // BSD-style license that can be found in the LICENSE file. | |
| 7823 | |
| 7824 // WARNING: Do not edit - generated code. | |
| 7825 | |
| 7826 | |
| 7827 @DocsEditable() | |
| 7828 @DomName('SVGGradientElement') | 7112 @DomName('SVGGradientElement') |
| 7829 @Unstable() | 7113 @Unstable() |
| 7830 class _GradientElement extends SvgElement implements UriReference { | 7114 class _GradientElement extends SvgElement implements UriReference { |
| 7831 // To suppress missing implicit constructor warnings. | 7115 // To suppress missing implicit constructor warnings. |
| 7832 factory _GradientElement._() { throw new UnsupportedError("Not supported"); } | 7116 factory _GradientElement._() { throw new UnsupportedError("Not supported"); } |
| 7833 /** | 7117 /** |
| 7834 * Constructor instantiated by the DOM when a custom element has been created. | 7118 * Constructor instantiated by the DOM when a custom element has been created. |
| 7835 * | 7119 * |
| 7836 * This can only be called by subclasses from their created constructor. | 7120 * This can only be called by subclasses from their created constructor. |
| 7837 */ | 7121 */ |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8242 @DocsEditable() | 7526 @DocsEditable() |
| 8243 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); | 7527 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag(
"vkern"); |
| 8244 /** | 7528 /** |
| 8245 * Constructor instantiated by the DOM when a custom element has been created. | 7529 * Constructor instantiated by the DOM when a custom element has been created. |
| 8246 * | 7530 * |
| 8247 * This can only be called by subclasses from their created constructor. | 7531 * This can only be called by subclasses from their created constructor. |
| 8248 */ | 7532 */ |
| 8249 _SVGVKernElement.created() : super.created(); | 7533 _SVGVKernElement.created() : super.created(); |
| 8250 | 7534 |
| 8251 } | 7535 } |
| OLD | NEW |