| 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 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2051 @DomName('WebKitCSSKeyframesRule.cssRules') | 2051 @DomName('WebKitCSSKeyframesRule.cssRules') |
| 2052 @DocsEditable | 2052 @DocsEditable |
| 2053 @Returns('_CssRuleList') | 2053 @Returns('_CssRuleList') |
| 2054 @Creates('_CssRuleList') | 2054 @Creates('_CssRuleList') |
| 2055 final List<CssRule> cssRules; | 2055 final List<CssRule> cssRules; |
| 2056 | 2056 |
| 2057 @DomName('WebKitCSSKeyframesRule.name') | 2057 @DomName('WebKitCSSKeyframesRule.name') |
| 2058 @DocsEditable | 2058 @DocsEditable |
| 2059 String name; | 2059 String name; |
| 2060 | 2060 |
| 2061 @JSName('None') | 2061 @DomName('WebKitCSSKeyframesRule.__getter__') |
| 2062 @DomName('WebKitCSSKeyframesRule') | 2062 @DocsEditable |
| 2063 @SupportedBrowser(SupportedBrowser.CHROME) | 2063 @Experimental // untriaged |
| 2064 @SupportedBrowser(SupportedBrowser.SAFARI) | 2064 CssKeyframeRule __getter__(int index) native; |
| 2065 @Experimental | |
| 2066 // http://www.w3.org/TR/css3-animations/#csskeyframesrule | |
| 2067 CssKeyframeRule item(int index) native; | |
| 2068 | 2065 |
| 2069 @DomName('WebKitCSSKeyframesRule.deleteRule') | 2066 @DomName('WebKitCSSKeyframesRule.deleteRule') |
| 2070 @DocsEditable | 2067 @DocsEditable |
| 2071 void deleteRule(String key) native; | 2068 void deleteRule(String key) native; |
| 2072 | 2069 |
| 2073 @DomName('WebKitCSSKeyframesRule.findRule') | 2070 @DomName('WebKitCSSKeyframesRule.findRule') |
| 2074 @DocsEditable | 2071 @DocsEditable |
| 2075 CssKeyframeRule findRule(String key) native; | 2072 CssKeyframeRule findRule(String key) native; |
| 2076 | 2073 |
| 2077 @DomName('WebKitCSSKeyframesRule.insertRule') | 2074 @DomName('WebKitCSSKeyframesRule.insertRule') |
| (...skipping 5044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7122 | 7119 |
| 7123 | 7120 |
| 7124 @DocsEditable | 7121 @DocsEditable |
| 7125 @DomName('DOMSettableTokenList') | 7122 @DomName('DOMSettableTokenList') |
| 7126 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { | 7123 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { |
| 7127 | 7124 |
| 7128 @DomName('DOMSettableTokenList.value') | 7125 @DomName('DOMSettableTokenList.value') |
| 7129 @DocsEditable | 7126 @DocsEditable |
| 7130 String value; | 7127 String value; |
| 7131 | 7128 |
| 7132 @JSName('None') | 7129 @DomName('DOMSettableTokenList.__getter__') |
| 7133 @DomName('DOMSettableTokenList') | 7130 @DocsEditable |
| 7134 String item(int index) native; | 7131 @Experimental // untriaged |
| 7132 String __getter__(int index) native; |
| 7135 } | 7133 } |
| 7136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7137 // for details. All rights reserved. Use of this source code is governed by a | 7135 // for details. All rights reserved. Use of this source code is governed by a |
| 7138 // BSD-style license that can be found in the LICENSE file. | 7136 // BSD-style license that can be found in the LICENSE file. |
| 7139 | 7137 |
| 7140 | 7138 |
| 7141 @DocsEditable | 7139 @DocsEditable |
| 7142 @DomName('DOMStringList') | 7140 @DomName('DOMStringList') |
| 7143 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString
List" { | 7141 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString
List" { |
| 7144 | 7142 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7199 String item(int index) native; | 7197 String item(int index) native; |
| 7200 } | 7198 } |
| 7201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7202 // for details. All rights reserved. Use of this source code is governed by a | 7200 // for details. All rights reserved. Use of this source code is governed by a |
| 7203 // BSD-style license that can be found in the LICENSE file. | 7201 // BSD-style license that can be found in the LICENSE file. |
| 7204 | 7202 |
| 7205 | 7203 |
| 7206 @DomName('DOMStringMap') | 7204 @DomName('DOMStringMap') |
| 7207 abstract class DomStringMap { | 7205 abstract class DomStringMap { |
| 7208 | 7206 |
| 7209 String None(String name); | 7207 String __getter__(String name); |
| 7210 } | 7208 } |
| 7211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7212 // for details. All rights reserved. Use of this source code is governed by a | 7210 // for details. All rights reserved. Use of this source code is governed by a |
| 7213 // BSD-style license that can be found in the LICENSE file. | 7211 // BSD-style license that can be found in the LICENSE file. |
| 7214 | 7212 |
| 7215 | 7213 |
| 7216 @DocsEditable | 7214 @DocsEditable |
| 7217 @DomName('DOMTokenList') | 7215 @DomName('DOMTokenList') |
| 7218 class DomTokenList native "DOMTokenList" { | 7216 class DomTokenList native "DOMTokenList" { |
| 7219 | 7217 |
| (...skipping 3372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10592 String name; | 10590 String name; |
| 10593 | 10591 |
| 10594 @DomName('HTMLFormElement.noValidate') | 10592 @DomName('HTMLFormElement.noValidate') |
| 10595 @DocsEditable | 10593 @DocsEditable |
| 10596 bool noValidate; | 10594 bool noValidate; |
| 10597 | 10595 |
| 10598 @DomName('HTMLFormElement.target') | 10596 @DomName('HTMLFormElement.target') |
| 10599 @DocsEditable | 10597 @DocsEditable |
| 10600 String target; | 10598 String target; |
| 10601 | 10599 |
| 10602 @JSName('None') | 10600 @DomName('HTMLFormElement.__getter__') |
| 10603 @DomName('HTMLFormElement') | 10601 @DocsEditable |
| 10604 Node item(int index) native; | 10602 @Experimental // untriaged |
| 10603 Node __getter__(int index) native; |
| 10605 | 10604 |
| 10606 @DomName('HTMLFormElement.checkValidity') | 10605 @DomName('HTMLFormElement.checkValidity') |
| 10607 @DocsEditable | 10606 @DocsEditable |
| 10608 bool checkValidity() native; | 10607 bool checkValidity() native; |
| 10609 | 10608 |
| 10610 @DomName('HTMLFormElement.requestAutocomplete') | 10609 @DomName('HTMLFormElement.requestAutocomplete') |
| 10611 @DocsEditable | 10610 @DocsEditable |
| 10612 // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.htm
l | 10611 // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.htm
l |
| 10613 @Experimental | 10612 @Experimental |
| 10614 void requestAutocomplete() native; | 10613 void requestAutocomplete() native; |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11276 } | 11275 } |
| 11277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11278 // for details. All rights reserved. Use of this source code is governed by a | 11277 // for details. All rights reserved. Use of this source code is governed by a |
| 11279 // BSD-style license that can be found in the LICENSE file. | 11278 // BSD-style license that can be found in the LICENSE file. |
| 11280 | 11279 |
| 11281 | 11280 |
| 11282 @DocsEditable | 11281 @DocsEditable |
| 11283 @DomName('HTMLFormControlsCollection') | 11282 @DomName('HTMLFormControlsCollection') |
| 11284 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls
Collection" { | 11283 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls
Collection" { |
| 11285 | 11284 |
| 11286 @JSName('None') | 11285 @DomName('HTMLFormControlsCollection.__getter__') |
| 11287 @DomName('HTMLFormControlsCollection') | 11286 @DocsEditable |
| 11288 Node item(int index) native; | 11287 @Experimental // untriaged |
| 11288 Node __getter__(int index) native; |
| 11289 | 11289 |
| 11290 @DomName('HTMLFormControlsCollection.namedItem') | 11290 @DomName('HTMLFormControlsCollection.namedItem') |
| 11291 @DocsEditable | 11291 @DocsEditable |
| 11292 Node namedItem(String name) native; | 11292 Node namedItem(String name) native; |
| 11293 } | 11293 } |
| 11294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11295 // for details. All rights reserved. Use of this source code is governed by a | 11295 // for details. All rights reserved. Use of this source code is governed by a |
| 11296 // BSD-style license that can be found in the LICENSE file. | 11296 // BSD-style license that can be found in the LICENSE file. |
| 11297 | 11297 |
| 11298 | 11298 |
| (...skipping 8603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19902 | 19902 |
| 19903 bool get isEmpty => $dom_key(0) == null; | 19903 bool get isEmpty => $dom_key(0) == null; |
| 19904 | 19904 |
| 19905 bool get isNotEmpty => !isEmpty; | 19905 bool get isNotEmpty => !isEmpty; |
| 19906 | 19906 |
| 19907 @JSName('length') | 19907 @JSName('length') |
| 19908 @DomName('Storage.length') | 19908 @DomName('Storage.length') |
| 19909 @DocsEditable | 19909 @DocsEditable |
| 19910 final int $dom_length; | 19910 final int $dom_length; |
| 19911 | 19911 |
| 19912 @JSName('None') | 19912 @DomName('Storage.__getter__') |
| 19913 @DomName('Storage') | 19913 @DocsEditable |
| 19914 @Unstable | 19914 @Experimental // untriaged |
| 19915 String anonymousIndexedGetter(index_OR_name) native; | 19915 String __getter__(index_OR_name) native; |
| 19916 | 19916 |
| 19917 @JSName('clear') | 19917 @JSName('clear') |
| 19918 @DomName('Storage.clear') | 19918 @DomName('Storage.clear') |
| 19919 @DocsEditable | 19919 @DocsEditable |
| 19920 void $dom_clear() native; | 19920 void $dom_clear() native; |
| 19921 | 19921 |
| 19922 @JSName('getItem') | 19922 @JSName('getItem') |
| 19923 @DomName('Storage.getItem') | 19923 @DomName('Storage.getItem') |
| 19924 @DocsEditable | 19924 @DocsEditable |
| 19925 String $dom_getItem(String key) native; | 19925 String $dom_getItem(String key) native; |
| (...skipping 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22897 final StorageInfo storageInfo; | 22897 final StorageInfo storageInfo; |
| 22898 | 22898 |
| 22899 WindowBase get window => _convertNativeToDart_Window(this._get_window); | 22899 WindowBase get window => _convertNativeToDart_Window(this._get_window); |
| 22900 @JSName('window') | 22900 @JSName('window') |
| 22901 @DomName('Window.window') | 22901 @DomName('Window.window') |
| 22902 @DocsEditable | 22902 @DocsEditable |
| 22903 @Creates('Window|=Object') | 22903 @Creates('Window|=Object') |
| 22904 @Returns('Window|=Object') | 22904 @Returns('Window|=Object') |
| 22905 final dynamic _get_window; | 22905 final dynamic _get_window; |
| 22906 | 22906 |
| 22907 @DomName('Window') | 22907 @DomName('Window.__getter__') |
| 22908 @DocsEditable |
| 22909 @Experimental // untriaged |
| 22908 @Creates('Window|=Object') | 22910 @Creates('Window|=Object') |
| 22909 @Returns('Window|=Object') | 22911 @Returns('Window|=Object') |
| 22910 WindowBase anonymousIndexedGetter(int index) { | 22912 WindowBase __getter__(int index) { |
| 22911 return _convertNativeToDart_Window(_anonymousIndexedGetter_1(index)); | 22913 return _convertNativeToDart_Window(___getter___1(index)); |
| 22912 } | 22914 } |
| 22913 @JSName('None') | 22915 @JSName('__getter__') |
| 22914 @DomName('Window') | 22916 @DomName('Window.__getter__') |
| 22917 @DocsEditable |
| 22918 @Experimental // untriaged |
| 22915 @Creates('Window|=Object') | 22919 @Creates('Window|=Object') |
| 22916 @Returns('Window|=Object') | 22920 @Returns('Window|=Object') |
| 22917 _anonymousIndexedGetter_1(index) native; | 22921 ___getter___1(index) native; |
| 22918 | 22922 |
| 22919 @JSName('addEventListener') | 22923 @JSName('addEventListener') |
| 22920 @DomName('Window.addEventListener') | 22924 @DomName('Window.addEventListener') |
| 22921 @DocsEditable | 22925 @DocsEditable |
| 22922 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 22926 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 22923 | 22927 |
| 22924 @DomName('Window.alert') | 22928 @DomName('Window.alert') |
| 22925 @DocsEditable | 22929 @DocsEditable |
| 22926 void alert(String message) native; | 22930 void alert(String message) native; |
| 22927 | 22931 |
| (...skipping 6430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29358 _position = nextPosition; | 29362 _position = nextPosition; |
| 29359 return true; | 29363 return true; |
| 29360 } | 29364 } |
| 29361 _current = null; | 29365 _current = null; |
| 29362 _position = _array.length; | 29366 _position = _array.length; |
| 29363 return false; | 29367 return false; |
| 29364 } | 29368 } |
| 29365 | 29369 |
| 29366 T get current => _current; | 29370 T get current => _current; |
| 29367 } | 29371 } |
| OLD | NEW |