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

Issue 795933009: [AiS] for desktop, two lines and font sytles (Closed)

Created:
5 years, 11 months ago by dschuyler
Modified:
5 years, 9 months ago
CC:
chromium-reviews, tfarina, James Su, groby-ooo-7-16, Justin Donnelly
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[AiS] This adds the remaining bits of the Answers in Suggest for Desktop + Color fonts for AiS BUG=455418 Committed: https://crrev.com/4baa58f7573b1be55872bb30ece372c617915544 Cr-Commit-Position: refs/heads/master@{#321664}

Patch Set 1 : narrower suggest window and larger calculator results #

Patch Set 2 : went back to wider search results; has icon; some answer style #

Patch Set 3 : Added flags for two vs one line AiS and flag for larger fonts in AiS #

Patch Set 4 : test build #

Patch Set 5 : test #

Patch Set 6 : merged in new code #

Patch Set 7 : updated histograms #

Patch Set 8 : merged from icon_wip, si2, and calculator #

Patch Set 9 : fix for ios unit tests #

Patch Set 10 : Merge from master, icon_wip, si3, calculator #

Patch Set 11 : Merge by hand from master #

Patch Set 12 : Restore baseline styles #

Patch Set 13 : Merge from related branches #

Patch Set 14 : Removing extra options for two line and big fonts #

Patch Set 15 : Clean up of old two line and big font flags #

Patch Set 16 : Cleaning up #

Patch Set 17 : fix for outside vertical padding #

Patch Set 18 : Positive/Negative font change #

Total comments: 45

Patch Set 19 : Colors from the UI theme #

Total comments: 1

Patch Set 20 : Increase vertical spacing in suggestions #

Total comments: 14

Patch Set 21 : Added GetAnswerLineHeight #

Patch Set 22 : Changed answers colors to results table colors #

Patch Set 23 : Renamed some results table vars; cl format #

Total comments: 20

Patch Set 24 : added hovered colors; adding windows positive/negative colors #

Patch Set 25 : added RenderText AppendText #

Total comments: 2

Patch Set 26 : Using RGB macros for GTK colors #

Total comments: 28

Patch Set 27 : Merge from master #

Patch Set 28 : Review updates #

Total comments: 6

Patch Set 29 : Added state colors struct #

Patch Set 30 : Merge from master #

Total comments: 6

Patch Set 31 : Made state colors an array #

Patch Set 32 : Using SK color macros #

Total comments: 8

Patch Set 33 : Removed old function declaration; fixed reference to color macros #

Total comments: 48

Patch Set 34 : Cleaned up includes; added DoAppendText #

Patch Set 35 : Removed braces #

Total comments: 3

Patch Set 36 : Merged from master #

Patch Set 37 : Merge from master #

Patch Set 38 : merge from master #

Patch Set 39 : Removed unnecessary include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -7 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_result_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 5 chunks +117 lines, -7 lines 0 comments Download

Messages

