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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 if (invocation.isGetter) { | 108 if (invocation.isGetter) { |
109 return _values[key]; | 109 return _values[key]; |
110 } else if (invocation.isSetter && key.endsWith('=')) { | 110 } else if (invocation.isSetter && key.endsWith('=')) { |
111 key = key.substring(0, key.length-1); | 111 key = key.substring(0, key.length-1); |
112 _values[key] = invocation.positionalArguments[0]; | 112 _values[key] = invocation.positionalArguments[0]; |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 Map get toMap => _values; | 116 Map get toMap => _values; |
117 | 117 |
118 _ReturnedDictionary(Map value): _values = value ? value != null : {}; | 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) => new _ReturnedDictionary(v
alues); |
124 | 124 |
125 // Conversion function place holder (currently not used in dart2js or dartium). | 125 // Conversion function place holder (currently not used in dart2js or dartium). |
126 List convertDartToNative_StringArray(List<String> input) => input; | 126 List convertDartToNative_StringArray(List<String> input) => input; |
127 | 127 |
128 // Converts a Dart list into a JsArray. For the Dartium version only. | 128 // Converts a Dart list into a JsArray. For the Dartium version only. |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 {'type': dartClass, 'extends': extendTag != null ? extendTag : "" }; | 402 {'type': dartClass, 'extends': extendTag != null ? extendTag : "" }; |
403 } | 403 } |
404 | 404 |
405 Type getCustomElementType(object) { | 405 Type getCustomElementType(object) { |
406 var entry = getCustomElementEntry(object); | 406 var entry = getCustomElementEntry(object); |
407 if (entry != null) { | 407 if (entry != null) { |
408 return entry['type']; | 408 return entry['type']; |
409 } | 409 } |
410 return null; | 410 return null; |
411 } | 411 } |
OLD | NEW |