| 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 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 class _DataTransferItemJs extends _DOMTypeJs implements DataTransferItem native
"*DataTransferItem" { | 1382 class _DataTransferItemJs extends _DOMTypeJs implements DataTransferItem native
"*DataTransferItem" { |
| 1383 | 1383 |
| 1384 final String kind; | 1384 final String kind; |
| 1385 | 1385 |
| 1386 final String type; | 1386 final String type; |
| 1387 | 1387 |
| 1388 _BlobJs getAsFile() native; | 1388 _BlobJs getAsFile() native; |
| 1389 | 1389 |
| 1390 void getAsString(StringCallback callback) native; | 1390 void getAsString([StringCallback callback = null]) native; |
| 1391 } | 1391 } |
| 1392 | 1392 |
| 1393 class _DataTransferItemListJs extends _DOMTypeJs implements DataTransferItemList
native "*DataTransferItemList" { | 1393 class _DataTransferItemListJs extends _DOMTypeJs implements DataTransferItemList
native "*DataTransferItemList" { |
| 1394 | 1394 |
| 1395 final int length; | 1395 final int length; |
| 1396 | 1396 |
| 1397 void add(var data_OR_file, [String type = null]) native; | 1397 void add(var data_OR_file, [String type = null]) native; |
| 1398 | 1398 |
| 1399 void clear() native; | 1399 void clear() native; |
| 1400 | 1400 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 _TouchListJs createTouchList() native; | 1637 _TouchListJs createTouchList() native; |
| 1638 | 1638 |
| 1639 _TreeWalkerJs createTreeWalker(_NodeJs root, int whatToShow, _NodeFilterJs fil
ter, bool expandEntityReferences) native; | 1639 _TreeWalkerJs createTreeWalker(_NodeJs root, int whatToShow, _NodeFilterJs fil
ter, bool expandEntityReferences) native; |
| 1640 | 1640 |
| 1641 _ElementJs elementFromPoint(int x, int y) native; | 1641 _ElementJs elementFromPoint(int x, int y) native; |
| 1642 | 1642 |
| 1643 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; | 1643 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; |
| 1644 | 1644 |
| 1645 bool execCommand(String command, bool userInterface, String value) native; | 1645 bool execCommand(String command, bool userInterface, String value) native; |
| 1646 | 1646 |
| 1647 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t) native; | 1647 _CanvasRenderingContextJs getCSSCanvasContext(String contextId, String name, i
nt width, int height) native; |
| 1648 | 1648 |
| 1649 _ElementJs getElementById(String elementId) native; | 1649 _ElementJs getElementById(String elementId) native; |
| 1650 | 1650 |
| 1651 _NodeListJs getElementsByClassName(String tagname) native; | 1651 _NodeListJs getElementsByClassName(String tagname) native; |
| 1652 | 1652 |
| 1653 _NodeListJs getElementsByName(String elementName) native; | 1653 _NodeListJs getElementsByName(String elementName) native; |
| 1654 | 1654 |
| 1655 _NodeListJs getElementsByTagName(String tagname) native; | 1655 _NodeListJs getElementsByTagName(String tagname) native; |
| 1656 | 1656 |
| 1657 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | 1657 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; |
| (...skipping 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4054 _IDBObjectStoreJs createObjectStore(String name) native; | 4054 _IDBObjectStoreJs createObjectStore(String name) native; |
| 4055 | 4055 |
| 4056 void deleteObjectStore(String name) native; | 4056 void deleteObjectStore(String name) native; |
| 4057 | 4057 |
| 4058 bool dispatchEvent(_EventJs evt) native; | 4058 bool dispatchEvent(_EventJs evt) native; |
| 4059 | 4059 |
| 4060 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 4060 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 4061 | 4061 |
| 4062 _IDBVersionChangeRequestJs setVersion(String version) native; | 4062 _IDBVersionChangeRequestJs setVersion(String version) native; |
| 4063 | 4063 |
| 4064 _IDBTransactionJs transaction(var storeName_OR_storeNames, int mode) native; | 4064 _IDBTransactionJs transaction(var storeName_OR_storeNames, [int mode = null])
native; |
| 4065 } | 4065 } |
| 4066 | 4066 |
| 4067 class _IDBDatabaseErrorJs extends _DOMTypeJs implements IDBDatabaseError native
"*IDBDatabaseError" { | 4067 class _IDBDatabaseErrorJs extends _DOMTypeJs implements IDBDatabaseError native
"*IDBDatabaseError" { |
| 4068 | 4068 |
| 4069 int code; | 4069 int code; |
| 4070 | 4070 |
| 4071 String message; | 4071 String message; |
| 4072 } | 4072 } |
| 4073 | 4073 |
| 4074 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { | 4074 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { |
| (...skipping 9289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13364 // WARNING: Do not edit - generated code. | 13364 // WARNING: Do not edit - generated code. |
| 13365 | 13365 |
| 13366 interface DataTransferItem { | 13366 interface DataTransferItem { |
| 13367 | 13367 |
| 13368 final String kind; | 13368 final String kind; |
| 13369 | 13369 |
| 13370 final String type; | 13370 final String type; |
| 13371 | 13371 |
| 13372 Blob getAsFile(); | 13372 Blob getAsFile(); |
| 13373 | 13373 |
| 13374 void getAsString(StringCallback callback); | 13374 void getAsString([StringCallback callback]); |
| 13375 } | 13375 } |
| 13376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13377 // for details. All rights reserved. Use of this source code is governed by a | 13377 // for details. All rights reserved. Use of this source code is governed by a |
| 13378 // BSD-style license that can be found in the LICENSE file. | 13378 // BSD-style license that can be found in the LICENSE file. |
| 13379 | 13379 |
| 13380 // WARNING: Do not edit - generated code. | 13380 // WARNING: Do not edit - generated code. |
| 13381 | 13381 |
| 13382 interface DataTransferItemList { | 13382 interface DataTransferItemList { |
| 13383 | 13383 |
| 13384 final int length; | 13384 final int length; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13696 TouchList createTouchList(); | 13696 TouchList createTouchList(); |
| 13697 | 13697 |
| 13698 TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, bool
expandEntityReferences); | 13698 TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, bool
expandEntityReferences); |
| 13699 | 13699 |
| 13700 Element elementFromPoint(int x, int y); | 13700 Element elementFromPoint(int x, int y); |
| 13701 | 13701 |
| 13702 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); | 13702 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); |
| 13703 | 13703 |
| 13704 bool execCommand(String command, bool userInterface, String value); | 13704 bool execCommand(String command, bool userInterface, String value); |
| 13705 | 13705 |
| 13706 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t); | 13706 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height); |
| 13707 | 13707 |
| 13708 Element getElementById(String elementId); | 13708 Element getElementById(String elementId); |
| 13709 | 13709 |
| 13710 NodeList getElementsByClassName(String tagname); | 13710 NodeList getElementsByClassName(String tagname); |
| 13711 | 13711 |
| 13712 NodeList getElementsByName(String elementName); | 13712 NodeList getElementsByName(String elementName); |
| 13713 | 13713 |
| 13714 NodeList getElementsByTagName(String tagname); | 13714 NodeList getElementsByTagName(String tagname); |
| 13715 | 13715 |
| 13716 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | 13716 NodeList getElementsByTagNameNS(String namespaceURI, String localName); |
| (...skipping 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16484 IDBObjectStore createObjectStore(String name); | 16484 IDBObjectStore createObjectStore(String name); |
| 16485 | 16485 |
| 16486 void deleteObjectStore(String name); | 16486 void deleteObjectStore(String name); |
| 16487 | 16487 |
| 16488 bool dispatchEvent(Event evt); | 16488 bool dispatchEvent(Event evt); |
| 16489 | 16489 |
| 16490 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 16490 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 16491 | 16491 |
| 16492 IDBVersionChangeRequest setVersion(String version); | 16492 IDBVersionChangeRequest setVersion(String version); |
| 16493 | 16493 |
| 16494 IDBTransaction transaction(var storeName_OR_storeNames, int mode); | 16494 IDBTransaction transaction(var storeName_OR_storeNames, [int mode]); |
| 16495 } | 16495 } |
| 16496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16497 // for details. All rights reserved. Use of this source code is governed by a | 16497 // for details. All rights reserved. Use of this source code is governed by a |
| 16498 // BSD-style license that can be found in the LICENSE file. | 16498 // BSD-style license that can be found in the LICENSE file. |
| 16499 | 16499 |
| 16500 // WARNING: Do not edit - generated code. | 16500 // WARNING: Do not edit - generated code. |
| 16501 | 16501 |
| 16502 interface IDBDatabaseError { | 16502 interface IDBDatabaseError { |
| 16503 | 16503 |
| 16504 int code; | 16504 int code; |
| (...skipping 7652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24157 if (length < 0) throw new IllegalArgumentException('length'); | 24157 if (length < 0) throw new IllegalArgumentException('length'); |
| 24158 if (start < 0) throw new IndexOutOfRangeException(start); | 24158 if (start < 0) throw new IndexOutOfRangeException(start); |
| 24159 int end = start + length; | 24159 int end = start + length; |
| 24160 if (end > a.length) throw new IndexOutOfRangeException(end); | 24160 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 24161 for (int i = start; i < end; i++) { | 24161 for (int i = start; i < end; i++) { |
| 24162 accumulator.add(a[i]); | 24162 accumulator.add(a[i]); |
| 24163 } | 24163 } |
| 24164 return accumulator; | 24164 return accumulator; |
| 24165 } | 24165 } |
| 24166 } | 24166 } |
| OLD | NEW |