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

Unified Diff: sdk/lib/_blink/dartium/_blink_dartium.dart

Issue 292963002: SDK rebuild (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_blink/dartium/_blink_dartium.dart
diff --git a/sdk/lib/_blink/dartium/_blink_dartium.dart b/sdk/lib/_blink/dartium/_blink_dartium.dart
index 2d6f675884c05a8db96fb59cbee6da0dffad4d5e..d15adc1e092780ce11124f28b8a4ac3d3161be87 100644
--- a/sdk/lib/_blink/dartium/_blink_dartium.dart
+++ b/sdk/lib/_blink/dartium/_blink_dartium.dart
@@ -1146,7 +1146,7 @@ Native_Clipboard_getData_Callback(mthis, type) native "DataTransfer_getData_Call
Native_Clipboard_setData_Callback(mthis, type, data) native "DataTransfer_setData_Callback_RESOLVER_STRING_2_DOMString_DOMString";
-Native_Clipboard_setDragImage_Callback(mthis, element, x, y) native "DataTransfer_setDragImage_Callback_RESOLVER_STRING_3_Element_long_long";
+Native_Clipboard_setDragImage_Callback(mthis, image, x, y) native "DataTransfer_setDragImage_Callback_RESOLVER_STRING_3_Element_long_long";
Native_CloseEvent_code_Getter(mthis) native "CloseEvent_code_Getter";
@@ -7950,7 +7950,34 @@ Native_WebSocket__close_2_Callback(mthis, code) native "WebSocket_close_Callback
Native_WebSocket__close_3_Callback(mthis) native "WebSocket_close_Callback_RESOLVER_STRING_0_";
-Native_WebSocket_send_Callback(mthis, data) native "WebSocket_send_Callback_RESOLVER_STRING_1_ArrayBuffer";
+ // Generated overload resolver
+Native_WebSocket_send(mthis, data) {
+ if ((data is TypedData || data == null)) {
+ Native_WebSocket__send_1_Callback(mthis, data);
+ return;
+ }
+ if ((data is ByteBuffer || data == null)) {
+ Native_WebSocket__send_2_Callback(mthis, data);
+ return;
+ }
+ if ((data is Blob || data == null)) {
+ Native_WebSocket__send_3_Callback(mthis, data);
+ return;
+ }
+ if ((data is String || data == null)) {
+ Native_WebSocket__send_4_Callback(mthis, data);
+ return;
+ }
+ throw new ArgumentError("Incorrect number or type of arguments");
+ }
+
+Native_WebSocket__send_1_Callback(mthis, data) native "WebSocket_send_Callback_RESOLVER_STRING_1_ArrayBufferView";
+
+Native_WebSocket__send_2_Callback(mthis, data) native "WebSocket_send_Callback_RESOLVER_STRING_1_ArrayBuffer";
+
+Native_WebSocket__send_3_Callback(mthis, data) native "WebSocket_send_Callback_RESOLVER_STRING_1_Blob";
+
+Native_WebSocket__send_4_Callback(mthis, data) native "WebSocket_send_Callback_RESOLVER_STRING_1_DOMString";
Native_WebSocket_sendBlob_Callback(mthis, data) native "WebSocket_send_Callback_RESOLVER_STRING_1_Blob";
« no previous file with comments | « no previous file | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698