| OLD | NEW |
| 1 part of html_common; | 1 part of html_common; |
| 2 | 2 |
| 3 convertDartToNative_PrepareForStructuredClone(value) => | 3 convertDartToNative_PrepareForStructuredClone(value) => |
| 4 new _StructuredCloneDartium().convertDartToNative_PrepareForStructuredClone(
value); | 4 new _StructuredCloneDartium().convertDartToNative_PrepareForStructuredClone(
value); |
| 5 | 5 |
| 6 convertNativeToDart_AcceptStructuredClone(object, {mustCopy: false}) => | 6 convertNativeToDart_AcceptStructuredClone(object, {mustCopy: false}) => |
| 7 new _AcceptStructuredCloneDartium().convertNativeToDart_AcceptStructuredClon
e(object, mustCopy: mustCopy); | 7 new _AcceptStructuredCloneDartium().convertNativeToDart_AcceptStructuredClon
e(object, mustCopy: mustCopy); |
| 8 | 8 |
| 9 class _StructuredCloneDartium extends _StructuredClone { | 9 class _StructuredCloneDartium extends _StructuredClone { |
| 10 newJsMap() => new js.JsObject(js.context["Object"]); | 10 newJsMap() => new js.JsObject(js.context["Object"]); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 Map get toMap => _values; | 116 Map get toMap => _values; |
| 117 | 117 |
| 118 _ReturnedDictionary(Map value): _values = value != null ? value : {}; | 118 _ReturnedDictionary(Map value): _values = value != null ? value : {}; |
| 119 } | 119 } |
| 120 | 120 |
| 121 // Helper function to wrapped a returned dictionary from blink to a Dart looking | 121 // Helper function to wrapped a returned dictionary from blink to a Dart looking |
| 122 // class. | 122 // class. |
| 123 convertNativeDictionaryToDartDictionary(Map values) => new _ReturnedDictionary(v
alues); | 123 convertNativeDictionaryToDartDictionary(Map values) => |
| 124 values != null ? new _ReturnedDictionary(values) : null; |
| 124 | 125 |
| 125 // Conversion function place holder (currently not used in dart2js or dartium). | 126 // Conversion function place holder (currently not used in dart2js or dartium). |
| 126 List convertDartToNative_StringArray(List<String> input) => input; | 127 List convertDartToNative_StringArray(List<String> input) => input; |
| 127 | 128 |
| 128 // Converts a Dart list into a JsArray. For the Dartium version only. | 129 // Converts a Dart list into a JsArray. For the Dartium version only. |
| 129 convertDartToNative_List(List input) => new js.JsArray()..addAll(input); | 130 convertDartToNative_List(List input) => new js.JsArray()..addAll(input); |
| 130 | 131 |
| 131 /// Find the underlying JS object for a dart:html Dart object. | 132 /// Find the underlying JS object for a dart:html Dart object. |
| 132 unwrap_jso(dartClass_instance) => js.unwrap_jso(dartClass_instance); | 133 unwrap_jso(dartClass_instance) => js.unwrap_jso(dartClass_instance); |
| 133 | 134 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 {'type': dartClass, 'extends': extendTag != null ? extendTag : "" }; | 403 {'type': dartClass, 'extends': extendTag != null ? extendTag : "" }; |
| 403 } | 404 } |
| 404 | 405 |
| 405 Type getCustomElementType(object) { | 406 Type getCustomElementType(object) { |
| 406 var entry = getCustomElementEntry(object); | 407 var entry = getCustomElementEntry(object); |
| 407 if (entry != null) { | 408 if (entry != null) { |
| 408 return entry['type']; | 409 return entry['type']; |
| 409 } | 410 } |
| 410 return null; | 411 return null; |
| 411 } | 412 } |
| OLD | NEW |