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

Unified Diff: sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate b/sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate
deleted file mode 100644
index 620d195a6000aa8739d3ffc0584990385715501f..0000000000000000000000000000000000000000
--- a/sdk/lib/html/templates/html/dart2js/factoryprovider_Blob.darttemplate
+++ /dev/null
@@ -1,18 +0,0 @@
- static Blob _create([List blobParts = null, 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
- // array to ArrayBuffer if it is a total view.
- if (type == null && endings == null) {
- return _create_1(blobParts);
- }
- var bag = _create_bag();
- if (type != null) _bag_set(bag, 'type', type);
- if (endings != null) _bag_set(bag, 'endings', endings);
- return _create_2(blobParts, bag);
- }
-
- static _create_1(parts) => JS('Blob', 'new Blob(#)', parts);
- static _create_2(parts, bag) => JS('Blob', 'new Blob(#, #)', parts, bag);
-
- static _create_bag() => JS('var', '{}');
- static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }

Powered by Google App Engine
This is Rietveld 408576698