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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 12230033: Adding supported checks and flags to FormData (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index b9de515c68fe68ef3c44062308682311f9a21d6a..bf18223f6c703ba39afbd0f3add61b21ea21688e 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -12357,6 +12357,10 @@ class Float64Array extends ArrayBufferView implements List<num> {
@DocsEditable
@DomName('FormData')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.FIREFOX)
+@SupportedBrowser(SupportedBrowser.IE, '10')
+@SupportedBrowser(SupportedBrowser.SAFARI)
class FormData extends NativeFieldWrapperClass1 {
FormData.internal();
factory FormData([FormElement form]) => _create(form);
@@ -12364,6 +12368,9 @@ class FormData extends NativeFieldWrapperClass1 {
@DocsEditable
static FormData _create(form) native "DOMFormData_constructorCallback";
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => true;
+
@DomName('DOMFormData.append')
@DocsEditable
void append(String name, value, [String filename]) native "DOMFormData_append_Callback";
@@ -13461,6 +13468,20 @@ class HttpRequest extends EventTarget {
return completer.future;
}
+ /**
+ * Checks to see if the Progress event is supported on the current platform.
+ */
+ static bool get supportsProgressEvent {
+ return true;
+ }
+
+ /**
+ * Checks to see if the LoadEnd event is supported on the current platform.
+ */
+ static bool get supportsLoadEndEvent {
+ return true;
+ }
+
HttpRequest.internal() : super.internal();
@DomName('XMLHttpRequest.abortEvent')
@@ -13569,6 +13590,10 @@ class HttpRequest extends EventTarget {
*/
@DomName('XMLHttpRequest.response')
@DocsEditable
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.FIREFOX)
+ @SupportedBrowser(SupportedBrowser.IE, '10')
+ @SupportedBrowser(SupportedBrowser.SAFARI)
Object get response native "XMLHttpRequest_response_Getter";
/**
@@ -13778,6 +13803,10 @@ class HttpRequest extends EventTarget {
*/
@DomName('XMLHttpRequest.onloadend')
@DocsEditable
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.FIREFOX)
+ @SupportedBrowser(SupportedBrowser.IE, '10')
+ @SupportedBrowser(SupportedBrowser.SAFARI)
Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this);
/**
@@ -13797,6 +13826,10 @@ class HttpRequest extends EventTarget {
*/
@DomName('XMLHttpRequest.onprogress')
@DocsEditable
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.FIREFOX)
+ @SupportedBrowser(SupportedBrowser.IE, '10')
+ @SupportedBrowser(SupportedBrowser.SAFARI)
Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this);
/**

Powered by Google App Engine
This is Rietveld 408576698