lacros: Support multiple simultaneous select file dialogs
Previously, select file dialogs opened from lacros-chrome had an empty RoutingID. This caused console errors, and also meant only one dialog could be open at a time. Give each dialog instance a unique ID. For now, this is just an monotonically increasing integer. Longer-term it will be a window ID provided from the lacros-chrome process. This will also allow proper window stacking -- that doesn't work yet. The method SelectFileWithFileManagerParams() already has 9 arguments. Rather than adding more, consolidate all "owner window" information into a struct. This CL requires deps from //c/b/chromeos to //c/b/ui/views for SelectFileDialogExtension, similar to //c/b/chromeos/arc/fileapi. This allows us to avoid polluting the cross-platform SelectFileDialog API with Chrome OS specific parameters. Feature design doc at go/lacros-select-file Bug: 1090587 Change-Id: I52d87c7216fc8a6c6b9eb1ea9c41c23f54f34e75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2293164Reviewed-by:Erik Chen <erikchen@chromium.org> Reviewed-by:
Luciano Pacheco <lucmult@chromium.org> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#787762}
Showing
Please register or sign in to comment