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

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 15819003: Modernizing HttpRequest documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a0b627850ce552666a0edfab998b9d2ce7b310d6..2c6d896e86bd16a8cdd128c8501ece3bc76f9f91 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -682,6 +682,9 @@ class BeforeLoadEvent extends Event {
@DomName('Blob')
class Blob extends NativeFieldWrapperClass1 {
Blob.internal();
+
+ @DomName('Blob.Blob')
+ @DocsEditable
factory Blob(List blobParts, [String type, String endings]) => _create(blobParts, type, endings);
@DocsEditable
@@ -10818,6 +10821,9 @@ class FontLoader extends EventTarget {
@SupportedBrowser(SupportedBrowser.SAFARI)
class FormData extends NativeFieldWrapperClass1 {
FormData.internal();
+
+ @DomName('FormData.DOMFormData')
+ @DocsEditable
factory FormData([FormElement form]) => _create(form);
@DocsEditable
@@ -11858,6 +11864,23 @@ class HttpRequest extends EventTarget {
@DomName('XMLHttpRequest.readystatechangeEvent')
@DocsEditable
static const EventStreamProvider<ProgressEvent> readyStateChangeEvent = const EventStreamProvider<ProgressEvent>('readystatechange');
+
+ /**
+ * General constructor for any type of request (GET, POST, etc).
+ *
+ * This call is used in conjunction with [open]:
+ *
+ * var request = new HttpRequest();
+ * request.open('GET', 'http://dartlang.org')
+ * request.onLoad.add((event) => print('Request complete'));
+ *
+ * is the (more verbose) equivalent of
+ *
+ * HttpRequest.getString('http://dartlang.org').then(
+ * (result) => print('Request complete: $result'));
+ */
+ @DomName('XMLHttpRequest.XMLHttpRequest')
+ @DocsEditable
factory HttpRequest() => _create();
@DocsEditable
@@ -15439,6 +15462,9 @@ class MenuElement extends _Element_Merged {
@Unstable
class MessageChannel extends NativeFieldWrapperClass1 {
MessageChannel.internal();
+
+ @DomName('MessageChannel.MessageChannel')
+ @DocsEditable
factory MessageChannel() => _create();
@DocsEditable
@@ -16181,6 +16207,9 @@ class MutationEvent extends Event {
@Experimental
class MutationObserver extends NativeFieldWrapperClass1 {
MutationObserver.internal();
+
+ @DomName('MutationObserver.MutationObserver')
+ @DocsEditable
factory MutationObserver(MutationCallback callback) => _create(callback);
@DocsEditable
@@ -25582,6 +25611,9 @@ abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
@Experimental // non-standard
class _DomPoint extends NativeFieldWrapperClass1 {
_DomPoint.internal();
+
+ @DomName('WebKitPoint.DOMPoint')
+ @DocsEditable
factory _DomPoint(num x, num y) => _create(x, y);
@DocsEditable
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698