Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Unified Diff: tools/dom/templates/html/dart2js/impl_RTCIceCandidate.darttemplate

Issue 12217089: Allow non-primitive-value dictionaries to be passed to constructors for html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}

Powered by Google App Engine
This is Rietveld 408576698