Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move in-progress command label_id, icon, and handler to the model.
This allows in-progress commands to be fully defined and handled at the same point in code as is providing the item update. Logic specific to cancel/pause/resume can now be removed from the views delegate. In the future, it could be possible to remove hard-coded logic about primary/secondary actions but that is out of scope for this CL. Also in the future we could move all commands to the model, but that is similarly out of scope for this CL. Bug: 1314548 Change-Id: I28bd20341b5e3f698028b675ebaa030ecfa78a9d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3806784 Reviewed-by: Toni Barzic <tbarzic@chromium.org> Commit-Queue: David Black <dmblack@google.com> Cr-Commit-Position: refs/heads/main@{#1031633}
- Loading branch information
David Black
authored and
Chromium LUCI CQ
committed
Aug 4, 2022
1 parent
820bcc9
commit 0a1d675
Showing
20 changed files
with
334 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.