Skip to content

Commit

Permalink
Update media_app externs to be consistent with cl/303925842 for chrom…
Browse files Browse the repository at this point in the history
…e://media-app.

Bug: b/138961540, 996088
Change-Id: I514e5d4834beeaaf0eeb0062e53cbbbf4950cdad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132020
Auto-Submit: David Lei <dlei@google.com>
Reviewed-by: Trent Apted <tapted@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756121}
  • Loading branch information
David authored and Commit Bot committed Apr 3, 2020
1 parent 60254b8 commit 7066ac3
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ mediaApp.AbstractFile.prototype.size;
* @type {string}
*/
mediaApp.AbstractFile.prototype.mimeType;

/**
* A function that will overwrite the original file with the provided Blob.
* Returns a promise that resolves when the write operations are complete. Or
Expand All @@ -50,24 +49,21 @@ mediaApp.AbstractFile.prototype.mimeType;
* @type {function(!Blob): Promise<undefined>|undefined}
*/
mediaApp.AbstractFile.prototype.overwriteOriginal;

/**
* A function that will delete the original file. Returns a promise that
* resolves to an enum value (see DeleteResult in message_types) reflecting the
* result of the deletion (SUCCESS, FILE_MOVED), rejected if the deletion fails.
* resolves to an enum value (see DeleteResult in chromium message_types)
* reflecting the result of the deletion (SUCCESS, FILE_MOVED). Rejected if an
* error is thrown.
* @type {function(): Promise<number>|undefined}
*/
mediaApp.AbstractFile.prototype.deleteOriginalFile;

/**
* A function that will rename the original file. Returns a promise that
* resolves to an enum value (see RenameResult in message_types) reflecting the
* result of the deletion (SUCCESS, FILE_EXISTS), rejected if the
* rename fails.
* result of the rename (SUCCESS, FILE_EXISTS). Rejected if an error is thrown.
* @type {function(string): Promise<number>|undefined}
*/
mediaApp.AbstractFile.prototype.renameOriginalFile;

/**
* Wraps an HTML FileList object.
* @record
Expand Down

0 comments on commit 7066ac3

Please sign in to comment.