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:
vsm@google.com 2014-08-06 11:27:47 +00:00
parent 7ff889c209
commit 3aff966aa6
4 changed files with 11 additions and 9 deletions

View file

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

View file

@ -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);

View file

@ -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);

View file

@ -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',