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

Issue 516943003: Add textfield internal padding from FocusableBorder. (Closed)

Created:
6 years, 3 months ago by msw
Modified:
6 years, 3 months ago
Reviewers:
calamity, Peter Kasting, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su, benwells, calamity, jennyz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add textfield internal padding from FocusableBorder. Add 3px of internal padding for textfield/combobox content. Remove corresponding unused padding from FocusableBorder. This better accommodates excessively tall fallback font text. Update Omnibox, Find Bar, App List, and CookieInfoView. See before/after pics at http://crbug.com/404999#c51 BUG=404999 TEST=Bookmark bubble/dialog, find bar, etc. don't clip most tall fallback text. R=sky@chromium.org,pkasting@chromium.org Committed: https://crrev.com/a259c9b832bcbc4a641f1696071df39e028a5c2c Cr-Commit-Position: refs/heads/master@{#294016}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reduce FocusableBorder height; update Textfield and Combobox. #

Patch Set 3 : Avoid SetBorder overrides with a default border member. #

Patch Set 4 : Shrink FocusableBorder; add Textfield and Combobox padding. #

Total comments: 10

Patch Set 5 : Sync and rebase. #

Patch Set 6 : Address comments; fix find bar offset. #

Total comments: 8

Patch Set 7 : Address comments; retain find bar size and layout. #

Patch Set 8 : Refine FindBarView and CookieInfoView textfield layout. #

Patch Set 9 : Update AppList's SearchBoxView and FolderHeaderView; git cl format. #

Total comments: 14

Patch Set 10 : Address comments. #

Total comments: 8

Patch Set 11 : Address Peter's request... #

Total comments: 7

