mirror of
https://github.com/dart-lang/sdk
synced 2024-09-21 07:21:29 +00:00
Fix broken FileReader API in _blink_dartium
TBR=leafp@google.com,terry@google.com Review URL: https://codereview.chromium.org//444973002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38926 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
7ff889c209
commit
3aff966aa6
|
@ -2169,6 +2169,8 @@ class BlinkFileReader {
|
|||
|
||||
static $readyState_Getter(mthis) native "FileReader_readyState_Getter";
|
||||
|
||||
static $result_Getter(mthis) native "FileReader_result_Getter";
|
||||
|
||||
static $abort_Callback(mthis) native "FileReader_abort_Callback_RESOLVER_STRING_0_";
|
||||
|
||||
static $readAsArrayBuffer_Callback(mthis, blob) native "FileReader_readAsArrayBuffer_Callback_RESOLVER_STRING_1_Blob";
|
||||
|
@ -8131,10 +8133,10 @@ class BlinkURL {
|
|||
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
|
||||
return $_createObjectURL_1_Callback(blob_OR_source_OR_stream);
|
||||
}
|
||||
if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
||||
if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
||||
return $_createObjectURL_2_Callback(blob_OR_source_OR_stream);
|
||||
}
|
||||
if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
||||
if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
||||
return $_createObjectURL_3_Callback(blob_OR_source_OR_stream);
|
||||
}
|
||||
throw new ArgumentError("Incorrect number or type of arguments");
|
||||
|
@ -8142,9 +8144,9 @@ class BlinkURL {
|
|||
|
||||
static $_createObjectURL_1_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_Blob";
|
||||
|
||||
static $_createObjectURL_2_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaStream";
|
||||
static $_createObjectURL_2_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaSource";
|
||||
|
||||
static $_createObjectURL_3_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaSource";
|
||||
static $_createObjectURL_3_Callback(blob_OR_source_OR_stream) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_MediaStream";
|
||||
|
||||
static $createObjectUrlFromBlob_Callback(blob) native "URL_createObjectURL_Callback_RESOLVER_STRING_1_Blob";
|
||||
|
||||
|
|
|
@ -13020,6 +13020,10 @@ class FileReader extends EventTarget {
|
|||
@DocsEditable()
|
||||
int get readyState => _blink.BlinkFileReader.$readyState_Getter(this);
|
||||
|
||||
@DomName('FileReader.result')
|
||||
@DocsEditable()
|
||||
Object get _result => _blink.BlinkFileReader.$result_Getter(this);
|
||||
|
||||
@DomName('FileReader.abort')
|
||||
@DocsEditable()
|
||||
void abort() => _blink.BlinkFileReader.$abort_Callback(this);
|
||||
|
|
|
@ -32,11 +32,6 @@ interface Document {
|
|||
[Custom] Element createElementNS(DOMString namespaceURI, DOMString qualifiedName, DOMString typeExtension);
|
||||
};
|
||||
|
||||
[Supplemental]
|
||||
interface FileReader {
|
||||
[Suppressed] readonly attribute Object result;
|
||||
};
|
||||
|
||||
[Supplemental]
|
||||
interface Node {
|
||||
[Custom] Node cloneNode([Default=Undefined] optional boolean deep);
|
||||
|
|
|
@ -253,6 +253,7 @@ private_html_members = monitored.Set('htmlrenamer.private_html_members', [
|
|||
'Element.scrollHeight',
|
||||
|
||||
'Event.initEvent',
|
||||
'FileReader.result',
|
||||
'Geolocation.clearWatch',
|
||||
'Geolocation.getCurrentPosition',
|
||||
'Geolocation.watchPosition',
|
||||
|
|
Loading…
Reference in a new issue