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

Issue 2855623004: Don't allow Checkboxes to participate in equal-sized-buttons in Harmony dialogs. (Closed)

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

Description

Don't allow Checkboxes to participate in equal-sized-buttons in Harmony dialogs. Currently when a checkbox is the extra view, the checkbox tends to cause the other buttons in a dialog to get bigger. This is because Checkbox extends LabelButton, so the check using AsCustomButton() will classify it the same way. To fix, explicitly filter out Checkboxes from the equal-sizing logic in DialogClientView. BUG=671820 Review-Url: https://codereview.chromium.org/2855623004 Cr-Commit-Position: refs/heads/master@{#469230} Committed: https://chromium.googlesource.com/chromium/src/+/7fb6670abe4d5f8d6caa26f39bf147c3844a3ec8

Patch Set 1 #

Total comments: 5

Patch Set 2 : Just checkboxes #

Total comments: 2

Patch Set 3 : update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M ui/views/window/dialog_client_view.cc View 1 2 chunks +8 lines, -2 lines 0 comments Download
M ui/views/window/dialog_client_view_unittest.cc View 1 2 3 chunks +11 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (15 generated)
tapted
Hi Mike, please take a look
3 years, 7 months ago (2017-05-02 12:15:37 UTC) #7
msw
https://codereview.chromium.org/2855623004/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2855623004/diff/1/ui/views/window/dialog_client_view.cc#newcode398 ui/views/window/dialog_client_view.cc:398: if (either_button_view && extra_view_ && nit: curlies for multi-line ...
3 years, 7 months ago (2017-05-02 17:20:10 UTC) #8
tapted
https://codereview.chromium.org/2855623004/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2855623004/diff/1/ui/views/window/dialog_client_view.cc#newcode398 ui/views/window/dialog_client_view.cc:398: if (either_button_view && extra_view_ && On 2017/05/02 17:20:10, msw ...
3 years, 7 months ago (2017-05-03 00:16:59 UTC) #12
msw
lgtm https://codereview.chromium.org/2855623004/diff/1/ui/views/window/dialog_client_view.cc File ui/views/window/dialog_client_view.cc (right): https://codereview.chromium.org/2855623004/diff/1/ui/views/window/dialog_client_view.cc#newcode399 ui/views/window/dialog_client_view.cc:399: either_button_view->GetClassName() != extra_view_->GetClassName()) On 2017/05/03 00:16:59, tapted wrote: ...
3 years, 7 months ago (2017-05-03 18:21:02 UTC) #15
tapted
Thanks Mike! https://codereview.chromium.org/2855623004/diff/20001/ui/views/window/dialog_client_view_unittest.cc File ui/views/window/dialog_client_view_unittest.cc (right): https://codereview.chromium.org/2855623004/diff/20001/ui/views/window/dialog_client_view_unittest.cc#newcode402 ui/views/window/dialog_client_view_unittest.cc:402: // Checkbox extends LabelButton. It should not ...
3 years, 7 months ago (2017-05-04 00:31:12 UTC) #16
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/2855623004/40001
3 years, 7 months ago (2017-05-04 00:31:43 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-04 01:24:34 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7fb6670abe4d5f8d6caa26f39bf1...

Powered by Google App Engine
This is Rietveld 408576698