-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DialogModel-to-MenuModel adapter
This adds a DialogModelMenuItem along with a DialogModelMenuModelAdapter which is used to be able to run a context menu using DialogModel's simpler Builder APIs. TODOs are left all over the place alongside NOTREACHED()s that haven't been hit while running this. Placeholder code in SavedTabGroupButton is left to help give an example to dljames@ for how to add the real context-menu content. This was used to test that both labels and icons could be added. One real defect is that I could not figure out how to make Mac context menus show icons. IS_NESTED is added to views::MenuRunner to force this to render under views, which is consistent with the BookmarkBarView context-menu items that are adjacent and semantically similar to this item. Bug: 1324360, 1324598 Change-Id: Ic111b77fa28b7fb2b3bd7081f26ef304b4faeffe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3642703 Auto-Submit: Peter Boström <pbos@chromium.org> Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Peter Boström <pbos@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/main@{#1002347}
- Loading branch information
Showing
10 changed files
with
345 additions
and
4 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
Oops, something went wrong.