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

Issue 1399253005: Fix layout of omnibox rows for material design (Closed)

Created:
5 years, 2 months ago by tdanderson
Modified:
5 years, 2 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix layout of omnibox rows for material design Guarantee the correct height of omnibox result rows in material design by separating the constants for the top/bottom dropdown padding and the minimum text padding within a single row. Furthermore, ensure the correct layout of answers that appear on separate rows by using the correct row height for the text bounds. BUG=522585 TEST=manual Committed: https://crrev.com/8b533c3be70ed43cbee09a912eabdec1d3de38ea Cr-Commit-Position: refs/heads/master@{#355059}

Patch Set 1 #

Total comments: 1

Patch Set 2 : new approach #

Total comments: 6

Patch Set 3 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -17 lines) Patch
M chrome/browser/ui/views/layout_constants.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/layout_constants.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.h View 1 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 5 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
tdanderson
Peter, can you please take a look?
5 years, 2 months ago (2015-10-13 19:06:52 UTC) #2
Peter Kasting
https://codereview.chromium.org/1399253005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/1399253005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode734 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:734: return std::max(font_height, GetContentLineHeight()); Where in the specs is this ...
5 years, 2 months ago (2015-10-13 19:21:17 UTC) #3
tdanderson
On 2015/10/13 19:21:17, Peter Kasting wrote: > https://codereview.chromium.org/1399253005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc > File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): > > https://codereview.chromium.org/1399253005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode734 ...
5 years, 2 months ago (2015-10-13 19:26:43 UTC) #4
Peter Kasting
On 2015/10/13 19:26:43, tdanderson wrote: > On 2015/10/13 19:21:17, Peter Kasting wrote: > > > ...
5 years, 2 months ago (2015-10-13 19:31:49 UTC) #5
tdanderson
Peter, can you please take a look at my new approach in Patch Set 2? ...
5 years, 2 months ago (2015-10-19 13:53:25 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/1399253005/diff/20001/chrome/browser/ui/views/layout_constants.cc File chrome/browser/ui/views/layout_constants.cc (right): https://codereview.chromium.org/1399253005/diff/20001/chrome/browser/ui/views/layout_constants.cc#newcode99 chrome/browser/ui/views/layout_constants.cc:99: const int kOmniboxDropdownTextPadding[] = {3, 3, 3}; Should ...
5 years, 2 months ago (2015-10-19 20:47:11 UTC) #8
tdanderson
https://codereview.chromium.org/1399253005/diff/20001/chrome/browser/ui/views/layout_constants.cc File chrome/browser/ui/views/layout_constants.cc (right): https://codereview.chromium.org/1399253005/diff/20001/chrome/browser/ui/views/layout_constants.cc#newcode99 chrome/browser/ui/views/layout_constants.cc:99: const int kOmniboxDropdownTextPadding[] = {3, 3, 3}; On 2015/10/19 ...
5 years, 2 months ago (2015-10-20 14:20:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399253005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399253005/40001
5 years, 2 months ago (2015-10-20 14:20:32 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-20 14:57:05 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 14:57:52 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8b533c3be70ed43cbee09a912eabdec1d3de38ea
Cr-Commit-Position: refs/heads/master@{#355059}

Powered by Google App Engine
This is Rietveld 408576698