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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 666543004: Suppress new Request type in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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:
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 9a28764cdf159a8f8143b7497484c17dbf73a702..203b7ea54d5462022ca96ed532618c3d3dd75280 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -13916,7 +13916,7 @@ class FetchEvent extends Event {
@DomName('FetchEvent.request')
@DocsEditable()
@Experimental() // untriaged
- final Request request;
+ final _Request request;
@DomName('FetchEvent.respondWith')
@DocsEditable()
@@ -23981,66 +23981,6 @@ class RelatedEvent extends Event {
// 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.
-
-@DocsEditable()
-@DomName('Request')
-@Experimental() // untriaged
-@Native("Request")
-class Request extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory Request._() { throw new UnsupportedError("Not supported"); }
-
- @DomName('Request.Request')
- @DocsEditable()
- factory Request(input, [Map requestInitDict]) {
- if ((input is String || input == null) && requestInitDict == null) {
- return Request._create_1(input);
- }
- if ((requestInitDict is Map || requestInitDict == null) && (input is String || input == null)) {
- return Request._create_2(input, requestInitDict);
- }
- if ((input is Request || input == null) && requestInitDict == null) {
- return Request._create_3(input);
- }
- if ((requestInitDict is Map || requestInitDict == null) && (input is Request || input == null)) {
- return Request._create_4(input, requestInitDict);
- }
- throw new ArgumentError("Incorrect number or type of arguments");
- }
- static Request _create_1(input) => JS('Request', 'new Request(#)', input);
- static Request _create_2(input, requestInitDict) => JS('Request', 'new Request(#,#)', input, requestInitDict);
- static Request _create_3(input) => JS('Request', 'new Request(#)', input);
- static Request _create_4(input, requestInitDict) => JS('Request', 'new Request(#,#)', input, requestInitDict);
-
- @DomName('Request.credentials')
- @DocsEditable()
- @Experimental() // untriaged
- final String credentials;
-
- @DomName('Request.headers')
- @DocsEditable()
- @Experimental() // untriaged
- final Headers headers;
-
- @DomName('Request.mode')
- @DocsEditable()
- @Experimental() // untriaged
- final String mode;
-
- @DomName('Request.referrer')
- @DocsEditable()
- @Experimental() // untriaged
- final String referrer;
-
- @DomName('Request.url')
- @DocsEditable()
- @Experimental() // untriaged
- final String url;
-}
-// 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.
-
// WARNING: Do not edit - generated code.
@@ -33369,6 +33309,66 @@ abstract class _Rect extends Interceptor {
@DocsEditable()
+@DomName('Request')
+@Experimental() // untriaged
+@Native("Request")
+class _Request extends Interceptor {
+ // To suppress missing implicit constructor warnings.
+ factory _Request._() { throw new UnsupportedError("Not supported"); }
+
+ @DomName('Request.Request')
+ @DocsEditable()
+ factory _Request(input, [Map requestInitDict]) {
+ if ((input is String || input == null) && requestInitDict == null) {
+ return _Request._create_1(input);
+ }
+ if ((requestInitDict is Map || requestInitDict == null) && (input is String || input == null)) {
+ return _Request._create_2(input, requestInitDict);
+ }
+ if ((input is _Request || input == null) && requestInitDict == null) {
+ return _Request._create_3(input);
+ }
+ if ((requestInitDict is Map || requestInitDict == null) && (input is _Request || input == null)) {
+ return _Request._create_4(input, requestInitDict);
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+ static _Request _create_1(input) => JS('_Request', 'new Request(#)', input);
+ static _Request _create_2(input, requestInitDict) => JS('_Request', 'new Request(#,#)', input, requestInitDict);
+ static _Request _create_3(input) => JS('_Request', 'new Request(#)', input);
+ static _Request _create_4(input, requestInitDict) => JS('_Request', 'new Request(#,#)', input, requestInitDict);
+
+ @DomName('Request.credentials')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String credentials;
+
+ @DomName('Request.headers')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final Headers headers;
+
+ @DomName('Request.mode')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String mode;
+
+ @DomName('Request.referrer')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String referrer;
+
+ @DomName('Request.url')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final String url;
+}
+// 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.
+
+
+@DocsEditable()
@DomName('Response')
@Experimental() // untriaged
@Native("Response")
« 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