OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:async'; | 3 import 'dart:async'; |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
(...skipping 6438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6449 // for details. All rights reserved. Use of this source code is governed by a | 6449 // for details. All rights reserved. Use of this source code is governed by a |
6450 // BSD-style license that can be found in the LICENSE file. | 6450 // BSD-style license that can be found in the LICENSE file. |
6451 | 6451 |
6452 | 6452 |
6453 /// @domName DOMError; @docsEditable true | 6453 /// @domName DOMError; @docsEditable true |
6454 class DomError native "*DOMError" { | 6454 class DomError native "*DOMError" { |
6455 | 6455 |
6456 /// @domName DOMError.name; @docsEditable true | 6456 /// @domName DOMError.name; @docsEditable true |
6457 final String name; | 6457 final String name; |
6458 } | 6458 } |
6459 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 6459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6460 // for details. All rights reserved. Use of this source code is governed by a | 6460 // for details. All rights reserved. Use of this source code is governed by a |
6461 // BSD-style license that can be found in the LICENSE file. | 6461 // BSD-style license that can be found in the LICENSE file. |
6462 | 6462 |
6463 | 6463 |
6464 /// @domName DOMException | 6464 /// @domName DOMException; @docsEditable true |
6465 class DomException native "*DOMException" { | 6465 class DomException native "*DOMException" { |
6466 | 6466 |
6467 static const String INDEX_SIZE = 'IndexSizeError'; | |
6468 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; | |
6469 static const String WRONG_DOCUMENT = 'WrongDocumentError'; | |
6470 static const String INVALID_CHARACTER = 'InvalidCharacterError'; | |
6471 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; | |
6472 static const String NOT_FOUND = 'NotFoundError'; | |
6473 static const String NOT_SUPPORTED = 'NotSupportedError'; | |
6474 static const String INVALID_STATE = 'InvalidStateError'; | |
6475 static const String SYNTAX = 'SyntaxError'; | |
6476 static const String INVALID_MODIFICATION = 'InvalidModificationError'; | |
6477 static const String NAMESPACE = 'NamespaceError'; | |
6478 static const String INVALID_ACCESS = 'InvalidAccessError'; | |
6479 static const String TYPE_MISMATCH = 'TypeMismatchError'; | |
6480 static const String SECURITY = 'SecurityError'; | |
6481 static const String NETWORK = 'NetworkError'; | |
6482 static const String ABORT = 'AbortError'; | |
6483 static const String URL_MISMATCH = 'URLMismatchError'; | |
6484 static const String QUOTA_EXCEEDED = 'QuotaExceededError'; | |
6485 static const String TIMEOUT = 'TimeoutError'; | |
6486 static const String INVALID_NODE_TYPE = 'InvalidNodeTypeError'; | |
6487 static const String DATA_CLONE = 'DataCloneError'; | |
6488 | |
6489 String get name { | |
6490 var errorName = JS('String', '#.name', this); | |
6491 // Although Safari nightly has updated the name to SecurityError, Safari 5 | |
6492 // and 6 still return SECURITY_ERR. | |
6493 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; | |
6494 // Chrome release still uses old string, remove this line when Chrome stable | |
6495 // also prints out SyntaxError. | |
6496 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; | |
6497 return errorName; | |
6498 } | |
6499 | |
6500 /// @domName DOMException.message; @docsEditable true | 6467 /// @domName DOMException.message; @docsEditable true |
6501 final String message; | 6468 final String message; |
6502 | 6469 |
6503 /// @domName DOMException.toString; @docsEditable true | 6470 /// @domName DOMException.toString; @docsEditable true |
6504 String toString() native; | 6471 String toString() native; |
6505 | |
6506 } | 6472 } |
6507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6508 // for details. All rights reserved. Use of this source code is governed by a | 6474 // for details. All rights reserved. Use of this source code is governed by a |
6509 // BSD-style license that can be found in the LICENSE file. | 6475 // BSD-style license that can be found in the LICENSE file. |
6510 | 6476 |
6511 | 6477 |
6512 /// @domName DOMImplementation; @docsEditable true | 6478 /// @domName DOMImplementation; @docsEditable true |
6513 class DomImplementation native "*DOMImplementation" { | 6479 class DomImplementation native "*DOMImplementation" { |
6514 | 6480 |
6515 /// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true | 6481 /// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true |
(...skipping 21548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
28064 _position = nextPosition; | 28030 _position = nextPosition; |
28065 return true; | 28031 return true; |
28066 } | 28032 } |
28067 _current = null; | 28033 _current = null; |
28068 _position = _array.length; | 28034 _position = _array.length; |
28069 return false; | 28035 return false; |
28070 } | 28036 } |
28071 | 28037 |
28072 T get current => _current; | 28038 T get current => _current; |
28073 } | 28039 } |
OLD | NEW |