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

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

Issue 18850007: Add back appendBlob and send variants in WebSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/scripts/htmlrenamer.py » ('J')
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 d2e78dd3d6f8bd20a68edc6c5ec2b0a02a8b224c..88604c5babab76bdc11cb3afd7f29c6ae65b07fe 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -11087,7 +11087,12 @@ class FormData extends Interceptor native "FormData" {
@DomName('FormData.append')
@DocsEditable()
- void append(String name, value, [String filename]) native;
+ void append(String name, String value) native;
+
+ @JSName('append')
+ @DomName('FormData.append')
+ @DocsEditable()
+ void appendBlob(String name, Blob value, [String filename]) native;
}
// 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
@@ -23167,6 +23172,26 @@ class WebSocket extends EventTarget native "WebSocket" {
@DocsEditable()
void send(data) native;
+ @JSName('send')
+ @DomName('WebSocket.send')
+ @DocsEditable()
+ void sendBlob(Blob data) native;
+
+ @JSName('send')
+ @DomName('WebSocket.send')
+ @DocsEditable()
+ void sendByteBuffer(ByteBuffer data) native;
+
+ @JSName('send')
+ @DomName('WebSocket.send')
+ @DocsEditable()
+ void sendString(String data) native;
+
+ @JSName('send')
+ @DomName('WebSocket.send')
+ @DocsEditable()
+ void sendTypeData(TypedData data) native;
+
@DomName('WebSocket.onclose')
@DocsEditable()
Stream<CloseEvent> get onClose => closeEvent.forTarget(this);
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/scripts/htmlrenamer.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698