| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 6001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6012 {bool canBubble: true, bool cancelable: true, Object detail}) { | 6012 {bool canBubble: true, bool cancelable: true, Object detail}) { |
| 6013 | 6013 |
| 6014 final CustomEvent e = document.$dom_createEvent("CustomEvent"); | 6014 final CustomEvent e = document.$dom_createEvent("CustomEvent"); |
| 6015 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); | 6015 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); |
| 6016 | 6016 |
| 6017 return e; | 6017 return e; |
| 6018 } | 6018 } |
| 6019 | 6019 |
| 6020 @DomName('CustomEvent.detail') | 6020 @DomName('CustomEvent.detail') |
| 6021 @DocsEditable | 6021 @DocsEditable |
| 6022 @Creates('Null') |
| 6022 final Object detail; | 6023 final Object detail; |
| 6023 | 6024 |
| 6024 @JSName('initCustomEvent') | 6025 @JSName('initCustomEvent') |
| 6025 @DomName('CustomEvent.initCustomEvent') | 6026 @DomName('CustomEvent.initCustomEvent') |
| 6026 @DocsEditable | 6027 @DocsEditable |
| 6027 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; | 6028 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; |
| 6028 | 6029 |
| 6029 } | 6030 } |
| 6030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6031 // for details. All rights reserved. Use of this source code is governed by a | 6032 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 4247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10279 | 10280 |
| 10280 | 10281 |
| 10281 @DocsEditable | 10282 @DocsEditable |
| 10282 @DomName('File') | 10283 @DomName('File') |
| 10283 class File extends Blob native "File" { | 10284 class File extends Blob native "File" { |
| 10284 | 10285 |
| 10285 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM
odifiedDate); | 10286 DateTime get lastModifiedDate => _convertNativeToDart_DateTime(this._get_lastM
odifiedDate); |
| 10286 @JSName('lastModifiedDate') | 10287 @JSName('lastModifiedDate') |
| 10287 @DomName('File.lastModifiedDate') | 10288 @DomName('File.lastModifiedDate') |
| 10288 @DocsEditable | 10289 @DocsEditable |
| 10290 @Creates('Null') |
| 10289 final dynamic _get_lastModifiedDate; | 10291 final dynamic _get_lastModifiedDate; |
| 10290 | 10292 |
| 10291 @DomName('File.name') | 10293 @DomName('File.name') |
| 10292 @DocsEditable | 10294 @DocsEditable |
| 10293 final String name; | 10295 final String name; |
| 10294 | 10296 |
| 10295 @JSName('webkitRelativePath') | 10297 @JSName('webkitRelativePath') |
| 10296 @DomName('File.webkitRelativePath') | 10298 @DomName('File.webkitRelativePath') |
| 10297 @DocsEditable | 10299 @DocsEditable |
| 10298 @SupportedBrowser(SupportedBrowser.CHROME) | 10300 @SupportedBrowser(SupportedBrowser.CHROME) |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10848 | 10850 |
| 10849 | 10851 |
| 10850 @DocsEditable | 10852 @DocsEditable |
| 10851 @DomName('FocusEvent') | 10853 @DomName('FocusEvent') |
| 10852 class FocusEvent extends UIEvent native "FocusEvent" { | 10854 class FocusEvent extends UIEvent native "FocusEvent" { |
| 10853 | 10855 |
| 10854 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re
latedTarget); | 10856 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re
latedTarget); |
| 10855 @JSName('relatedTarget') | 10857 @JSName('relatedTarget') |
| 10856 @DomName('FocusEvent.relatedTarget') | 10858 @DomName('FocusEvent.relatedTarget') |
| 10857 @DocsEditable | 10859 @DocsEditable |
| 10860 @Creates('Null') |
| 10858 final dynamic _get_relatedTarget; | 10861 final dynamic _get_relatedTarget; |
| 10859 } | 10862 } |
| 10860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10863 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10861 // for details. All rights reserved. Use of this source code is governed by a | 10864 // for details. All rights reserved. Use of this source code is governed by a |
| 10862 // BSD-style license that can be found in the LICENSE file. | 10865 // BSD-style license that can be found in the LICENSE file. |
| 10863 | 10866 |
| 10864 | 10867 |
| 10865 @DocsEditable | 10868 @DocsEditable |
| 10866 @DomName('FontLoader') | 10869 @DomName('FontLoader') |
| 10867 // http://www.w3.org/TR/css3-fonts/#document-fontloader | 10870 // http://www.w3.org/TR/css3-fonts/#document-fontloader |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12804 final ValidityState validity; | 12807 final ValidityState validity; |
| 12805 | 12808 |
| 12806 @DomName('HTMLInputElement.value') | 12809 @DomName('HTMLInputElement.value') |
| 12807 @DocsEditable | 12810 @DocsEditable |
| 12808 String value; | 12811 String value; |
| 12809 | 12812 |
| 12810 DateTime get valueAsDate => _convertNativeToDart_DateTime(this._get_valueAsDat
e); | 12813 DateTime get valueAsDate => _convertNativeToDart_DateTime(this._get_valueAsDat
e); |
| 12811 @JSName('valueAsDate') | 12814 @JSName('valueAsDate') |
| 12812 @DomName('HTMLInputElement.valueAsDate') | 12815 @DomName('HTMLInputElement.valueAsDate') |
| 12813 @DocsEditable | 12816 @DocsEditable |
| 12817 @Creates('Null') |
| 12814 final dynamic _get_valueAsDate; | 12818 final dynamic _get_valueAsDate; |
| 12815 | 12819 |
| 12816 void set valueAsDate(DateTime value) { | 12820 void set valueAsDate(DateTime value) { |
| 12817 this._set_valueAsDate = _convertDartToNative_DateTime(value); | 12821 this._set_valueAsDate = _convertDartToNative_DateTime(value); |
| 12818 } | 12822 } |
| 12819 void set _set_valueAsDate(/*dynamic*/ value) { | 12823 void set _set_valueAsDate(/*dynamic*/ value) { |
| 12820 JS("void", "#.valueAsDate = #", this, value); | 12824 JS("void", "#.valueAsDate = #", this, value); |
| 12821 } | 12825 } |
| 12822 | 12826 |
| 12823 @DomName('HTMLInputElement.valueAsNumber') | 12827 @DomName('HTMLInputElement.valueAsNumber') |
| (...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13830 void reload() native; | 13834 void reload() native; |
| 13831 | 13835 |
| 13832 @DomName('Location.replace') | 13836 @DomName('Location.replace') |
| 13833 @DocsEditable | 13837 @DocsEditable |
| 13834 void replace(String url) native; | 13838 void replace(String url) native; |
| 13835 | 13839 |
| 13836 @DomName('Location.toString') | 13840 @DomName('Location.toString') |
| 13837 @DocsEditable | 13841 @DocsEditable |
| 13838 String toString() native; | 13842 String toString() native; |
| 13839 | 13843 |
| 13840 @DomName('Location.valueOf') | |
| 13841 @DocsEditable | |
| 13842 @Experimental // nonstandard | |
| 13843 Object valueOf() native; | |
| 13844 | |
| 13845 | 13844 |
| 13846 @DomName('Location.origin') | 13845 @DomName('Location.origin') |
| 13847 String get origin { | 13846 String get origin { |
| 13848 if (JS('bool', '("origin" in #)', this)) { | 13847 if (JS('bool', '("origin" in #)', this)) { |
| 13849 return JS('String', '#.origin', this); | 13848 return JS('String', '#.origin', this); |
| 13850 } | 13849 } |
| 13851 return '${this.protocol}//${this.host}'; | 13850 return '${this.protocol}//${this.host}'; |
| 13852 } | 13851 } |
| 13853 } | 13852 } |
| 13854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15264 @DocsEditable | 15263 @DocsEditable |
| 15265 @DomName('Metadata') | 15264 @DomName('Metadata') |
| 15266 // http://www.w3.org/TR/file-system-api/#the-metadata-interface | 15265 // http://www.w3.org/TR/file-system-api/#the-metadata-interface |
| 15267 @Experimental | 15266 @Experimental |
| 15268 class Metadata native "Metadata" { | 15267 class Metadata native "Metadata" { |
| 15269 | 15268 |
| 15270 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif
icationTime); | 15269 DateTime get modificationTime => _convertNativeToDart_DateTime(this._get_modif
icationTime); |
| 15271 @JSName('modificationTime') | 15270 @JSName('modificationTime') |
| 15272 @DomName('Metadata.modificationTime') | 15271 @DomName('Metadata.modificationTime') |
| 15273 @DocsEditable | 15272 @DocsEditable |
| 15273 @Creates('Null') |
| 15274 final dynamic _get_modificationTime; | 15274 final dynamic _get_modificationTime; |
| 15275 | 15275 |
| 15276 @DomName('Metadata.size') | 15276 @DomName('Metadata.size') |
| 15277 @DocsEditable | 15277 @DocsEditable |
| 15278 final int size; | 15278 final int size; |
| 15279 } | 15279 } |
| 15280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15281 // for details. All rights reserved. Use of this source code is governed by a | 15281 // for details. All rights reserved. Use of this source code is governed by a |
| 15282 // BSD-style license that can be found in the LICENSE file. | 15282 // BSD-style license that can be found in the LICENSE file. |
| 15283 | 15283 |
| (...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19043 final RtcStatsReport local; | 19043 final RtcStatsReport local; |
| 19044 | 19044 |
| 19045 @DomName('RTCStatsReport.remote') | 19045 @DomName('RTCStatsReport.remote') |
| 19046 @DocsEditable | 19046 @DocsEditable |
| 19047 final RtcStatsReport remote; | 19047 final RtcStatsReport remote; |
| 19048 | 19048 |
| 19049 DateTime get timestamp => _convertNativeToDart_DateTime(this._get_timestamp); | 19049 DateTime get timestamp => _convertNativeToDart_DateTime(this._get_timestamp); |
| 19050 @JSName('timestamp') | 19050 @JSName('timestamp') |
| 19051 @DomName('RTCStatsReport.timestamp') | 19051 @DomName('RTCStatsReport.timestamp') |
| 19052 @DocsEditable | 19052 @DocsEditable |
| 19053 @Creates('Null') |
| 19053 final dynamic _get_timestamp; | 19054 final dynamic _get_timestamp; |
| 19054 | 19055 |
| 19055 @DomName('RTCStatsReport.type') | 19056 @DomName('RTCStatsReport.type') |
| 19056 @DocsEditable | 19057 @DocsEditable |
| 19057 final String type; | 19058 final String type; |
| 19058 | 19059 |
| 19059 @DomName('RTCStatsReport.names') | 19060 @DomName('RTCStatsReport.names') |
| 19060 @DocsEditable | 19061 @DocsEditable |
| 19061 List<String> names() native; | 19062 List<String> names() native; |
| 19062 | 19063 |
| (...skipping 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22084 // BSD-style license that can be found in the LICENSE file. | 22085 // BSD-style license that can be found in the LICENSE file. |
| 22085 | 22086 |
| 22086 | 22087 |
| 22087 @DocsEditable | 22088 @DocsEditable |
| 22088 @DomName('TrackEvent') | 22089 @DomName('TrackEvent') |
| 22089 @Unstable | 22090 @Unstable |
| 22090 class TrackEvent extends Event native "TrackEvent" { | 22091 class TrackEvent extends Event native "TrackEvent" { |
| 22091 | 22092 |
| 22092 @DomName('TrackEvent.track') | 22093 @DomName('TrackEvent.track') |
| 22093 @DocsEditable | 22094 @DocsEditable |
| 22095 @Creates('Null') |
| 22094 final Object track; | 22096 final Object track; |
| 22095 } | 22097 } |
| 22096 // 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 |
| 22097 // 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 |
| 22098 // BSD-style license that can be found in the LICENSE file. | 22100 // BSD-style license that can be found in the LICENSE file. |
| 22099 | 22101 |
| 22100 | 22102 |
| 22101 @DocsEditable | 22103 @DocsEditable |
| 22102 @DomName('TransitionEvent') | 22104 @DomName('TransitionEvent') |
| 22103 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
t" { | 22105 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
t" { |
| (...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23631 @DocsEditable | 23633 @DocsEditable |
| 23632 int _setInterval(Object handler, int timeout) native; | 23634 int _setInterval(Object handler, int timeout) native; |
| 23633 | 23635 |
| 23634 @JSName('setTimeout') | 23636 @JSName('setTimeout') |
| 23635 @DomName('Window.setTimeout') | 23637 @DomName('Window.setTimeout') |
| 23636 @DocsEditable | 23638 @DocsEditable |
| 23637 int _setTimeout(Object handler, int timeout) native; | 23639 int _setTimeout(Object handler, int timeout) native; |
| 23638 | 23640 |
| 23639 @DomName('Window.showModalDialog') | 23641 @DomName('Window.showModalDialog') |
| 23640 @DocsEditable | 23642 @DocsEditable |
| 23643 @Creates('Null') |
| 23641 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | 23644 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; |
| 23642 | 23645 |
| 23643 @DomName('Window.stop') | 23646 @DomName('Window.stop') |
| 23644 @DocsEditable | 23647 @DocsEditable |
| 23645 void stop() native; | 23648 void stop() native; |
| 23646 | 23649 |
| 23647 @DomName('Window.toString') | 23650 @DomName('Window.toString') |
| 23648 @DocsEditable | 23651 @DocsEditable |
| 23649 String toString() native; | 23652 String toString() native; |
| 23650 | 23653 |
| (...skipping 6236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29887 _position = nextPosition; | 29890 _position = nextPosition; |
| 29888 return true; | 29891 return true; |
| 29889 } | 29892 } |
| 29890 _current = null; | 29893 _current = null; |
| 29891 _position = _array.length; | 29894 _position = _array.length; |
| 29892 return false; | 29895 return false; |
| 29893 } | 29896 } |
| 29894 | 29897 |
| 29895 T get current => _current; | 29898 T get current => _current; |
| 29896 } | 29899 } |
| OLD | NEW |