| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 // DO NOT EDIT | 7 // DO NOT EDIT |
| 8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 final _BarInfoJs statusbar; | 1368 final _BarInfoJs statusbar; |
| 1369 | 1369 |
| 1370 final _StyleMediaJs styleMedia; | 1370 final _StyleMediaJs styleMedia; |
| 1371 | 1371 |
| 1372 final _BarInfoJs toolbar; | 1372 final _BarInfoJs toolbar; |
| 1373 | 1373 |
| 1374 final _IDBFactoryJs webkitIndexedDB; | 1374 final _IDBFactoryJs webkitIndexedDB; |
| 1375 | 1375 |
| 1376 final _NotificationCenterJs webkitNotifications; | 1376 final _NotificationCenterJs webkitNotifications; |
| 1377 | 1377 |
| 1378 final _StorageInfoJs webkitStorageInfo; |
| 1379 |
| 1378 final _DOMWindowJs window; | 1380 final _DOMWindowJs window; |
| 1379 | 1381 |
| 1380 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | 1382 void addEventListener(String type, EventListener listener, [bool useCapture])
native; |
| 1381 | 1383 |
| 1382 void alert(String message) native; | 1384 void alert(String message) native; |
| 1383 | 1385 |
| 1384 String atob(String string) native; | 1386 String atob(String string) native; |
| 1385 | 1387 |
| 1386 void blur() native; | 1388 void blur() native; |
| 1387 | 1389 |
| (...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 List<num> getRange(int start, int rangeLength) => | 2607 List<num> getRange(int start, int rangeLength) => |
| 2606 _Lists.getRange(this, start, rangeLength, <num>[]); | 2608 _Lists.getRange(this, start, rangeLength, <num>[]); |
| 2607 | 2609 |
| 2608 // -- end List<num> mixins. | 2610 // -- end List<num> mixins. |
| 2609 | 2611 |
| 2610 void setElements(Object array, [int offset]) native 'set'; | 2612 void setElements(Object array, [int offset]) native 'set'; |
| 2611 | 2613 |
| 2612 _Float64ArrayJs subarray(int start, [int end]) native; | 2614 _Float64ArrayJs subarray(int start, [int end]) native; |
| 2613 } | 2615 } |
| 2614 | 2616 |
| 2617 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" { |
| 2618 |
| 2619 final List<num> axes; |
| 2620 |
| 2621 final List<num> buttons; |
| 2622 |
| 2623 final String id; |
| 2624 |
| 2625 final int index; |
| 2626 |
| 2627 final int timestamp; |
| 2628 } |
| 2629 |
| 2630 class _GamepadListJs extends _DOMTypeJs implements GamepadList native "*GamepadL
ist" { |
| 2631 |
| 2632 final int length; |
| 2633 |
| 2634 _GamepadJs item(int index) native; |
| 2635 } |
| 2636 |
| 2615 class _GeolocationJs extends _DOMTypeJs implements Geolocation native "*Geolocat
ion" { | 2637 class _GeolocationJs extends _DOMTypeJs implements Geolocation native "*Geolocat
ion" { |
| 2616 | 2638 |
| 2617 void clearWatch(int watchId) native; | 2639 void clearWatch(int watchId) native; |
| 2618 | 2640 |
| 2619 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; | 2641 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; |
| 2620 | 2642 |
| 2621 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; | 2643 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; |
| 2622 } | 2644 } |
| 2623 | 2645 |
| 2624 class _GeopositionJs extends _DOMTypeJs implements Geoposition native "*Geoposit
ion" { | 2646 class _GeopositionJs extends _DOMTypeJs implements Geoposition native "*Geoposit
ion" { |
| (...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4306 static final int NO_ERR = 0; | 4328 static final int NO_ERR = 0; |
| 4307 | 4329 |
| 4308 static final int QUOTA_ERR = 22; | 4330 static final int QUOTA_ERR = 22; |
| 4309 | 4331 |
| 4310 static final int READ_ONLY_ERR = 9; | 4332 static final int READ_ONLY_ERR = 9; |
| 4311 | 4333 |
| 4312 static final int TIMEOUT_ERR = 23; | 4334 static final int TIMEOUT_ERR = 23; |
| 4313 | 4335 |
| 4314 static final int TRANSACTION_INACTIVE_ERR = 7; | 4336 static final int TRANSACTION_INACTIVE_ERR = 7; |
| 4315 | 4337 |
| 4316 static final int TYPE_ERR = 21; | |
| 4317 | |
| 4318 static final int UNKNOWN_ERR = 1; | 4338 static final int UNKNOWN_ERR = 1; |
| 4319 | 4339 |
| 4320 static final int VER_ERR = 12; | 4340 static final int VER_ERR = 12; |
| 4321 | 4341 |
| 4322 final int code; | 4342 final int code; |
| 4323 | 4343 |
| 4324 final String message; | 4344 final String message; |
| 4325 | 4345 |
| 4326 final String name; | 4346 final String name; |
| 4327 | 4347 |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5409 final String productSub; | 5429 final String productSub; |
| 5410 | 5430 |
| 5411 final String userAgent; | 5431 final String userAgent; |
| 5412 | 5432 |
| 5413 final String vendor; | 5433 final String vendor; |
| 5414 | 5434 |
| 5415 final String vendorSub; | 5435 final String vendorSub; |
| 5416 | 5436 |
| 5417 final _BatteryManagerJs webkitBattery; | 5437 final _BatteryManagerJs webkitBattery; |
| 5418 | 5438 |
| 5439 final _GamepadListJs webkitGamepads; |
| 5440 |
| 5419 final _PointerLockJs webkitPointer; | 5441 final _PointerLockJs webkitPointer; |
| 5420 | 5442 |
| 5421 void getStorageUpdates() native; | 5443 void getStorageUpdates() native; |
| 5422 | 5444 |
| 5423 bool javaEnabled() native; | 5445 bool javaEnabled() native; |
| 5424 | 5446 |
| 5425 void registerProtocolHandler(String scheme, String url, String title) native; | |
| 5426 | |
| 5427 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) native; | 5447 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) native; |
| 5428 } | 5448 } |
| 5429 | 5449 |
| 5430 class _NavigatorUserMediaErrorJs extends _DOMTypeJs implements NavigatorUserMedi
aError native "*NavigatorUserMediaError" { | 5450 class _NavigatorUserMediaErrorJs extends _DOMTypeJs implements NavigatorUserMedi
aError native "*NavigatorUserMediaError" { |
| 5431 | 5451 |
| 5432 static final int PERMISSION_DENIED = 1; | 5452 static final int PERMISSION_DENIED = 1; |
| 5433 | 5453 |
| 5434 final int code; | 5454 final int code; |
| 5435 } | 5455 } |
| 5436 | 5456 |
| (...skipping 4228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9665 | 9685 |
| 9666 final String oldValue; | 9686 final String oldValue; |
| 9667 | 9687 |
| 9668 final _StorageJs storageArea; | 9688 final _StorageJs storageArea; |
| 9669 | 9689 |
| 9670 final String url; | 9690 final String url; |
| 9671 | 9691 |
| 9672 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; | 9692 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; |
| 9673 } | 9693 } |
| 9674 | 9694 |
| 9695 class _StorageInfoJs extends _DOMTypeJs implements StorageInfo native "*StorageI
nfo" { |
| 9696 |
| 9697 static final int PERSISTENT = 1; |
| 9698 |
| 9699 static final int TEMPORARY = 0; |
| 9700 |
| 9701 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; |
| 9702 |
| 9703 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; |
| 9704 } |
| 9705 |
| 9675 class _StyleMediaJs extends _DOMTypeJs implements StyleMedia native "*StyleMedia
" { | 9706 class _StyleMediaJs extends _DOMTypeJs implements StyleMedia native "*StyleMedia
" { |
| 9676 | 9707 |
| 9677 final String type; | 9708 final String type; |
| 9678 | 9709 |
| 9679 bool matchMedium(String mediaquery) native; | 9710 bool matchMedium(String mediaquery) native; |
| 9680 } | 9711 } |
| 9681 | 9712 |
| 9682 class _StyleSheetJs extends _DOMTypeJs implements StyleSheet native "*StyleSheet
" { | 9713 class _StyleSheetJs extends _DOMTypeJs implements StyleSheet native "*StyleSheet
" { |
| 9683 | 9714 |
| 9684 bool disabled; | 9715 bool disabled; |
| (...skipping 4145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13830 final StyleMedia styleMedia; | 13861 final StyleMedia styleMedia; |
| 13831 | 13862 |
| 13832 final BarInfo toolbar; | 13863 final BarInfo toolbar; |
| 13833 | 13864 |
| 13834 final DOMWindow top; | 13865 final DOMWindow top; |
| 13835 | 13866 |
| 13836 final IDBFactory webkitIndexedDB; | 13867 final IDBFactory webkitIndexedDB; |
| 13837 | 13868 |
| 13838 final NotificationCenter webkitNotifications; | 13869 final NotificationCenter webkitNotifications; |
| 13839 | 13870 |
| 13871 final StorageInfo webkitStorageInfo; |
| 13872 |
| 13840 final DOMWindow window; | 13873 final DOMWindow window; |
| 13841 | 13874 |
| 13842 void addEventListener(String type, EventListener listener, [bool useCapture]); | 13875 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 13843 | 13876 |
| 13844 void alert(String message); | 13877 void alert(String message); |
| 13845 | 13878 |
| 13846 String atob(String string); | 13879 String atob(String string); |
| 13847 | 13880 |
| 13848 void blur(); | 13881 void blur(); |
| 13849 | 13882 |
| (...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15159 void setElements(Object array, [int offset]); | 15192 void setElements(Object array, [int offset]); |
| 15160 | 15193 |
| 15161 Float64Array subarray(int start, [int end]); | 15194 Float64Array subarray(int start, [int end]); |
| 15162 } | 15195 } |
| 15163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15164 // for details. All rights reserved. Use of this source code is governed by a | 15197 // for details. All rights reserved. Use of this source code is governed by a |
| 15165 // BSD-style license that can be found in the LICENSE file. | 15198 // BSD-style license that can be found in the LICENSE file. |
| 15166 | 15199 |
| 15167 // WARNING: Do not edit - generated code. | 15200 // WARNING: Do not edit - generated code. |
| 15168 | 15201 |
| 15202 interface Gamepad { |
| 15203 |
| 15204 final List<num> axes; |
| 15205 |
| 15206 final List<num> buttons; |
| 15207 |
| 15208 final String id; |
| 15209 |
| 15210 final int index; |
| 15211 |
| 15212 final int timestamp; |
| 15213 } |
| 15214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15215 // for details. All rights reserved. Use of this source code is governed by a |
| 15216 // BSD-style license that can be found in the LICENSE file. |
| 15217 |
| 15218 // WARNING: Do not edit - generated code. |
| 15219 |
| 15220 interface GamepadList { |
| 15221 |
| 15222 final int length; |
| 15223 |
| 15224 Gamepad item(int index); |
| 15225 } |
| 15226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15227 // for details. All rights reserved. Use of this source code is governed by a |
| 15228 // BSD-style license that can be found in the LICENSE file. |
| 15229 |
| 15230 // WARNING: Do not edit - generated code. |
| 15231 |
| 15169 interface Geolocation { | 15232 interface Geolocation { |
| 15170 | 15233 |
| 15171 void clearWatch(int watchId); | 15234 void clearWatch(int watchId); |
| 15172 | 15235 |
| 15173 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]); | 15236 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]); |
| 15174 | 15237 |
| 15175 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]); | 15238 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]); |
| 15176 } | 15239 } |
| 15177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15178 // for details. All rights reserved. Use of this source code is governed by a | 15241 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17173 static final int NO_ERR = 0; | 17236 static final int NO_ERR = 0; |
| 17174 | 17237 |
| 17175 static final int QUOTA_ERR = 22; | 17238 static final int QUOTA_ERR = 22; |
| 17176 | 17239 |
| 17177 static final int READ_ONLY_ERR = 9; | 17240 static final int READ_ONLY_ERR = 9; |
| 17178 | 17241 |
| 17179 static final int TIMEOUT_ERR = 23; | 17242 static final int TIMEOUT_ERR = 23; |
| 17180 | 17243 |
| 17181 static final int TRANSACTION_INACTIVE_ERR = 7; | 17244 static final int TRANSACTION_INACTIVE_ERR = 7; |
| 17182 | 17245 |
| 17183 static final int TYPE_ERR = 21; | |
| 17184 | |
| 17185 static final int UNKNOWN_ERR = 1; | 17246 static final int UNKNOWN_ERR = 1; |
| 17186 | 17247 |
| 17187 static final int VER_ERR = 12; | 17248 static final int VER_ERR = 12; |
| 17188 | 17249 |
| 17189 final int code; | 17250 final int code; |
| 17190 | 17251 |
| 17191 final String message; | 17252 final String message; |
| 17192 | 17253 |
| 17193 final String name; | 17254 final String name; |
| 17194 | 17255 |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18132 final String productSub; | 18193 final String productSub; |
| 18133 | 18194 |
| 18134 final String userAgent; | 18195 final String userAgent; |
| 18135 | 18196 |
| 18136 final String vendor; | 18197 final String vendor; |
| 18137 | 18198 |
| 18138 final String vendorSub; | 18199 final String vendorSub; |
| 18139 | 18200 |
| 18140 final BatteryManager webkitBattery; | 18201 final BatteryManager webkitBattery; |
| 18141 | 18202 |
| 18203 final GamepadList webkitGamepads; |
| 18204 |
| 18142 final PointerLock webkitPointer; | 18205 final PointerLock webkitPointer; |
| 18143 | 18206 |
| 18144 void getStorageUpdates(); | 18207 void getStorageUpdates(); |
| 18145 | 18208 |
| 18146 bool javaEnabled(); | 18209 bool javaEnabled(); |
| 18147 | 18210 |
| 18148 void registerProtocolHandler(String scheme, String url, String title); | |
| 18149 | |
| 18150 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]); | 18211 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]); |
| 18151 } | 18212 } |
| 18152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18153 // for details. All rights reserved. Use of this source code is governed by a | 18214 // for details. All rights reserved. Use of this source code is governed by a |
| 18154 // BSD-style license that can be found in the LICENSE file. | 18215 // BSD-style license that can be found in the LICENSE file. |
| 18155 | 18216 |
| 18156 // WARNING: Do not edit - generated code. | 18217 // WARNING: Do not edit - generated code. |
| 18157 | 18218 |
| 18158 interface NavigatorUserMediaError { | 18219 interface NavigatorUserMediaError { |
| 18159 | 18220 |
| (...skipping 3873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22033 final String url; | 22094 final String url; |
| 22034 | 22095 |
| 22035 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); | 22096 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); |
| 22036 } | 22097 } |
| 22037 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22038 // for details. All rights reserved. Use of this source code is governed by a | 22099 // for details. All rights reserved. Use of this source code is governed by a |
| 22039 // BSD-style license that can be found in the LICENSE file. | 22100 // BSD-style license that can be found in the LICENSE file. |
| 22040 | 22101 |
| 22041 // WARNING: Do not edit - generated code. | 22102 // WARNING: Do not edit - generated code. |
| 22042 | 22103 |
| 22104 interface StorageInfo { |
| 22105 |
| 22106 static final int PERSISTENT = 1; |
| 22107 |
| 22108 static final int TEMPORARY = 0; |
| 22109 |
| 22110 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]); |
| 22111 |
| 22112 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]); |
| 22113 } |
| 22114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22115 // for details. All rights reserved. Use of this source code is governed by a |
| 22116 // BSD-style license that can be found in the LICENSE file. |
| 22117 |
| 22118 // WARNING: Do not edit - generated code. |
| 22119 |
| 22120 typedef bool StorageInfoErrorCallback(DOMException error); |
| 22121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22122 // for details. All rights reserved. Use of this source code is governed by a |
| 22123 // BSD-style license that can be found in the LICENSE file. |
| 22124 |
| 22125 // WARNING: Do not edit - generated code. |
| 22126 |
| 22127 typedef bool StorageInfoQuotaCallback(int grantedQuotaInBytes); |
| 22128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22129 // for details. All rights reserved. Use of this source code is governed by a |
| 22130 // BSD-style license that can be found in the LICENSE file. |
| 22131 |
| 22132 // WARNING: Do not edit - generated code. |
| 22133 |
| 22134 typedef bool StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaI
nBytes); |
| 22135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22136 // for details. All rights reserved. Use of this source code is governed by a |
| 22137 // BSD-style license that can be found in the LICENSE file. |
| 22138 |
| 22139 // WARNING: Do not edit - generated code. |
| 22140 |
| 22043 typedef bool StringCallback(String data); | 22141 typedef bool StringCallback(String data); |
| 22044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22142 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22045 // for details. All rights reserved. Use of this source code is governed by a | 22143 // for details. All rights reserved. Use of this source code is governed by a |
| 22046 // BSD-style license that can be found in the LICENSE file. | 22144 // BSD-style license that can be found in the LICENSE file. |
| 22047 | 22145 |
| 22048 // WARNING: Do not edit - generated code. | 22146 // WARNING: Do not edit - generated code. |
| 22049 | 22147 |
| 22050 interface StyleMedia { | 22148 interface StyleMedia { |
| 22051 | 22149 |
| 22052 final String type; | 22150 final String type; |
| (...skipping 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25282 if (length < 0) throw new IllegalArgumentException('length'); | 25380 if (length < 0) throw new IllegalArgumentException('length'); |
| 25283 if (start < 0) throw new IndexOutOfRangeException(start); | 25381 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25284 int end = start + length; | 25382 int end = start + length; |
| 25285 if (end > a.length) throw new IndexOutOfRangeException(end); | 25383 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25286 for (int i = start; i < end; i++) { | 25384 for (int i = start; i < end; i++) { |
| 25287 accumulator.add(a[i]); | 25385 accumulator.add(a[i]); |
| 25288 } | 25386 } |
| 25289 return accumulator; | 25387 return accumulator; |
| 25290 } | 25388 } |
| 25291 } | 25389 } |
| OLD | NEW |