DialogClientView: Consider maxing "extra_view" buttons an explicit ui::DialogButton enum value |
|||
Issue description
Chrome Version : 58.0.3018.3
Harmony proposes moving any non-button "Extra views" into the content area of the dialogs (i.e. not in the button row).
This means all extra views should just be buttons, so we can move some boilerplate into DialogClientView and simplify some of the layout logic.
Currently ui::DialogButton is
// Dialog button identifiers used to specify which buttons to show the user.
enum DialogButton {
DIALOG_BUTTON_NONE = 0,
DIALOG_BUTTON_OK = 1,
DIALOG_BUTTON_CANCEL = 2,
};
Making an explicit DIALOG_BUTTON_{EXTRA/AUXILIARY/ACCESSORY/ALTERNATE..} will satisfy a lot of use-cases.
Things undecided:
- Do we need DialogDelegate::AlternateAccept() (to match Cancel()/Accept())
- Will post-harmony ever need a use-case for a non-button extra view in the button row? (let's aim for "no")
- Should we support arbitrary ordering/padding (e.g. `Add Bookmark` bubble goes {<cancel>, <auxillary>, <ok>} - but also AddBookmark bubble is being revised in Harmony anyway)
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
Archiving old bugs that haven't been actively assigned in over 180 days. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks!
,
Sep 13
We should consider doing this as part of tech debt reduction. |
|||
►
Sign in to add a comment |
|||
Comment 1 by sheriffbot@chromium.org
, Mar 6 2018Status: Untriaged (was: Available)