| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:collection'; | 3 import 'dart:collection'; |
| 4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
| 5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
| 6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
| 7 import 'dart:json'; | 7 import 'dart:json'; |
| 8 import 'dart:svg' as svg; | 8 import 'dart:svg' as svg; |
| 9 import 'dart:web_audio' as web_audio; | 9 import 'dart:web_audio' as web_audio; |
| 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 7554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7565 * [x-tags][] project. Please note: in the future it may be possible to | 7565 * [x-tags][] project. Please note: in the future it may be possible to |
| 7566 * `extend Element` from your class, in which case this field will be | 7566 * `extend Element` from your class, in which case this field will be |
| 7567 * deprecated and will simply return this [Element] object. | 7567 * deprecated and will simply return this [Element] object. |
| 7568 * | 7568 * |
| 7569 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html | 7569 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html |
| 7570 * [x-tags]: http://x-tags.org/ | 7570 * [x-tags]: http://x-tags.org/ |
| 7571 */ | 7571 */ |
| 7572 @Creates('Null') // Set from Dart code; does not instantiate a native type. | 7572 @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| 7573 var xtag; | 7573 var xtag; |
| 7574 | 7574 |
| 7575 // TODO(vsm): Implement noSuchMethod or similar for dart2js. | |
| 7576 | |
| 7577 /** | 7575 /** |
| 7578 * Creates a text node and inserts it into the DOM at the specified location. | 7576 * Creates a text node and inserts it into the DOM at the specified location. |
| 7579 * | 7577 * |
| 7580 * To see the possible values for [where], read the doc for | 7578 * To see the possible values for [where], read the doc for |
| 7581 * [insertAdjacentHtml]. | 7579 * [insertAdjacentHtml]. |
| 7582 * | 7580 * |
| 7583 * See also: | 7581 * See also: |
| 7584 * | 7582 * |
| 7585 * * [insertAdjacentHtml] | 7583 * * [insertAdjacentHtml] |
| 7586 */ | 7584 */ |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7889 void webkitRequestFullScreen(int flags) native; | 7887 void webkitRequestFullScreen(int flags) native; |
| 7890 | 7888 |
| 7891 /// @domName Element.webkitRequestFullscreen; @docsEditable true | 7889 /// @domName Element.webkitRequestFullscreen; @docsEditable true |
| 7892 void webkitRequestFullscreen() native; | 7890 void webkitRequestFullscreen() native; |
| 7893 | 7891 |
| 7894 /// @domName Element.webkitRequestPointerLock; @docsEditable true | 7892 /// @domName Element.webkitRequestPointerLock; @docsEditable true |
| 7895 void webkitRequestPointerLock() native; | 7893 void webkitRequestPointerLock() native; |
| 7896 | 7894 |
| 7897 } | 7895 } |
| 7898 | 7896 |
| 7899 // Temporary dispatch hook to support WebComponents. | |
| 7900 Function dynamicUnknownElementDispatcher; | |
| 7901 | |
| 7902 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); | 7897 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
| 7903 class _ElementFactoryProvider { | 7898 class _ElementFactoryProvider { |
| 7904 static final _CUSTOM_PARENT_TAG_MAP = const { | 7899 static final _CUSTOM_PARENT_TAG_MAP = const { |
| 7905 'body' : 'html', | 7900 'body' : 'html', |
| 7906 'head' : 'html', | 7901 'head' : 'html', |
| 7907 'caption' : 'table', | 7902 'caption' : 'table', |
| 7908 'td': 'tr', | 7903 'td': 'tr', |
| 7909 'colgroup': 'table', | 7904 'colgroup': 'table', |
| 7910 'col' : 'colgroup', | 7905 'col' : 'colgroup', |
| 7911 'tr' : 'tbody', | 7906 'tr' : 'tbody', |
| (...skipping 17420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25332 T next() { | 25327 T next() { |
| 25333 if (!hasNext) { | 25328 if (!hasNext) { |
| 25334 throw new StateError("No more elements"); | 25329 throw new StateError("No more elements"); |
| 25335 } | 25330 } |
| 25336 return _array[_pos++]; | 25331 return _array[_pos++]; |
| 25337 } | 25332 } |
| 25338 | 25333 |
| 25339 final List<T> _array; | 25334 final List<T> _array; |
| 25340 int _pos; | 25335 int _pos; |
| 25341 } | 25336 } |
| OLD | NEW |