Index: tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_ImageData.darttemplate b/tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate |
similarity index 58% |
copy from tools/dom/templates/html/impl/impl_ImageData.darttemplate |
copy to tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate |
index c7e0977bb537c18f02357fedc6c19d2581ee1eb8..d4635abc4a66e2d36dfa179e2100c64b282fb857 100644 |
--- a/tools/dom/templates/html/impl/impl_ImageData.darttemplate |
+++ b/tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate |
@@ -3,18 +3,12 @@ |
// BSD-style license that can be found in the LICENSE file. |
part of $LIBRARYNAME; |
-$ANNOTATIONS |
-class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
-$if DARTIUM |
- List<int> __data; |
- List<int> get data { |
- if (__data == null) { |
- __data = _data; |
- } |
- return __data; |
+/// @domName $DOMNAME; @docsEditable true$ANNOTATIONS |
blois
2013/02/11 17:24:33
Only $ANNOTATIONS, no comments.
|
+class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
+ factory $CLASSNAME(Map dictionary) { |
+ return JS('RtcIceCandidate', 'new RTCIceCandidate(#)', |
+ convertDartToNative_SerializedScriptValue(dictionary)); |
} |
-$endif |
- |
$!MEMBERS |
} |