| 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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 final _BarInfoJs statusbar; | 1366 final _BarInfoJs statusbar; |
| 1367 | 1367 |
| 1368 final _StyleMediaJs styleMedia; | 1368 final _StyleMediaJs styleMedia; |
| 1369 | 1369 |
| 1370 final _BarInfoJs toolbar; | 1370 final _BarInfoJs toolbar; |
| 1371 | 1371 |
| 1372 final _IDBFactoryJs webkitIndexedDB; | 1372 final _IDBFactoryJs webkitIndexedDB; |
| 1373 | 1373 |
| 1374 final _NotificationCenterJs webkitNotifications; | 1374 final _NotificationCenterJs webkitNotifications; |
| 1375 | 1375 |
| 1376 final _StorageInfoJs webkitStorageInfo; | |
| 1377 | |
| 1378 final _DOMWindowJs window; | 1376 final _DOMWindowJs window; |
| 1379 | 1377 |
| 1380 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 1378 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 1381 | 1379 |
| 1382 void alert(String message) native; | 1380 void alert(String message) native; |
| 1383 | 1381 |
| 1384 String atob(String string) native; | 1382 String atob(String string) native; |
| 1385 | 1383 |
| 1386 void blur() native; | 1384 void blur() native; |
| 1387 | 1385 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 | 1465 |
| 1468 class _DataTransferItemJs extends _DOMTypeJs implements DataTransferItem native
"*DataTransferItem" { | 1466 class _DataTransferItemJs extends _DOMTypeJs implements DataTransferItem native
"*DataTransferItem" { |
| 1469 | 1467 |
| 1470 final String kind; | 1468 final String kind; |
| 1471 | 1469 |
| 1472 final String type; | 1470 final String type; |
| 1473 | 1471 |
| 1474 _BlobJs getAsFile() native; | 1472 _BlobJs getAsFile() native; |
| 1475 | 1473 |
| 1476 void getAsString([StringCallback callback = null]) native; | 1474 void getAsString([StringCallback callback = null]) native; |
| 1475 |
| 1476 _EntryJs webkitGetAsEntry() native; |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 class _DataTransferItemListJs extends _DOMTypeJs implements DataTransferItemList
native "*DataTransferItemList" { | 1479 class _DataTransferItemListJs extends _DOMTypeJs implements DataTransferItemList
native "*DataTransferItemList" { |
| 1480 | 1480 |
| 1481 final int length; | 1481 final int length; |
| 1482 | 1482 |
| 1483 void add(data_OR_file, [String type = null]) native; | 1483 void add(data_OR_file, [String type = null]) native; |
| 1484 | 1484 |
| 1485 void clear() native; | 1485 void clear() native; |
| 1486 | 1486 |
| (...skipping 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4296 static final int NO_ERR = 0; | 4296 static final int NO_ERR = 0; |
| 4297 | 4297 |
| 4298 static final int QUOTA_ERR = 22; | 4298 static final int QUOTA_ERR = 22; |
| 4299 | 4299 |
| 4300 static final int READ_ONLY_ERR = 9; | 4300 static final int READ_ONLY_ERR = 9; |
| 4301 | 4301 |
| 4302 static final int TIMEOUT_ERR = 23; | 4302 static final int TIMEOUT_ERR = 23; |
| 4303 | 4303 |
| 4304 static final int TRANSACTION_INACTIVE_ERR = 7; | 4304 static final int TRANSACTION_INACTIVE_ERR = 7; |
| 4305 | 4305 |
| 4306 static final int TYPE_ERR = 21; |
| 4307 |
| 4306 static final int UNKNOWN_ERR = 1; | 4308 static final int UNKNOWN_ERR = 1; |
| 4307 | 4309 |
| 4308 static final int VER_ERR = 12; | 4310 static final int VER_ERR = 12; |
| 4309 | 4311 |
| 4310 final int code; | 4312 final int code; |
| 4311 | 4313 |
| 4312 final String message; | 4314 final String message; |
| 4313 | 4315 |
| 4314 final String name; | 4316 final String name; |
| 4315 | 4317 |
| 4316 String toString() native; | 4318 String toString() native; |
| 4317 } | 4319 } |
| 4318 | 4320 |
| 4319 class _IDBFactoryJs extends _DOMTypeJs implements IDBFactory native "*IDBFactory
" { | 4321 class _IDBFactoryJs extends _DOMTypeJs implements IDBFactory native "*IDBFactory
" { |
| 4320 | 4322 |
| 4321 int cmp(first, second) native; | 4323 int cmp(first, second) native; |
| 4322 | 4324 |
| 4323 _IDBVersionChangeRequestJs deleteDatabase(String name) native; | 4325 _IDBVersionChangeRequestJs deleteDatabase(String name) native; |
| 4324 | 4326 |
| 4325 _IDBRequestJs getDatabaseNames() native; | 4327 _IDBRequestJs open(String name) native; |
| 4326 | 4328 |
| 4327 _IDBRequestJs open(String name) native; | 4329 _IDBRequestJs webkitGetDatabaseNames() native; |
| 4328 } | 4330 } |
| 4329 | 4331 |
| 4330 class _IDBIndexJs extends _DOMTypeJs implements IDBIndex native "*IDBIndex" { | 4332 class _IDBIndexJs extends _DOMTypeJs implements IDBIndex native "*IDBIndex" { |
| 4331 | 4333 |
| 4332 final keyPath; | 4334 final keyPath; |
| 4333 | 4335 |
| 4334 final bool multiEntry; | 4336 final bool multiEntry; |
| 4335 | 4337 |
| 4336 final String name; | 4338 final String name; |
| 4337 | 4339 |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5715 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | 5717 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; |
| 5716 | 5718 |
| 5717 bool isVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | 5719 bool isVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; |
| 5718 } | 5720 } |
| 5719 | 5721 |
| 5720 class _OfflineAudioCompletionEventJs extends _EventJs implements OfflineAudioCom
pletionEvent native "*OfflineAudioCompletionEvent" { | 5722 class _OfflineAudioCompletionEventJs extends _EventJs implements OfflineAudioCom
pletionEvent native "*OfflineAudioCompletionEvent" { |
| 5721 | 5723 |
| 5722 final _AudioBufferJs renderedBuffer; | 5724 final _AudioBufferJs renderedBuffer; |
| 5723 } | 5725 } |
| 5724 | 5726 |
| 5725 class _OperationNotAllowedExceptionJs extends _DOMTypeJs implements OperationNot
AllowedException native "*OperationNotAllowedException" { | |
| 5726 | |
| 5727 static final int NOT_ALLOWED_ERR = 1; | |
| 5728 | |
| 5729 final int code; | |
| 5730 | |
| 5731 final String message; | |
| 5732 | |
| 5733 final String name; | |
| 5734 | |
| 5735 String toString() native; | |
| 5736 } | |
| 5737 | |
| 5738 class _OscillatorJs extends _AudioSourceNodeJs implements Oscillator native "*Os
cillator" { | 5727 class _OscillatorJs extends _AudioSourceNodeJs implements Oscillator native "*Os
cillator" { |
| 5739 | 5728 |
| 5740 static final int CUSTOM = 4; | 5729 static final int CUSTOM = 4; |
| 5741 | 5730 |
| 5742 static final int FINISHED_STATE = 3; | 5731 static final int FINISHED_STATE = 3; |
| 5743 | 5732 |
| 5744 static final int PLAYING_STATE = 2; | 5733 static final int PLAYING_STATE = 2; |
| 5745 | 5734 |
| 5746 static final int SAWTOOTH = 2; | 5735 static final int SAWTOOTH = 2; |
| 5747 | 5736 |
| (...skipping 3701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9449 class _ShadowRootJs extends _DocumentFragmentJs implements ShadowRoot native "*S
hadowRoot" { | 9438 class _ShadowRootJs extends _DocumentFragmentJs implements ShadowRoot native "*S
hadowRoot" { |
| 9450 | 9439 |
| 9451 final _ElementJs activeElement; | 9440 final _ElementJs activeElement; |
| 9452 | 9441 |
| 9453 bool applyAuthorStyles; | 9442 bool applyAuthorStyles; |
| 9454 | 9443 |
| 9455 final _ElementJs host; | 9444 final _ElementJs host; |
| 9456 | 9445 |
| 9457 String innerHTML; | 9446 String innerHTML; |
| 9458 | 9447 |
| 9448 bool resetStyleInheritance; |
| 9449 |
| 9459 _ElementJs getElementById(String elementId) native; | 9450 _ElementJs getElementById(String elementId) native; |
| 9460 | 9451 |
| 9461 _NodeListJs getElementsByClassName(String className) native; | 9452 _NodeListJs getElementsByClassName(String className) native; |
| 9462 | 9453 |
| 9463 _NodeListJs getElementsByTagName(String tagName) native; | 9454 _NodeListJs getElementsByTagName(String tagName) native; |
| 9464 | 9455 |
| 9465 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | 9456 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; |
| 9466 | 9457 |
| 9467 _DOMSelectionJs getSelection() native; | 9458 _DOMSelectionJs getSelection() native; |
| 9468 } | 9459 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9643 | 9634 |
| 9644 final String oldValue; | 9635 final String oldValue; |
| 9645 | 9636 |
| 9646 final _StorageJs storageArea; | 9637 final _StorageJs storageArea; |
| 9647 | 9638 |
| 9648 final String url; | 9639 final String url; |
| 9649 | 9640 |
| 9650 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; | 9641 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; |
| 9651 } | 9642 } |
| 9652 | 9643 |
| 9653 class _StorageInfoJs extends _DOMTypeJs implements StorageInfo native "*StorageI
nfo" { | |
| 9654 | |
| 9655 static final int PERSISTENT = 1; | |
| 9656 | |
| 9657 static final int TEMPORARY = 0; | |
| 9658 | |
| 9659 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) native; | |
| 9660 | |
| 9661 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) native
; | |
| 9662 } | |
| 9663 | |
| 9664 class _StyleMediaJs extends _DOMTypeJs implements StyleMedia native "*StyleMedia
" { | 9644 class _StyleMediaJs extends _DOMTypeJs implements StyleMedia native "*StyleMedia
" { |
| 9665 | 9645 |
| 9666 final String type; | 9646 final String type; |
| 9667 | 9647 |
| 9668 bool matchMedium(String mediaquery) native; | 9648 bool matchMedium(String mediaquery) native; |
| 9669 } | 9649 } |
| 9670 | 9650 |
| 9671 class _StyleSheetJs extends _DOMTypeJs implements StyleSheet native "*StyleSheet
" { | 9651 class _StyleSheetJs extends _DOMTypeJs implements StyleSheet native "*StyleSheet
" { |
| 9672 | 9652 |
| 9673 bool disabled; | 9653 bool disabled; |
| (...skipping 4133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13807 final StyleMedia styleMedia; | 13787 final StyleMedia styleMedia; |
| 13808 | 13788 |
| 13809 final BarInfo toolbar; | 13789 final BarInfo toolbar; |
| 13810 | 13790 |
| 13811 final DOMWindow top; | 13791 final DOMWindow top; |
| 13812 | 13792 |
| 13813 final IDBFactory webkitIndexedDB; | 13793 final IDBFactory webkitIndexedDB; |
| 13814 | 13794 |
| 13815 final NotificationCenter webkitNotifications; | 13795 final NotificationCenter webkitNotifications; |
| 13816 | 13796 |
| 13817 final StorageInfo webkitStorageInfo; | |
| 13818 | |
| 13819 final DOMWindow window; | 13797 final DOMWindow window; |
| 13820 | 13798 |
| 13821 void addEventListener(String type, EventListener listener, [bool useCapture]); | 13799 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 13822 | 13800 |
| 13823 void alert(String message); | 13801 void alert(String message); |
| 13824 | 13802 |
| 13825 String atob(String string); | 13803 String atob(String string); |
| 13826 | 13804 |
| 13827 void blur(); | 13805 void blur(); |
| 13828 | 13806 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13919 | 13897 |
| 13920 interface DataTransferItem { | 13898 interface DataTransferItem { |
| 13921 | 13899 |
| 13922 final String kind; | 13900 final String kind; |
| 13923 | 13901 |
| 13924 final String type; | 13902 final String type; |
| 13925 | 13903 |
| 13926 Blob getAsFile(); | 13904 Blob getAsFile(); |
| 13927 | 13905 |
| 13928 void getAsString([StringCallback callback]); | 13906 void getAsString([StringCallback callback]); |
| 13907 |
| 13908 Entry webkitGetAsEntry(); |
| 13929 } | 13909 } |
| 13930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13931 // for details. All rights reserved. Use of this source code is governed by a | 13911 // for details. All rights reserved. Use of this source code is governed by a |
| 13932 // BSD-style license that can be found in the LICENSE file. | 13912 // BSD-style license that can be found in the LICENSE file. |
| 13933 | 13913 |
| 13934 // WARNING: Do not edit - generated code. | 13914 // WARNING: Do not edit - generated code. |
| 13935 | 13915 |
| 13936 interface DataTransferItemList { | 13916 interface DataTransferItemList { |
| 13937 | 13917 |
| 13938 final int length; | 13918 final int length; |
| (...skipping 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17140 static final int NO_ERR = 0; | 17120 static final int NO_ERR = 0; |
| 17141 | 17121 |
| 17142 static final int QUOTA_ERR = 22; | 17122 static final int QUOTA_ERR = 22; |
| 17143 | 17123 |
| 17144 static final int READ_ONLY_ERR = 9; | 17124 static final int READ_ONLY_ERR = 9; |
| 17145 | 17125 |
| 17146 static final int TIMEOUT_ERR = 23; | 17126 static final int TIMEOUT_ERR = 23; |
| 17147 | 17127 |
| 17148 static final int TRANSACTION_INACTIVE_ERR = 7; | 17128 static final int TRANSACTION_INACTIVE_ERR = 7; |
| 17149 | 17129 |
| 17130 static final int TYPE_ERR = 21; |
| 17131 |
| 17150 static final int UNKNOWN_ERR = 1; | 17132 static final int UNKNOWN_ERR = 1; |
| 17151 | 17133 |
| 17152 static final int VER_ERR = 12; | 17134 static final int VER_ERR = 12; |
| 17153 | 17135 |
| 17154 final int code; | 17136 final int code; |
| 17155 | 17137 |
| 17156 final String message; | 17138 final String message; |
| 17157 | 17139 |
| 17158 final String name; | 17140 final String name; |
| 17159 | 17141 |
| 17160 String toString(); | 17142 String toString(); |
| 17161 } | 17143 } |
| 17162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17163 // for details. All rights reserved. Use of this source code is governed by a | 17145 // for details. All rights reserved. Use of this source code is governed by a |
| 17164 // BSD-style license that can be found in the LICENSE file. | 17146 // BSD-style license that can be found in the LICENSE file. |
| 17165 | 17147 |
| 17166 // WARNING: Do not edit - generated code. | 17148 // WARNING: Do not edit - generated code. |
| 17167 | 17149 |
| 17168 interface IDBFactory { | 17150 interface IDBFactory { |
| 17169 | 17151 |
| 17170 int cmp(/*IDBKey*/ first, /*IDBKey*/ second); | 17152 int cmp(/*IDBKey*/ first, /*IDBKey*/ second); |
| 17171 | 17153 |
| 17172 IDBVersionChangeRequest deleteDatabase(String name); | 17154 IDBVersionChangeRequest deleteDatabase(String name); |
| 17173 | 17155 |
| 17174 IDBRequest getDatabaseNames(); | 17156 IDBRequest open(String name); |
| 17175 | 17157 |
| 17176 IDBRequest open(String name); | 17158 IDBRequest webkitGetDatabaseNames(); |
| 17177 } | 17159 } |
| 17178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17179 // for details. All rights reserved. Use of this source code is governed by a | 17161 // for details. All rights reserved. Use of this source code is governed by a |
| 17180 // BSD-style license that can be found in the LICENSE file. | 17162 // BSD-style license that can be found in the LICENSE file. |
| 17181 | 17163 |
| 17182 // WARNING: Do not edit - generated code. | 17164 // WARNING: Do not edit - generated code. |
| 17183 | 17165 |
| 17184 interface IDBIndex { | 17166 interface IDBIndex { |
| 17185 | 17167 |
| 17186 final /*IDBAny*/ keyPath; | 17168 final /*IDBAny*/ keyPath; |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18407 interface OfflineAudioCompletionEvent extends Event { | 18389 interface OfflineAudioCompletionEvent extends Event { |
| 18408 | 18390 |
| 18409 final AudioBuffer renderedBuffer; | 18391 final AudioBuffer renderedBuffer; |
| 18410 } | 18392 } |
| 18411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18412 // for details. All rights reserved. Use of this source code is governed by a | 18394 // for details. All rights reserved. Use of this source code is governed by a |
| 18413 // BSD-style license that can be found in the LICENSE file. | 18395 // BSD-style license that can be found in the LICENSE file. |
| 18414 | 18396 |
| 18415 // WARNING: Do not edit - generated code. | 18397 // WARNING: Do not edit - generated code. |
| 18416 | 18398 |
| 18417 interface OperationNotAllowedException { | |
| 18418 | |
| 18419 static final int NOT_ALLOWED_ERR = 1; | |
| 18420 | |
| 18421 final int code; | |
| 18422 | |
| 18423 final String message; | |
| 18424 | |
| 18425 final String name; | |
| 18426 | |
| 18427 String toString(); | |
| 18428 } | |
| 18429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18430 // for details. All rights reserved. Use of this source code is governed by a | |
| 18431 // BSD-style license that can be found in the LICENSE file. | |
| 18432 | |
| 18433 // WARNING: Do not edit - generated code. | |
| 18434 | |
| 18435 interface Oscillator extends AudioSourceNode { | 18399 interface Oscillator extends AudioSourceNode { |
| 18436 | 18400 |
| 18437 static final int CUSTOM = 4; | 18401 static final int CUSTOM = 4; |
| 18438 | 18402 |
| 18439 static final int FINISHED_STATE = 3; | 18403 static final int FINISHED_STATE = 3; |
| 18440 | 18404 |
| 18441 static final int PLAYING_STATE = 2; | 18405 static final int PLAYING_STATE = 2; |
| 18442 | 18406 |
| 18443 static final int SAWTOOTH = 2; | 18407 static final int SAWTOOTH = 2; |
| 18444 | 18408 |
| (...skipping 3268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21713 ShadowRoot(Element host); | 21677 ShadowRoot(Element host); |
| 21714 | 21678 |
| 21715 final Element activeElement; | 21679 final Element activeElement; |
| 21716 | 21680 |
| 21717 bool applyAuthorStyles; | 21681 bool applyAuthorStyles; |
| 21718 | 21682 |
| 21719 final Element host; | 21683 final Element host; |
| 21720 | 21684 |
| 21721 String innerHTML; | 21685 String innerHTML; |
| 21722 | 21686 |
| 21687 bool resetStyleInheritance; |
| 21688 |
| 21723 Element getElementById(String elementId); | 21689 Element getElementById(String elementId); |
| 21724 | 21690 |
| 21725 NodeList getElementsByClassName(String className); | 21691 NodeList getElementsByClassName(String className); |
| 21726 | 21692 |
| 21727 NodeList getElementsByTagName(String tagName); | 21693 NodeList getElementsByTagName(String tagName); |
| 21728 | 21694 |
| 21729 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | 21695 NodeList getElementsByTagNameNS(String namespaceURI, String localName); |
| 21730 | 21696 |
| 21731 DOMSelection getSelection(); | 21697 DOMSelection getSelection(); |
| 21732 } | 21698 } |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21973 final String newValue; | 21939 final String newValue; |
| 21974 | 21940 |
| 21975 final String oldValue; | 21941 final String oldValue; |
| 21976 | 21942 |
| 21977 final Storage storageArea; | 21943 final Storage storageArea; |
| 21978 | 21944 |
| 21979 final String url; | 21945 final String url; |
| 21980 | 21946 |
| 21981 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); | 21947 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); |
| 21982 } | 21948 } |
| 21983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21984 // for details. All rights reserved. Use of this source code is governed by a | |
| 21985 // BSD-style license that can be found in the LICENSE file. | |
| 21986 | |
| 21987 // WARNING: Do not edit - generated code. | |
| 21988 | |
| 21989 interface StorageInfo { | |
| 21990 | |
| 21991 static final int PERSISTENT = 1; | |
| 21992 | |
| 21993 static final int TEMPORARY = 0; | |
| 21994 | |
| 21995 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]); | |
| 21996 | |
| 21997 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]); | |
| 21998 } | |
| 21999 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 21949 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 22000 // for details. All rights reserved. Use of this source code is governed by a | 21950 // for details. All rights reserved. Use of this source code is governed by a |
| 22001 // BSD-style license that can be found in the LICENSE file. | 21951 // BSD-style license that can be found in the LICENSE file. |
| 22002 | |
| 22003 // WARNING: Do not edit - generated code. | |
| 22004 | |
| 22005 typedef bool StorageInfoErrorCallback(DOMException error); | |
| 22006 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22007 // for details. All rights reserved. Use of this source code is governed by a | |
| 22008 // BSD-style license that can be found in the LICENSE file. | |
| 22009 | |
| 22010 // WARNING: Do not edit - generated code. | |
| 22011 | |
| 22012 typedef bool StorageInfoQuotaCallback(int grantedQuotaInBytes); | |
| 22013 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22014 // for details. All rights reserved. Use of this source code is governed by a | |
| 22015 // BSD-style license that can be found in the LICENSE file. | |
| 22016 | |
| 22017 // WARNING: Do not edit - generated code. | |
| 22018 | |
| 22019 typedef bool StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaI
nBytes); | |
| 22020 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 22021 // for details. All rights reserved. Use of this source code is governed by a | |
| 22022 // BSD-style license that can be found in the LICENSE file. | |
| 22023 | 21952 |
| 22024 // WARNING: Do not edit - generated code. | 21953 // WARNING: Do not edit - generated code. |
| 22025 | 21954 |
| 22026 typedef bool StringCallback(String data); | 21955 typedef bool StringCallback(String data); |
| 22027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22028 // for details. All rights reserved. Use of this source code is governed by a | 21957 // for details. All rights reserved. Use of this source code is governed by a |
| 22029 // BSD-style license that can be found in the LICENSE file. | 21958 // BSD-style license that can be found in the LICENSE file. |
| 22030 | 21959 |
| 22031 // WARNING: Do not edit - generated code. | 21960 // WARNING: Do not edit - generated code. |
| 22032 | 21961 |
| (...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25291 if (length < 0) throw new IllegalArgumentException('length'); | 25220 if (length < 0) throw new IllegalArgumentException('length'); |
| 25292 if (start < 0) throw new IndexOutOfRangeException(start); | 25221 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25293 int end = start + length; | 25222 int end = start + length; |
| 25294 if (end > a.length) throw new IndexOutOfRangeException(end); | 25223 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25295 for (int i = start; i < end; i++) { | 25224 for (int i = start; i < end; i++) { |
| 25296 accumulator.add(a[i]); | 25225 accumulator.add(a[i]); |
| 25297 } | 25226 } |
| 25298 return accumulator; | 25227 return accumulator; |
| 25299 } | 25228 } |
| 25300 } | 25229 } |
| OLD | NEW |