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

Issue 2702403010: Fix the absence of padding on some UI buttons. (Closed)

Created:
3 years, 10 months ago by Bret
Modified:
3 years, 10 months ago
Reviewers:
kylix_rd, Peter Kasting, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the absence of padding on some UI buttons. It turns out that despite what I thought some buttons are being created as MdTextButtons even when harmony is off, for example in the infobar. So this patch reverts some changes from crrev.com/2660553005 to ensure behavior pre-harmony remains unchanged. BUG=694129 Review-Url: https://codereview.chromium.org/2702403010 Cr-Commit-Position: refs/heads/master@{#452937} Committed: https://chromium.googlesource.com/chromium/src/+/2c407ccc88aae08641fcb667277df2b08a2f251a

Patch Set 1 #

Total comments: 2

Patch Set 2 : change switch #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
M chrome/browser/ui/views/chrome_views_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_delegate.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/layout_delegate.cc View 1 chunk +3 lines, -1 line 2 comments Download
M ui/views/controls/button/md_text_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/layout/layout_constants.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/views_delegate.h View 1 chunk +4 lines, -1 line 0 comments Download
M ui/views/views_delegate.cc View 1 chunk +5 lines, -1 line 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Bret
pkasting: general review sky: OWNERS
3 years, 10 months ago (2017-02-23 22:11:45 UTC) #4
sky
Allen is working on redoing this code here: https://codereview.chromium.org/2696263002/ . Any chance you could wait ...
3 years, 10 months ago (2017-02-24 00:39:36 UTC) #6
Bret
On 2017/02/24 00:39:36, sky wrote: > Allen is working on redoing this code here: > ...
3 years, 10 months ago (2017-02-24 00:47:05 UTC) #7
Peter Kasting
LGTM. I would go ahead and land immediately, as this is a visible regression of ...
3 years, 10 months ago (2017-02-24 02:00:50 UTC) #8
Bret
Okay, hopefully you can live with one more constant in layout_constants for now, sky. https://codereview.chromium.org/2702403010/diff/1/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc ...
3 years, 10 months ago (2017-02-24 02:29:45 UTC) #9
sky
https://codereview.chromium.org/2702403010/diff/20001/chrome/browser/ui/views/harmony/layout_delegate.cc File chrome/browser/ui/views/harmony/layout_delegate.cc (right): https://codereview.chromium.org/2702403010/diff/20001/chrome/browser/ui/views/harmony/layout_delegate.cc#newcode28 chrome/browser/ui/views/harmony/layout_delegate.cc:28: return views::kMinimumButtonWidth; Rather than exposing the constant in views ...
3 years, 10 months ago (2017-02-24 04:15:43 UTC) #10
Peter Kasting
https://codereview.chromium.org/2702403010/diff/20001/chrome/browser/ui/views/harmony/layout_delegate.cc File chrome/browser/ui/views/harmony/layout_delegate.cc (right): https://codereview.chromium.org/2702403010/diff/20001/chrome/browser/ui/views/harmony/layout_delegate.cc#newcode28 chrome/browser/ui/views/harmony/layout_delegate.cc:28: return views::kMinimumButtonWidth; On 2017/02/24 04:15:43, sky wrote: > Rather ...
3 years, 10 months ago (2017-02-24 06:32:31 UTC) #11
sky
Ok, fair enough, LGTM
3 years, 10 months ago (2017-02-24 18:22:44 UTC) #12
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/2702403010/20001
3 years, 10 months ago (2017-02-24 20:14:24 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 21:49:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2c407ccc88aae08641fcb667277d...

Powered by Google App Engine
This is Rietveld 408576698