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

Unified Diff: lib/dom/idl/dart/dart.idl

Issue 10918059: Changing websocket API to make it possible to send array buffers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding overrides to the send method. Created 8 years, 3 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 | « lib/dom/dom.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/idl/dart/dart.idl
diff --git a/lib/dom/idl/dart/dart.idl b/lib/dom/idl/dart/dart.idl
index 553198d2a7fd25e214b37ffff26d8042d3afafd6..4bb1e099be2e19e774467d12aabc5a9c5f2ac681 100644
--- a/lib/dom/idl/dart/dart.idl
+++ b/lib/dom/idl/dart/dart.idl
@@ -302,3 +302,17 @@ module storage {
[Custom] Dictionary item(in unsigned long index);
};
}
+
+module websockets {
+ [Supplemental]
+ interface WebSocket {
+ // Suppress the default since it has non-standard return type and add
+ // overrides.
+ [Suppressed] boolean send(in DOMString data) raises(DOMException);
+ [Custom] void send(DOMString data) raises(DOMException);
+ [Custom] void send(Blob data) raises(DOMException);
+ [Custom] void send(ArrayBuffer data) raises(DOMException);
+ [Custom] void send(ArrayBufferView data) raises(DOMException);
+ };
+}
+
« no previous file with comments | « lib/dom/dom.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698