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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11719003: Nuke custom factory providers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebaselining Created 7 years, 11 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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 0e2df912336810aa3965a33f763ba2051e57f64d..5cffb207d023a88b180766f8cc4bcbb57b1bd341 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -576,7 +576,7 @@ class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
// BSD-style license that can be found in the LICENSE file.
-/// @domName Blob; @docsEditable true
+/// @domName Blob
class Blob native "*Blob" {
///@docsEditable true
@@ -589,6 +589,16 @@ class Blob native "*Blob" {
}
return Blob._create(blobParts, type, endings);
}
+
+ /// @domName Blob.size; @docsEditable true
+ final int size;
+
+ /// @domName Blob.type; @docsEditable true
+ final String type;
+
+ /// @domName Blob.slice; @docsEditable true
+ Blob slice([int start, int end, String contentType]) native;
+
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
@@ -607,16 +617,8 @@ class Blob native "*Blob" {
static _create_bag() => JS('var', '{}');
static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); }
-
- /// @domName Blob.size; @docsEditable true
- final int size;
-
- /// @domName Blob.type; @docsEditable true
- final String type;
-
- /// @domName Blob.slice; @docsEditable true
- Blob slice([int start, int end, String contentType]) native;
}
+
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -13985,15 +13987,6 @@ class MutationObserver native "*MutationObserver" {
///@docsEditable true
factory MutationObserver(MutationCallback callback) => MutationObserver._create(callback);
- static MutationObserver _create(MutationCallback callback) {
- // Dummy statement to mark types as instantiated.
- JS('MutationObserver|MutationRecord', '0');
-
- return JS('MutationObserver',
- 'new(window.MutationObserver||window.WebKitMutationObserver||'
- 'window.MozMutationObserver)(#)',
- convertDartClosureToJS(callback, 2));
- }
/// @domName MutationObserver.disconnect; @docsEditable true
void disconnect() native;
@@ -14080,6 +14073,16 @@ class MutationObserver native "*MutationObserver" {
// Call native function with no conversions.
@JSName('observe')
void _call(target, options) native;
+
+ static MutationObserver _create(MutationCallback callback) {
+ // Dummy statement to mark types as instantiated.
+ JS('MutationObserver|MutationRecord', '0');
+
+ return JS('MutationObserver',
+ 'new(window.MutationObserver||window.WebKitMutationObserver||'
+ 'window.MozMutationObserver)(#)',
+ convertDartClosureToJS(callback, 2));
+ }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698