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

Unified Diff: client/html/src/dartium_FactoryProviders.dart

Issue 9464002: Implement automatically generated constructors for frog and dartium dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address code review comments Created 8 years, 9 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 | « client/html/html_frog.dart ('k') | client/html/src/frog_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/dartium_FactoryProviders.dart
diff --git a/client/html/src/dartium_FactoryProviders.dart b/client/html/src/dartium_FactoryProviders.dart
index 599ec4616def08eac96391c0ea848eb6ad35e953..f2e007fc80e2bcba86e3d8631fd423c000857bc4 100644
--- a/client/html/src/dartium_FactoryProviders.dart
+++ b/client/html/src/dartium_FactoryProviders.dart
@@ -6,14 +6,6 @@ class _AudioContextFactoryProvider {
factory AudioContext() => _wrap(new dom.AudioContext());
}
-class _DOMParserFactoryProvider {
- factory DOMParser() => _wrap(new dom.DOMParser());
-}
-
-class _FileReaderFactoryProvider {
- factory FileReader() => _wrap(new dom.FileReader());
-}
-
class _TypedArrayFactoryProvider {
factory Float32Array(int length) => _F32(length);
@@ -65,44 +57,7 @@ class _TypedArrayFactoryProvider {
static ensureNative(List list) => list; // TODO: make sure.
}
-class _CSSMatrixFactoryProvider {
-
- factory CSSMatrix([String spec = '']) =>
- _wrap(new dom.WebKitCSSMatrix(spec));
-}
-
class _PointFactoryProvider {
factory Point(num x, num y) => _wrap(new dom.WebKitPoint(x, y));
}
-
-class _WebSocketFactoryProvider {
-
- factory WebSocket(String url) => _wrap(new dom.WebSocket(url));
-}
-
-class _XMLHttpRequestFactoryProvider {
- factory XMLHttpRequest() => _wrap(new dom.XMLHttpRequest());
-
- factory XMLHttpRequest.getTEMPNAME(String url,
- onSuccess(XMLHttpRequest request)) {
- final request = new XMLHttpRequest();
- request.open('GET', url, true);
-
- // TODO(terry): Validate after client login added if necessary to forward
- // cookies to server.
- request.withCredentials = true;
-
- // Status 0 is for local XHR request.
- request.on.readyStateChange.add((e) {
- if (request.readyState == XMLHttpRequest.DONE &&
- (request.status == 200 || request.status == 0)) {
- onSuccess(request);
- }
- });
-
- request.send();
-
- return request;
- }
-}
« no previous file with comments | « client/html/html_frog.dart ('k') | client/html/src/frog_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698