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

Unified Diff: client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart

Issue 8574040: Support DOMString[] and regenerate from IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Window.postMessage Created 9 years, 1 month 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: client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart b/client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart
index bc1d52ef1450e0e007f2fc9b20711308f8dc6efd..2a52e1231c936717e35aa581ac1846f7355f8d23 100644
--- a/client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_XMLHttpRequestWrappingImplementation.dart
@@ -119,26 +119,36 @@ class _XMLHttpRequestWrappingImplementation extends DOMWrapperBase implements XM
}
static String _getResponseHeader(receiver, header) native;
- void open(String method, String url, bool async, [String user = null, String password = null]) {
- if (user === null) {
- if (password === null) {
- _open(this, method, url, async);
- return;
+ void open(String method, String url, [bool async = null, String user = null, String password = null]) {
+ if (async === null) {
+ if (user === null) {
+ if (password === null) {
+ _open(this, method, url);
+ return;
+ }
}
} else {
- if (password === null) {
- _open_2(this, method, url, async, user);
- return;
+ if (user === null) {
+ if (password === null) {
+ _open_2(this, method, url, async);
+ return;
+ }
} else {
- _open_3(this, method, url, async, user, password);
- return;
+ if (password === null) {
+ _open_3(this, method, url, async, user);
+ return;
+ } else {
+ _open_4(this, method, url, async, user, password);
+ return;
+ }
}
}
throw "Incorrect number or type of arguments";
}
- static void _open(receiver, method, url, async) native;
- static void _open_2(receiver, method, url, async, user) native;
- static void _open_3(receiver, method, url, async, user, password) native;
+ static void _open(receiver, method, url) native;
+ static void _open_2(receiver, method, url, async) native;
+ static void _open_3(receiver, method, url, async, user) native;
+ static void _open_4(receiver, method, url, async, user, password) native;
void overrideMimeType(String override) {
_overrideMimeType(this, override);
@@ -163,13 +173,28 @@ class _XMLHttpRequestWrappingImplementation extends DOMWrapperBase implements XM
_send(this);
return;
} else {
- if (data is String) {
+ if (data is ArrayBuffer) {
_send_2(this, data);
return;
} else {
- if (data is Document) {
+ if (data is Blob) {
_send_3(this, data);
return;
+ } else {
+ if (data is Document) {
+ _send_4(this, data);
+ return;
+ } else {
+ if (data is String) {
+ _send_5(this, data);
+ return;
+ } else {
+ if (data is DOMFormData) {
+ _send_6(this, data);
+ return;
+ }
+ }
+ }
}
}
}
@@ -178,6 +203,9 @@ class _XMLHttpRequestWrappingImplementation extends DOMWrapperBase implements XM
static void _send(receiver) native;
static void _send_2(receiver, data) native;
static void _send_3(receiver, data) native;
+ static void _send_4(receiver, data) native;
+ static void _send_5(receiver, data) native;
+ static void _send_6(receiver, data) native;
void setRequestHeader(String header, String value) {
_setRequestHeader(this, header, value);
« no previous file with comments | « client/dom/generated/src/wrapping/_WheelEventWrappingImplementation.dart ('k') | client/dom/generated/wrapping_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698