Total messages: 64 (15 generated)
dschuyler
Hi Peter, Please review this for commit. (This will also supersede the CL about adding ...
5 years, 9 months ago (2015-03-12 01:19:37 UTC) #2
Peter Kasting
https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc File chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc (right): https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc#newcode389 chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc:389: // In the current mockup, the cell heights for ...
5 years, 9 months ago (2015-03-12 09:46:00 UTC) #3
Justin Donnelly
https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode209 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:209: kColorPurple, On 2015/03/12 09:46:00, Peter Kasting wrote: > While ...
5 years, 9 months ago (2015-03-12 14:34:18 UTC) #5
Peter Kasting
https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode423 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:423: answer_icon_size, answer_icon_size, true); On 2015/03/12 14:34:18, Justin Donnelly wrote: ...
5 years, 9 months ago (2015-03-12 15:55:44 UTC) #6
dschuyler
Hi Peter, For this patch, please let me know if the method of getting the ...
5 years, 9 months ago (2015-03-13 06:01:24 UTC) #7
Justin Donnelly
https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode725 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:725: const base::string16 spacer(base::UTF8ToUTF16(" ")); On 2015/03/12 15:55:44, Peter Kasting ...
5 years, 9 months ago (2015-03-13 21:08:33 UTC) #8
dschuyler
https://codereview.chromium.org/795933009/diff/380001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/380001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode126 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:126: NativeTheme::kColorId_AnswerNormalText, On 2015/03/13 21:08:33, Justin Donnelly wrote: > You've ...
5 years, 9 months ago (2015-03-13 21:48:23 UTC) #10
dschuyler
This version has the color names for positive and negative text blended in better with ...
5 years, 9 months ago (2015-03-13 22:53:18 UTC) #11
dschuyler
Reviewers: Adding sadrul for src/ui/native_theme/... files. Adding estade for src/chorme/broaswer/ui/libgtk2ui/... file.
5 years, 9 months ago (2015-03-13 23:23:06 UTC) #13
Peter Kasting
You need to add a native_theme_win.cc section for your new colors that behaves like the ...
5 years, 9 months ago (2015-03-14 01:54:14 UTC) #14
Peter Kasting
A few other comments https://codereview.chromium.org/795933009/diff/430001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/430001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode146 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:146: NativeTheme::kColorId_ResultsTableNegativeText, Your original CL used ...
5 years, 9 months ago (2015-03-14 02:12:25 UTC) #15
dschuyler
I added append text and did more with the hovered text. https://codereview.chromium.org/795933009/diff/340001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): ...
5 years, 9 months ago (2015-03-16 21:49:09 UTC) #16
Evan Stade
https://codereview.chromium.org/795933009/diff/460001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/460001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode383 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:383: GdkColor color = {0}; use GDK_COLOR_RGB here and elsewhere. ...
5 years, 9 months ago (2015-03-16 23:39:27 UTC) #17
dschuyler
Hi Evan, this version is now using the RGB macro for the color. https://codereview.chromium.org/795933009/diff/460001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File ...
5 years, 9 months ago (2015-03-17 01:19:28 UTC) #19
Evan Stade
libgtk lgtm for some reason you removed the other reviewers
5 years, 9 months ago (2015-03-17 01:37:39 UTC) #20
dschuyler
Hmm, in my head I was sending that patch to just Evan for review. I ...
5 years, 9 months ago (2015-03-17 01:44:28 UTC) #22
Peter Kasting
https://codereview.chromium.org/795933009/diff/480001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/480001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode26 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:26: const GdkColor kPositiveTextColor = GDK_COLOR_RGB(0x00, 0xff, 0x00); Nit: kURLTextColor ...
5 years, 9 months ago (2015-03-17 22:01:45 UTC) #23
dschuyler
Hi Peter, there are a couple places I've made a TODO comment rather than try ...
5 years, 9 months ago (2015-03-17 22:57:56 UTC) #24
Peter Kasting
https://codereview.chromium.org/795933009/diff/480001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/480001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode756 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:756: .GetHeight(); On 2015/03/17 22:57:55, dschuyler wrote: > On 2015/03/17 ...
5 years, 9 months ago (2015-03-17 23:18:06 UTC) #25
dschuyler
https://codereview.chromium.org/795933009/diff/480001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/480001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode756 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:756: .GetHeight(); On 2015/03/17 23:18:06, Peter Kasting wrote: > On ...
5 years, 9 months ago (2015-03-18 00:13:36 UTC) #26
Peter Kasting
https://codereview.chromium.org/795933009/diff/560001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/560001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode218 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:218: const GdkColor kNegativeTextColor = GDK_COLOR_RGB(0xff, 0x00, 0x00); I didn't ...
5 years, 9 months ago (2015-03-18 00:36:19 UTC) #27
dschuyler
https://codereview.chromium.org/795933009/diff/560001/chrome/browser/ui/views/omnibox/omnibox_result_view.h File chrome/browser/ui/views/omnibox/omnibox_result_view.h (right): https://codereview.chromium.org/795933009/diff/560001/chrome/browser/ui/views/omnibox/omnibox_result_view.h#newcode52 chrome/browser/ui/views/omnibox/omnibox_result_view.h:52: struct StateColors { On 2015/03/18 00:36:19, Peter Kasting wrote: ...
5 years, 9 months ago (2015-03-18 01:02:36 UTC) #28
dschuyler
https://codereview.chromium.org/795933009/diff/560001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/560001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode218 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:218: const GdkColor kNegativeTextColor = GDK_COLOR_RGB(0xff, 0x00, 0x00); On 2015/03/18 ...
5 years, 9 months ago (2015-03-18 01:19:35 UTC) #29
Peter Kasting
LGTM https://codereview.chromium.org/795933009/diff/600001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/600001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode97 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:97: GdkColor GetReadableColor(const SkColor& color, const GdkColor& background) { ...
5 years, 9 months ago (2015-03-18 02:10:36 UTC) #30
sadrul
+msw@ for RenderText changes.
5 years, 9 months ago (2015-03-18 02:22:22 UTC) #32
dschuyler
https://codereview.chromium.org/795933009/diff/600001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/600001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode97 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:97: GdkColor GetReadableColor(const SkColor& color, const GdkColor& background) { On ...
5 years, 9 months ago (2015-03-18 03:59:52 UTC) #33
dschuyler
On 2015/03/18 03:59:52, dschuyler wrote: > https://codereview.chromium.org/795933009/diff/600001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc > File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): > > https://codereview.chromium.org/795933009/diff/600001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode97 > ...
5 years, 9 months ago (2015-03-18 04:01:55 UTC) #34
msw
https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode382 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:382: case kColorId_ResultsTablePositiveText: { Colors have different meanings in other ...
5 years, 9 months ago (2015-03-18 18:03:37 UTC) #36
msw
Also, can we get some screenshots?
5 years, 9 months ago (2015-03-18 18:03:59 UTC) #37
dschuyler
Review response for msw. https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode382 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:382: case kColorId_ResultsTablePositiveText: { On 2015/03/18 ...
5 years, 9 months ago (2015-03-18 19:16:49 UTC) #38
msw
not lgtm with the discrepancy in color behaviors... https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode382 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:382: case ...
5 years, 9 months ago (2015-03-18 20:20:17 UTC) #39
Justin Donnelly
https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode382 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:382: case kColorId_ResultsTablePositiveText: { On 2015/03/18 20:20:16, msw wrote: > ...
5 years, 9 months ago (2015-03-18 20:42:57 UTC) #41
msw
https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode767 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:767: gfx::RenderText* render_text, On 2015/03/18 20:42:57, Justin Donnelly wrote: > ...
5 years, 9 months ago (2015-03-18 20:51:39 UTC) #42
Justin Donnelly
On 2015/03/18 20:51:39, msw wrote: > https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc > File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): > > https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode767 > ...
5 years, 9 months ago (2015-03-18 21:43:28 UTC) #43
msw
On 2015/03/18 21:43:28, Justin Donnelly wrote: > On 2015/03/18 20:51:39, msw wrote: > > > ...
5 years, 9 months ago (2015-03-18 22:04:09 UTC) #44
Peter Kasting
A bunch of responses to Mike's comments below. https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc File chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc#newcode383 chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc:383: return ...
5 years, 9 months ago (2015-03-18 22:19:34 UTC) #45
dschuyler
In an effort to simplify, I've began moving pieces this CL into separate change lists. ...
5 years, 9 months ago (2015-03-18 22:20:16 UTC) #46
Justin Donnelly
https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode767 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:767: gfx::RenderText* render_text, On 2015/03/18 22:19:33, Peter Kasting wrote: > ...
5 years, 9 months ago (2015-03-19 15:05:05 UTC) #47
Peter Kasting
https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/795933009/diff/620001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode767 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:767: gfx::RenderText* render_text, On 2015/03/19 15:05:05, Justin Donnelly wrote: > ...
5 years, 9 months ago (2015-03-19 20:11:22 UTC) #48
msw
https://codereview.chromium.org/795933009/diff/620001/ui/native_theme/native_theme_win.cc File ui/native_theme/native_theme_win.cc (right): https://codereview.chromium.org/795933009/diff/620001/ui/native_theme/native_theme_win.cc#newcode613 ui/native_theme/native_theme_win.cc:613: return color_utils::GetReadableColor( On 2015/03/18 22:19:33, Peter Kasting wrote: > ...
5 years, 9 months ago (2015-03-19 21:19:56 UTC) #49
dschuyler
Hi Peter, This is now down to the color styling for answers. Does it look ...
5 years, 9 months ago (2015-03-20 18:55:50 UTC) #51
Peter Kasting
LGTM
5 years, 9 months ago (2015-03-20 19:15:28 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795933009/740001
5 years, 9 months ago (2015-03-20 19:27:38 UTC) #55
commit-bot: I haz the power
A disapproval has been posted by following reviewers: msw@chromium.org. Please make sure to get positive ...
5 years, 9 months ago (2015-03-20 19:27:48 UTC) #57
Peter Kasting
Mike, I think we resolved the stuff you objected to separately, can you sign off ...
5 years, 9 months ago (2015-03-20 19:29:32 UTC) #58
msw
lgtm
5 years, 9 months ago (2015-03-20 22:36:07 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795933009/740001
5 years, 9 months ago (2015-03-20 23:46:43 UTC) #62
commit-bot: I haz the power
Committed patchset #39 (id:740001)
5 years, 9 months ago (2015-03-21 00:22:49 UTC) #63
commit-bot: I haz the power
5 years, 9 months ago (2015-03-21 00:23:40 UTC) #64
Message was sent while issue was closed.
Patchset 39 (id:??) landed as
https://crrev.com/4baa58f7573b1be55872bb30ece372c617915544
Cr-Commit-Position: refs/heads/master@{#321664}

Powered by Google App Engine
This is Rietveld 408576698