| 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 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2534 void set cssText(String value) native "CSSStyleDeclaration_cssText_Setter"; | 2534 void set cssText(String value) native "CSSStyleDeclaration_cssText_Setter"; |
| 2535 | 2535 |
| 2536 @DomName('CSSStyleDeclaration.length') | 2536 @DomName('CSSStyleDeclaration.length') |
| 2537 @DocsEditable | 2537 @DocsEditable |
| 2538 int get length native "CSSStyleDeclaration_length_Getter"; | 2538 int get length native "CSSStyleDeclaration_length_Getter"; |
| 2539 | 2539 |
| 2540 @DomName('CSSStyleDeclaration.parentRule') | 2540 @DomName('CSSStyleDeclaration.parentRule') |
| 2541 @DocsEditable | 2541 @DocsEditable |
| 2542 CssRule get parentRule native "CSSStyleDeclaration_parentRule_Getter"; | 2542 CssRule get parentRule native "CSSStyleDeclaration_parentRule_Getter"; |
| 2543 | 2543 |
| 2544 @DomName('CSSStyleDeclaration._getPropertyValue') | |
| 2545 @DocsEditable | |
| 2546 String _getPropertyValue(String propertyName) native "CSSStyleDeclaration__get
PropertyValue_Callback"; | |
| 2547 | |
| 2548 @DomName('CSSStyleDeclaration.getPropertyPriority') | 2544 @DomName('CSSStyleDeclaration.getPropertyPriority') |
| 2549 @DocsEditable | 2545 @DocsEditable |
| 2550 String getPropertyPriority(String propertyName) native "CSSStyleDeclaration_ge
tPropertyPriority_Callback"; | 2546 String getPropertyPriority(String propertyName) native "CSSStyleDeclaration_ge
tPropertyPriority_Callback"; |
| 2551 | 2547 |
| 2552 @DomName('CSSStyleDeclaration.getPropertyShorthand') | 2548 @DomName('CSSStyleDeclaration.getPropertyShorthand') |
| 2553 @DocsEditable | 2549 @DocsEditable |
| 2554 String getPropertyShorthand(String propertyName) native "CSSStyleDeclaration_g
etPropertyShorthand_Callback"; | 2550 String getPropertyShorthand(String propertyName) native "CSSStyleDeclaration_g
etPropertyShorthand_Callback"; |
| 2555 | 2551 |
| 2552 @DomName('CSSStyleDeclaration.getPropertyValue') |
| 2553 @DocsEditable |
| 2554 String _getPropertyValue(String propertyName) native "CSSStyleDeclaration_getP
ropertyValue_Callback"; |
| 2555 |
| 2556 @DomName('CSSStyleDeclaration.isPropertyImplicit') | 2556 @DomName('CSSStyleDeclaration.isPropertyImplicit') |
| 2557 @DocsEditable | 2557 @DocsEditable |
| 2558 bool isPropertyImplicit(String propertyName) native "CSSStyleDeclaration_isPro
pertyImplicit_Callback"; | 2558 bool isPropertyImplicit(String propertyName) native "CSSStyleDeclaration_isPro
pertyImplicit_Callback"; |
| 2559 | 2559 |
| 2560 @DomName('CSSStyleDeclaration.item') | 2560 @DomName('CSSStyleDeclaration.item') |
| 2561 @DocsEditable | 2561 @DocsEditable |
| 2562 String item(int index) native "CSSStyleDeclaration_item_Callback"; | 2562 String item(int index) native "CSSStyleDeclaration_item_Callback"; |
| 2563 | 2563 |
| 2564 @DomName('CSSStyleDeclaration.removeProperty') | 2564 @DomName('CSSStyleDeclaration.removeProperty') |
| 2565 @DocsEditable | 2565 @DocsEditable |
| 2566 String removeProperty(String propertyName) native "CSSStyleDeclaration_removeP
roperty_Callback"; | 2566 String removeProperty(String propertyName) native "CSSStyleDeclaration_removeP
roperty_Callback"; |
| 2567 | 2567 |
| 2568 @DomName('CSSStyleDeclaration.setProperty') | 2568 @DomName('CSSStyleDeclaration.setProperty') |
| 2569 @DocsEditable | 2569 @DocsEditable |
| 2570 void setProperty(String propertyName, String value, [String priority]) native
"CSSStyleDeclaration_setProperty_Callback"; | 2570 void setProperty(String propertyName, String value, String priority) native "C
SSStyleDeclaration_setProperty_Callback"; |
| 2571 | 2571 |
| 2572 | 2572 |
| 2573 String getPropertyValue(String propertyName) { | 2573 String getPropertyValue(String propertyName) { |
| 2574 var propValue = _getPropertyValue(propertyName); | 2574 var propValue = _getPropertyValue(propertyName); |
| 2575 return propValue != null ? propValue : ''; | 2575 return propValue != null ? propValue : ''; |
| 2576 } | 2576 } |
| 2577 | 2577 |
| 2578 /** | 2578 /** |
| 2579 * Checks to see if CSS Transitions are supported. | 2579 * Checks to see if CSS Transitions are supported. |
| 2580 */ | 2580 */ |
| (...skipping 12188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14769 @SupportedBrowser(SupportedBrowser.FIREFOX) | 14769 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 14770 @SupportedBrowser(SupportedBrowser.SAFARI) | 14770 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14771 @Experimental | 14771 @Experimental |
| 14772 class MutationObserver extends NativeFieldWrapperClass1 { | 14772 class MutationObserver extends NativeFieldWrapperClass1 { |
| 14773 MutationObserver.internal(); | 14773 MutationObserver.internal(); |
| 14774 factory MutationObserver(MutationCallback callback) => _create(callback); | 14774 factory MutationObserver(MutationCallback callback) => _create(callback); |
| 14775 | 14775 |
| 14776 @DocsEditable | 14776 @DocsEditable |
| 14777 static MutationObserver _create(callback) native "MutationObserver_constructor
Callback"; | 14777 static MutationObserver _create(callback) native "MutationObserver_constructor
Callback"; |
| 14778 | 14778 |
| 14779 @DomName('MutationObserver._observe') | |
| 14780 @DocsEditable | |
| 14781 void _observe(Node target, Map options) native "MutationObserver__observe_Call
back"; | |
| 14782 | |
| 14783 @DomName('MutationObserver.disconnect') | 14779 @DomName('MutationObserver.disconnect') |
| 14784 @DocsEditable | 14780 @DocsEditable |
| 14785 void disconnect() native "MutationObserver_disconnect_Callback"; | 14781 void disconnect() native "MutationObserver_disconnect_Callback"; |
| 14786 | 14782 |
| 14783 @DomName('MutationObserver.observe') |
| 14784 @DocsEditable |
| 14785 void _observe(Node target, Map options) native "MutationObserver_observe_Callb
ack"; |
| 14786 |
| 14787 @DomName('MutationObserver.takeRecords') | 14787 @DomName('MutationObserver.takeRecords') |
| 14788 @DocsEditable | 14788 @DocsEditable |
| 14789 List<MutationRecord> takeRecords() native "MutationObserver_takeRecords_Callba
ck"; | 14789 List<MutationRecord> takeRecords() native "MutationObserver_takeRecords_Callba
ck"; |
| 14790 | 14790 |
| 14791 /** | 14791 /** |
| 14792 * Checks to see if the mutation observer API is supported on the current | 14792 * Checks to see if the mutation observer API is supported on the current |
| 14793 * platform. | 14793 * platform. |
| 14794 */ | 14794 */ |
| 14795 static bool get supported { | 14795 static bool get supported { |
| 14796 return true; | 14796 return true; |
| (...skipping 12208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27005 } | 27005 } |
| 27006 | 27006 |
| 27007 T get current => _current; | 27007 T get current => _current; |
| 27008 } | 27008 } |
| 27009 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 27009 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 27010 // for details. All rights reserved. Use of this source code is governed by a | 27010 // for details. All rights reserved. Use of this source code is governed by a |
| 27011 // BSD-style license that can be found in the LICENSE file. | 27011 // BSD-style license that can be found in the LICENSE file. |
| 27012 | 27012 |
| 27013 | 27013 |
| 27014 _makeSendPortFuture(spawnRequest) { | 27014 _makeSendPortFuture(spawnRequest) { |
| 27015 final completer = new Completer<SendPort>(); | 27015 final completer = new Completer<SendPort>.sync(); |
| 27016 final port = new ReceivePort(); | 27016 final port = new ReceivePort(); |
| 27017 port.receive((result, _) { | 27017 port.receive((result, _) { |
| 27018 completer.complete(result); | 27018 completer.complete(result); |
| 27019 port.close(); | 27019 port.close(); |
| 27020 }); | 27020 }); |
| 27021 // TODO: SendPort.hashCode is ugly way to access port id. | 27021 // TODO: SendPort.hashCode is ugly way to access port id. |
| 27022 spawnRequest(port.toSendPort().hashCode); | 27022 spawnRequest(port.toSendPort().hashCode); |
| 27023 return completer.future; | 27023 return completer.future; |
| 27024 } | 27024 } |
| 27025 | 27025 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27302 } | 27302 } |
| 27303 | 27303 |
| 27304 _send(msg) { | 27304 _send(msg) { |
| 27305 _sendToHelperIsolate(msg, _sendPort); | 27305 _sendToHelperIsolate(msg, _sendPort); |
| 27306 } | 27306 } |
| 27307 } | 27307 } |
| 27308 | 27308 |
| 27309 get _pureIsolateTimerFactoryClosure => | 27309 get _pureIsolateTimerFactoryClosure => |
| 27310 ((int milliSeconds, void callback(Timer time), bool repeating) => | 27310 ((int milliSeconds, void callback(Timer time), bool repeating) => |
| 27311 new _PureIsolateTimer(milliSeconds, callback, repeating)); | 27311 new _PureIsolateTimer(milliSeconds, callback, repeating)); |
| OLD | NEW |