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

Issue 2654163005: Fix the size of omnibox suggestion answers. (Closed)

Created:
3 years, 11 months ago by Justin Donnelly
Modified:
3 years, 10 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, jdonnelly+watch_chromium.org, tfarina, Kevin Bailey
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the size of omnibox suggestion answers. Through a confluence of various changes, OmniboxResultView got into a state where the height given to answers is always the largest size but the actual font used is the regular font size. This fix ensures that both the size of the font and the space it's given are driven by the data in the answer. For the currently launched answers, this is always the largest size so they're being shown too small. But this fix will also support upcoming answer types that don't use the largest font size. BUG=685714 Review-Url: https://codereview.chromium.org/2654163005 Cr-Commit-Position: refs/heads/master@{#447702} Committed: https://chromium.googlesource.com/chromium/src/+/5fdae6fa2582b407ad6281c152e5cb6f7b95a391

Patch Set 1 #

Total comments: 6

Patch Set 2 : Adjust answer line size and position. #

Total comments: 5

Patch Set 3 : Respond to comments. #

Patch Set 4 : Remove padding. #

Patch Set 5 : Merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -11 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_result_view.h View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 3 4 6 chunks +36 lines, -10 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
Justin Donnelly
Friendly ping.
3 years, 10 months ago (2017-01-31 15:22:00 UTC) #7
Peter Kasting
On 2017/01/31 15:22:00, Justin Donnelly wrote: > Friendly ping. I think there was no preceding ...
3 years, 10 months ago (2017-01-31 21:39:45 UTC) #8
Justin Donnelly
Yeah, sorry about that. User error. :) On Tue, Jan 31, 2017 at 1:39 PM, ...
3 years, 10 months ago (2017-01-31 21:42:21 UTC) #9
Peter Kasting
LGTM https://codereview.chromium.org/2654163005/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/2654163005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode128 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:128: return {ui::ResourceBundle::LargeFont, LargeFont? Shouldn't this be BaseFont? https://codereview.chromium.org/2654163005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode705 ...
3 years, 10 months ago (2017-02-01 02:00:58 UTC) #10
Justin Donnelly
https://codereview.chromium.org/2654163005/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/2654163005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode128 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:128: return {ui::ResourceBundle::LargeFont, On 2017/02/01 02:00:58, Peter Kasting wrote: > ...
3 years, 10 months ago (2017-02-01 16:58:45 UTC) #17
Peter Kasting
https://codereview.chromium.org/2654163005/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/2654163005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode128 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:128: return {ui::ResourceBundle::LargeFont, On 2017/02/01 16:58:45, Justin Donnelly wrote: > ...
3 years, 10 months ago (2017-02-01 19:37:21 UTC) #20
Justin Donnelly
https://codereview.chromium.org/2654163005/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/2654163005/diff/1/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode128 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:128: return {ui::ResourceBundle::LargeFont, On 2017/02/01 19:37:21, Peter Kasting wrote: > ...
3 years, 10 months ago (2017-02-01 20:44:15 UTC) #21
Peter Kasting
https://codereview.chromium.org/2654163005/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/2654163005/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode360 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:360: const int kTextVerticalAdjustment = 1; On 2017/02/01 20:44:15, Justin ...
3 years, 10 months ago (2017-02-01 20:50:00 UTC) #22
Justin Donnelly
On 2017/02/01 20:50:00, Peter Kasting wrote: > https://codereview.chromium.org/2654163005/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc > File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): > > https://codereview.chromium.org/2654163005/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode360 ...
3 years, 10 months ago (2017-02-01 22:40:57 UTC) #23
Peter Kasting
On 2017/02/01 22:40:57, Justin Donnelly wrote: > On 2017/02/01 20:50:00, Peter Kasting wrote: > > ...
3 years, 10 months ago (2017-02-01 22:46:55 UTC) #24
Justin Donnelly
On 2017/02/01 22:46:55, Peter Kasting wrote: > If you're planning to merge back, I'd say ...
3 years, 10 months ago (2017-02-01 23:03:12 UTC) #27
Peter Kasting
On 2017/02/01 23:03:12, Justin Donnelly wrote: > On 2017/02/01 22:46:55, Peter Kasting wrote: > > ...
3 years, 10 months ago (2017-02-01 23:09:54 UTC) #28
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/2654163005/100001
3 years, 10 months ago (2017-02-02 01:15:28 UTC) #32
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/omnibox/omnibox_result_view.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-02 01:22:28 UTC) #34
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/2654163005/120001
3 years, 10 months ago (2017-02-02 02:24:36 UTC) #37
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 05:50:37 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/5fdae6fa2582b407ad6281c152e5...

Powered by Google App Engine
This is Rietveld 408576698