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"; |