| 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'; | 6 import 'dart:_collection-dev'; |
| 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 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2097 String cssText; | 2097 String cssText; |
| 2098 | 2098 |
| 2099 @DomName('CSSStyleDeclaration.length') | 2099 @DomName('CSSStyleDeclaration.length') |
| 2100 @DocsEditable | 2100 @DocsEditable |
| 2101 final int length; | 2101 final int length; |
| 2102 | 2102 |
| 2103 @DomName('CSSStyleDeclaration.parentRule') | 2103 @DomName('CSSStyleDeclaration.parentRule') |
| 2104 @DocsEditable | 2104 @DocsEditable |
| 2105 final CssRule parentRule; | 2105 final CssRule parentRule; |
| 2106 | 2106 |
| 2107 @JSName('getPropertyValue') | |
| 2108 @DomName('CSSStyleDeclaration.getPropertyValue') | |
| 2109 @DocsEditable | |
| 2110 String _getPropertyValue(String propertyName) native; | |
| 2111 | |
| 2112 @DomName('CSSStyleDeclaration.getPropertyPriority') | 2107 @DomName('CSSStyleDeclaration.getPropertyPriority') |
| 2113 @DocsEditable | 2108 @DocsEditable |
| 2114 String getPropertyPriority(String propertyName) native; | 2109 String getPropertyPriority(String propertyName) native; |
| 2115 | 2110 |
| 2116 @DomName('CSSStyleDeclaration.getPropertyShorthand') | 2111 @DomName('CSSStyleDeclaration.getPropertyShorthand') |
| 2117 @DocsEditable | 2112 @DocsEditable |
| 2118 String getPropertyShorthand(String propertyName) native; | 2113 String getPropertyShorthand(String propertyName) native; |
| 2119 | 2114 |
| 2115 @JSName('getPropertyValue') |
| 2116 @DomName('CSSStyleDeclaration.getPropertyValue') |
| 2117 @DocsEditable |
| 2118 String _getPropertyValue(String propertyName) native; |
| 2119 |
| 2120 @DomName('CSSStyleDeclaration.isPropertyImplicit') | 2120 @DomName('CSSStyleDeclaration.isPropertyImplicit') |
| 2121 @DocsEditable | 2121 @DocsEditable |
| 2122 bool isPropertyImplicit(String propertyName) native; | 2122 bool isPropertyImplicit(String propertyName) native; |
| 2123 | 2123 |
| 2124 @DomName('CSSStyleDeclaration.item') | 2124 @DomName('CSSStyleDeclaration.item') |
| 2125 @DocsEditable | 2125 @DocsEditable |
| 2126 String item(int index) native; | 2126 String item(int index) native; |
| 2127 | 2127 |
| 2128 @DomName('CSSStyleDeclaration.removeProperty') | 2128 @DomName('CSSStyleDeclaration.removeProperty') |
| 2129 @DocsEditable | 2129 @DocsEditable |
| (...skipping 11657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13787 // BSD-style license that can be found in the LICENSE file. | 13787 // BSD-style license that can be found in the LICENSE file. |
| 13788 | 13788 |
| 13789 | 13789 |
| 13790 @DomName('MutationObserver') | 13790 @DomName('MutationObserver') |
| 13791 @SupportedBrowser(SupportedBrowser.CHROME) | 13791 @SupportedBrowser(SupportedBrowser.CHROME) |
| 13792 @SupportedBrowser(SupportedBrowser.FIREFOX) | 13792 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 13793 @SupportedBrowser(SupportedBrowser.SAFARI) | 13793 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 13794 @Experimental | 13794 @Experimental |
| 13795 class MutationObserver native "MutationObserver,WebKitMutationObserver" { | 13795 class MutationObserver native "MutationObserver,WebKitMutationObserver" { |
| 13796 | 13796 |
| 13797 @DomName('MutationObserver.disconnect') |
| 13798 @DocsEditable |
| 13799 void disconnect() native; |
| 13800 |
| 13797 @DomName('MutationObserver.observe') | 13801 @DomName('MutationObserver.observe') |
| 13798 @DocsEditable | 13802 @DocsEditable |
| 13799 void _observe(Node target, Map options) { | 13803 void _observe(Node target, Map options) { |
| 13800 var options_1 = convertDartToNative_Dictionary(options); | 13804 var options_1 = convertDartToNative_Dictionary(options); |
| 13801 __observe_1(target, options_1); | 13805 __observe_1(target, options_1); |
| 13802 return; | 13806 return; |
| 13803 } | 13807 } |
| 13804 @JSName('observe') | 13808 @JSName('observe') |
| 13805 @DomName('MutationObserver.observe') | 13809 @DomName('MutationObserver.observe') |
| 13806 @DocsEditable | 13810 @DocsEditable |
| 13807 void __observe_1(Node target, options) native; | 13811 void __observe_1(Node target, options) native; |
| 13808 | 13812 |
| 13809 @DomName('MutationObserver.disconnect') | |
| 13810 @DocsEditable | |
| 13811 void disconnect() native; | |
| 13812 | |
| 13813 @DomName('MutationObserver.takeRecords') | 13813 @DomName('MutationObserver.takeRecords') |
| 13814 @DocsEditable | 13814 @DocsEditable |
| 13815 List<MutationRecord> takeRecords() native; | 13815 List<MutationRecord> takeRecords() native; |
| 13816 | 13816 |
| 13817 /** | 13817 /** |
| 13818 * Checks to see if the mutation observer API is supported on the current | 13818 * Checks to see if the mutation observer API is supported on the current |
| 13819 * platform. | 13819 * platform. |
| 13820 */ | 13820 */ |
| 13821 static bool get supported { | 13821 static bool get supported { |
| 13822 return JS('bool', | 13822 return JS('bool', |
| (...skipping 11754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25577 _position = nextPosition; | 25577 _position = nextPosition; |
| 25578 return true; | 25578 return true; |
| 25579 } | 25579 } |
| 25580 _current = null; | 25580 _current = null; |
| 25581 _position = _array.length; | 25581 _position = _array.length; |
| 25582 return false; | 25582 return false; |
| 25583 } | 25583 } |
| 25584 | 25584 |
| 25585 T get current => _current; | 25585 T get current => _current; |
| 25586 } | 25586 } |
| OLD | NEW |