Move openFile from clientAPIDelegate to ReceivedFileList.
This is the first cl in a set of CLs centred around moving navigation order responsibility from launch.js to ReceivedFileList in receiver.js. This cl does 3 things to set up ReceivedFile list to take over owning open file functionality. * Loads a default file list into the media app on launch so we can have access to the openFile method regardless of if we were launched with files or not. * Moves the openFile function from clientAPIDelegate into receivedFileList. * Adds a currentFileIndex property. This is unused at the moment but needs to be on the api so observers can detect when the current file changes. Once Google3 updates to use this openFile function and updates the loaded file on a currentFile change, the old openFile code path can be removed. Then the ReceivedFileList can be updated to no longer rely on launch.js to do file navigation to the newly opened file but to do it internally. See go/bl-file-navigation-order for the full timeline for this effort. Change-Id: Idbbddf1338b66d37917413e67767b54b9709a7a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2494181Reviewed-by:Trent Apted <tapted@chromium.org> Commit-Queue: Zain Afzal <zafzal@google.com> Cr-Commit-Position: refs/heads/master@{#821035}
Showing
Please register or sign in to comment