Chromium Code Reviews
DescriptionMacViews: Ensure cancel buttons don't get default button styling.
r406276 introduced kDialogDefaultButtonCanBeCancel to ensure buttons with the
type DIALOG_BUTTON_CANCEL do not have default button styling on Mac.
Subsequently, r420488 made all default dialog buttons blue on Harfmony. This CL
changes DialogClientView::CreateDialogButton to take
kDialogDefaultButtonCanBeCancel into consideration before applying the default
button styling on Harmony. This ensures Cancel buttons under Harmony on MacViews
do not get the default button styling.
BUG=678165, 605652
TEST= On Mac, enable chrome://flags//secondary-ui-md. Open Collected Cookies
dialog. Ensure close button does not have default button styling.
Committed: https://crrev.com/eaff8e380fa4ef7ad90a5929eb35ce81df786f70
Cr-Commit-Position: refs/heads/master@{#441615}
Patch Set 1 #
Total comments: 3
Messages
Total messages: 10 (5 generated)
|
|||||||||||||||||||