Commit 7066ac32 authored by David's avatar David Committed by Commit Bot

Update media_app externs to be consistent with cl/303925842 for chrome://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: default avatarTrent Apted <tapted@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756121}
parent 60254b88
...@@ -40,7 +40,6 @@ mediaApp.AbstractFile.prototype.size; ...@@ -40,7 +40,6 @@ mediaApp.AbstractFile.prototype.size;
* @type {string} * @type {string}
*/ */
mediaApp.AbstractFile.prototype.mimeType; mediaApp.AbstractFile.prototype.mimeType;
/** /**
* A function that will overwrite the original file with the provided Blob. * A function that will overwrite the original file with the provided Blob.
* Returns a promise that resolves when the write operations are complete. Or * Returns a promise that resolves when the write operations are complete. Or
...@@ -50,24 +49,21 @@ mediaApp.AbstractFile.prototype.mimeType; ...@@ -50,24 +49,21 @@ mediaApp.AbstractFile.prototype.mimeType;
* @type {function(!Blob): Promise<undefined>|undefined} * @type {function(!Blob): Promise<undefined>|undefined}
*/ */
mediaApp.AbstractFile.prototype.overwriteOriginal; mediaApp.AbstractFile.prototype.overwriteOriginal;
/** /**
* A function that will delete the original file. Returns a promise that * A function that will delete the original file. Returns a promise that
* resolves to an enum value (see DeleteResult in message_types) reflecting the * resolves to an enum value (see DeleteResult in chromium message_types)
* result of the deletion (SUCCESS, FILE_MOVED), rejected if the deletion fails. * reflecting the result of the deletion (SUCCESS, FILE_MOVED). Rejected if an
* error is thrown.
* @type {function(): Promise<number>|undefined} * @type {function(): Promise<number>|undefined}
*/ */
mediaApp.AbstractFile.prototype.deleteOriginalFile; mediaApp.AbstractFile.prototype.deleteOriginalFile;
/** /**
* A function that will rename the original file. Returns a promise that * A function that will rename the original file. Returns a promise that
* resolves to an enum value (see RenameResult in message_types) reflecting the * resolves to an enum value (see RenameResult in message_types) reflecting the
* result of the deletion (SUCCESS, FILE_EXISTS), rejected if the * result of the rename (SUCCESS, FILE_EXISTS). Rejected if an error is thrown.
* rename fails.
* @type {function(string): Promise<number>|undefined} * @type {function(string): Promise<number>|undefined}
*/ */
mediaApp.AbstractFile.prototype.renameOriginalFile; mediaApp.AbstractFile.prototype.renameOriginalFile;
/** /**
* Wraps an HTML FileList object. * Wraps an HTML FileList object.
* @record * @record
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment