Chromium Code Reviews
DescriptionIntroduce concept of provisional destination to print preview
These are destinations that can be listed in the UI, but cannot be
set as a selected destination in destination store. When user selects them in
destination search UI, extra steps are taken in order to resolve these destinations.
When resolved, provisional destinations are replaced by the resolved version,
which is then selected.
This is used for selecting USB printers that can be handled by an
extension destination provider (as decleared in the extension manifest),
but for whose USB devices the extension does not yet have permission.
These destinations cannot be directly handled by the extension, as it is
not avare of their presence. These destinations are provided by printer
provider API backend. When attempting to select those, user is asked to
allow the extension to access the USB device in question. If the user
agrees, the extension is given permission to access the USB device and
requested printer description for the USB printer. When the printer
description is returned, the provisional destinaion is removed from
destination store. The new destination is added to the store and selected.
BUG=468955
Committed: https://crrev.com/fd8d83b5e6fec748d71a6dff7ead345ca89d784e
Cr-Commit-Position: refs/heads/master@{#333888}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : . #
Total comments: 1
Patch Set 4 : . #Patch Set 5 : rebase #
Total comments: 4
Patch Set 6 : . #Messages
Total messages: 12 (3 generated)
|