Patch Set 12 : Restore Insets const ref. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -52 lines) Patch
M chrome/browser/ui/views/cookie_info_view.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/cookie_info_view.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +10 lines, -10 lines 0 comments Download
M ui/app_list/views/folder_header_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -1 line 0 comments Download
M ui/views/controls/focusable_border.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/focusable_border.cc View 1 2 3 4 5 1 chunk +5 lines, -7 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 36 (2 generated)
msw
msw@chromium.org changed reviewers: + sky@chromium.org
6 years, 3 months ago (2014-08-28 20:47:32 UTC) #1
msw
Hey Scott, please take a look; thanks!
6 years, 3 months ago (2014-08-28 20:48:44 UTC) #2
Peter Kasting
pkasting@chromium.org changed reviewers: + pkasting@chromium.org
6 years, 3 months ago (2014-08-28 21:15:37 UTC) #3
Peter Kasting
https://codereview.chromium.org/516943003/diff/1/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/516943003/diff/1/ui/views/controls/textfield/textfield.cc#newcode281 ui/views/controls/textfield/textfield.cc:281: // Use most of the FocusableBorder's internal padding for ...
6 years, 3 months ago (2014-08-28 21:15:37 UTC) #4
msw
https://codereview.chromium.org/516943003/diff/1/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/516943003/diff/1/ui/views/controls/textfield/textfield.cc#newcode281 ui/views/controls/textfield/textfield.cc:281: // Use most of the FocusableBorder's internal padding for ...
6 years, 3 months ago (2014-08-28 21:29:14 UTC) #5
Peter Kasting
On 2014/08/28 21:29:14, msw wrote: > https://codereview.chromium.org/516943003/diff/1/ui/views/controls/textfield/textfield.cc > File ui/views/controls/textfield/textfield.cc (right): > > https://codereview.chromium.org/516943003/diff/1/ui/views/controls/textfield/textfield.cc#newcode281 > ...
6 years, 3 months ago (2014-08-28 21:31:56 UTC) #6
msw
On 2014/08/28 21:31:56, Peter Kasting wrote: > On 2014/08/28 21:29:14, msw wrote: > > > ...
6 years, 3 months ago (2014-08-28 21:55:41 UTC) #7
Peter Kasting
On 2014/08/28 21:55:41, msw wrote: > On 2014/08/28 21:31:56, Peter Kasting wrote: > > On ...
6 years, 3 months ago (2014-08-28 21:57:17 UTC) #8
msw
We could do something like Patch Set #2 or #3; PTAL.
6 years, 3 months ago (2014-08-28 23:52:45 UTC) #9
msw
Peter had offline advice; I'm going to try something else.
6 years, 3 months ago (2014-08-29 00:43:51 UTC) #10
msw
Peter, please take a look, thanks. I audited textfield subclasses and instantiations on codesearch, and ...
6 years, 3 months ago (2014-08-29 19:39:38 UTC) #11
Peter Kasting
Looks better! https://codereview.chromium.org/516943003/diff/60001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/516943003/diff/60001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode667 chrome/browser/ui/views/location_bar/location_bar_view.cc:667: leading_width += GetEditLeadingInternalSpace(); Hmm, I worry about ...
6 years, 3 months ago (2014-08-29 21:09:11 UTC) #12
msw
Addressed comments and fixed the find bar, there may be other regressions. I'd honestly rather ...
6 years, 3 months ago (2014-08-30 00:17:48 UTC) #13
Peter Kasting
https://codereview.chromium.org/516943003/diff/60001/ui/views/controls/focusable_border.cc File ui/views/controls/focusable_border.cc (right): https://codereview.chromium.org/516943003/diff/60001/ui/views/controls/focusable_border.cc#newcode51 ui/views/controls/focusable_border.cc:51: paint.setStrokeWidth(SkIntToScalar(2 * kInsetSize)); On 2014/08/30 00:17:48, msw wrote: > ...
6 years, 3 months ago (2014-08-30 00:46:43 UTC) #14
msw
Please take another look; I'll continue auditing textfield users for sizing/layout changes, but will surely ...
6 years, 3 months ago (2014-09-04 01:25:51 UTC) #15
msw
Ping! Peter, please take a look when you can. The bug is an M-38 stable ...
6 years, 3 months ago (2014-09-05 18:05:44 UTC) #16
Peter Kasting
LGTM https://codereview.chromium.org/516943003/diff/160001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/516943003/diff/160001/chrome/browser/ui/views/find_bar_view.cc#newcode41 chrome/browser/ui/views/find_bar_view.cc:41: const int kMarginLeftOfCloseButton = 3; Nit: Should we ...
6 years, 3 months ago (2014-09-05 22:56:49 UTC) #17
msw
Comments addressed. Scott, please take a look; thanks! [CC'ing some ui/app_list OWNERS and authors for ...
6 years, 3 months ago (2014-09-05 23:46:56 UTC) #18
Peter Kasting
My last passing thought is that, if there are places currently referring directly to the ...
6 years, 3 months ago (2014-09-06 00:00:22 UTC) #19
calamity
https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc#newcode101 ui/app_list/views/search_box_view.cc:101: kPadding - views::Textfield::kTextPadding); This will change the horizontal spacing ...
6 years, 3 months ago (2014-09-08 03:37:50 UTC) #21
Peter Kasting
https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc#newcode101 ui/app_list/views/search_box_view.cc:101: kPadding - views::Textfield::kTextPadding); On 2014/09/08 03:37:50, calamity wrote: > ...
6 years, 3 months ago (2014-09-08 17:45:59 UTC) #22
msw
On 2014/09/06 00:00:22, Peter Kasting wrote: > My last passing thought is that, if there ...
6 years, 3 months ago (2014-09-08 19:36:13 UTC) #23
Peter Kasting
On 2014/09/08 19:36:13, msw wrote: > On 2014/09/06 00:00:22, Peter Kasting wrote: > > My ...
6 years, 3 months ago (2014-09-08 19:38:37 UTC) #24
msw
On 2014/09/08 19:38:37, Peter Kasting wrote: > On 2014/09/08 19:36:13, msw wrote: > > On ...
6 years, 3 months ago (2014-09-09 00:08:06 UTC) #25
calamity
https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc#newcode101 ui/app_list/views/search_box_view.cc:101: kPadding - views::Textfield::kTextPadding); On 2014/09/08 17:45:59, Peter Kasting wrote: ...
6 years, 3 months ago (2014-09-09 00:46:38 UTC) #26
Peter Kasting
Yeah, something like this looks cleaner. https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc#newcode101 ui/app_list/views/search_box_view.cc:101: kPadding - views::Textfield::kTextPadding); ...
6 years, 3 months ago (2014-09-09 01:33:30 UTC) #27
calamity
Thanks for clarifying, lgtm. https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/516943003/diff/180001/ui/app_list/views/search_box_view.cc#newcode101 ui/app_list/views/search_box_view.cc:101: kPadding - views::Textfield::kTextPadding); On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 02:34:32 UTC) #28
sky
LGTM https://codereview.chromium.org/516943003/diff/200001/chrome/browser/ui/views/cookie_info_view.cc File chrome/browser/ui/views/cookie_info_view.cc (left): https://codereview.chromium.org/516943003/diff/200001/chrome/browser/ui/views/cookie_info_view.cc#oldcode128 chrome/browser/ui/views/cookie_info_view.cc:128: layout->AddPaddingRow(0, kExtraLineHeightPadding); Why did you remove this?
6 years, 3 months ago (2014-09-09 15:18:01 UTC) #29
msw
https://codereview.chromium.org/516943003/diff/200001/chrome/browser/ui/views/cookie_info_view.cc File chrome/browser/ui/views/cookie_info_view.cc (left): https://codereview.chromium.org/516943003/diff/200001/chrome/browser/ui/views/cookie_info_view.cc#oldcode128 chrome/browser/ui/views/cookie_info_view.cc:128: layout->AddPaddingRow(0, kExtraLineHeightPadding); On 2014/09/09 15:18:01, sky wrote: > Why ...
6 years, 3 months ago (2014-09-09 17:01:06 UTC) #30
Peter Kasting
https://codereview.chromium.org/516943003/diff/200001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/516943003/diff/200001/ui/views/controls/textfield/textfield.h#newcode49 ui/views/controls/textfield/textfield.h:49: static const int kTextPadding; On 2014/09/09 17:01:06, msw wrote: ...
6 years, 3 months ago (2014-09-09 18:27:17 UTC) #31
msw
https://codereview.chromium.org/516943003/diff/200001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/516943003/diff/200001/ui/views/controls/textfield/textfield.h#newcode49 ui/views/controls/textfield/textfield.h:49: static const int kTextPadding; On 2014/09/09 18:27:17, Peter Kasting ...
6 years, 3 months ago (2014-09-09 19:57:21 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/516943003/220001
6 years, 3 months ago (2014-09-09 19:58:33 UTC) #34
commit-bot: I haz the power
Committed patchset #12 (id:220001) as 4602d091c873f560e048779ba9f80ff1a2617ecc
6 years, 3 months ago (2014-09-09 21:36:47 UTC) #35
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:55:53 UTC) #36
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a259c9b832bcbc4a641f1696071df39e028a5c2c
Cr-Commit-Position: refs/heads/master@{#294016}

Powered by Google App Engine
This is Rietveld 408576698