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

Unified Diff: tools/dom/templates/html/impl/impl_Blob.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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/impl/impl_Blob.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Blob.darttemplate b/tools/dom/templates/html/impl/impl_Blob.darttemplate
index 8cf70b96e636b52cda43c3981a4a26ae6018ea49..856b557945c79f31b40575afd8dc11084fa0eade 100644
--- a/tools/dom/templates/html/impl/impl_Blob.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Blob.darttemplate
@@ -6,7 +6,6 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
-$if DART2JS
factory Blob(List blobParts, [String type, String endings]) {
// TODO: validate that blobParts is a JS Array and convert if not.
// TODO: any coercions on the elements of blobParts, e.g. coerce a typed
@@ -25,22 +24,4 @@ $if DART2JS
static _create_bag() => JS('var', '{}');
static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }
-$else
- $if JSINTEROP
- factory Blob(List blobParts, [String type, String endings]) {
- // TODO: any coercions on the elements of blobParts, e.g. coerce a typed
- // array to ArrayBuffer if it is a total view.
-
- var parts = convertDartToNative_List(blobParts);
- if (type == null && endings == null) {
- return _blink.BlinkBlob.instance.constructorCallback_1_(parts);
- }
- var bag = {};
- if (type != null) bag['type'] = type;
- if (endings != null) bag['endings'] = endings;
- return _blink.BlinkBlob.instance.constructorCallback_2_(parts,
- convertDartToNative_Dictionary(bag));
- }
- $endif
-$endif
}

Powered by Google App Engine
This is Rietveld 408576698