Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Issue 2615563003: MacViews: Ensure cancel buttons don't get default button styling. (Closed)

Created:
3 years, 11 months ago by karandeepb
Modified:
3 years, 11 months ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M ui/views/window/dialog_client_view.cc View 2 chunks +9 lines, -3 lines 3 comments Download

Messages

Total messages: 10 (5 generated)
karandeepb
PTAL Trent. https://codereview.chromium.org/2615563003/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2615563003/diff/1/ui/views/window/dialog_client_view.cc#newcode329 ui/views/window/dialog_client_view.cc:329: (type != ui::DIALOG_BUTTON_CANCEL || This is similar ...
3 years, 11 months ago (2017-01-04 07:46:51 UTC) #2
tapted
lgtm https://codereview.chromium.org/2615563003/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2615563003/diff/1/ui/views/window/dialog_client_view.cc#newcode1 ui/views/window/dialog_client_view.cc:1: // Copyright (c) 2012 The Chromium Authors. All ...
3 years, 11 months ago (2017-01-04 23:11:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2615563003/1
3 years, 11 months ago (2017-01-05 09:13:57 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2017-01-05 10:04:02 UTC) #8
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 10:06:06 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/eaff8e380fa4ef7ad90a5929eb35ce81df786f70
Cr-Commit-Position: refs/heads/master@{#441615}

Powered by Google App Engine
This is Rietveld 408576698