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

Issue 1023993003: [AiS] Added option to put a space between answer values (Closed)

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

Description

[AiS] Added option to put a space between answer values The answers in suggest doesn't put a space between, for example + the degrees Fahrenheit and the day of the week + the stock price and the stock delta (+/- value) This CL puts a space between those values, which is more readable for the user. BUG= Committed: https://crrev.com/ea24fe817ef9eedb7a810dc0b9eb46fa66b5e059 Cr-Commit-Position: refs/heads/master@{#322071}

Patch Set 1 #

Patch Set 2 : changed change list parent #

Total comments: 2

Patch Set 3 : removed default param #

Total comments: 6

Patch Set 4 : Changed args for AppendAnswerText #

Total comments: 8

Patch Set 5 : Changes for review nits #

Patch Set 6 : Better range checking on GetTextStyle #

Total comments: 4

Patch Set 7 : Changes for review nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -15 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_result_view.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 3 4 5 6 3 chunks +16 lines, -13 lines 1 comment Download

Messages

Total messages: 22 (2 generated)
dschuyler
5 years, 9 months ago (2015-03-20 22:00:29 UTC) #2
Peter Kasting
How did Android deal with this? Is this an indicator that the designers here expected ...
5 years, 9 months ago (2015-03-20 22:21:36 UTC) #3
dschuyler
I've just created a bug, 469362 to track what *should* be done. In the short ...
5 years, 9 months ago (2015-03-20 23:56:43 UTC) #4
Peter Kasting
You didn't answer how Android dealt with this. On 2015/03/20 23:56:43, dschuyler wrote: > I've ...
5 years, 9 months ago (2015-03-21 00:03:24 UTC) #5
dschuyler
On 2015/03/21 00:03:24, Peter Kasting wrote: > You didn't answer how Android dealt with this. ...
5 years, 9 months ago (2015-03-21 00:26:24 UTC) #6
Peter Kasting
On 2015/03/21 00:26:24, dschuyler wrote: > I don't feel that the UI is fully nailed ...
5 years, 9 months ago (2015-03-21 01:15:49 UTC) #7
Justin Donnelly
On 2015/03/21 01:15:49, Peter Kasting wrote: > On 2015/03/21 00:26:24, dschuyler wrote: > > I ...
5 years, 9 months ago (2015-03-23 14:40:59 UTC) #8
dschuyler
On 2015/03/23 14:40:59, Justin Donnelly wrote: > On 2015/03/21 01:15:49, Peter Kasting wrote: > > ...
5 years, 9 months ago (2015-03-23 17:50:56 UTC) #9
Peter Kasting
My suggestion to do nothing was based on the assumption that we're not yet ready ...
5 years, 9 months ago (2015-03-23 20:19:21 UTC) #10
dschuyler
Even if it's other Googlers (whether or not it's external) I think the space makes ...
5 years, 9 months ago (2015-03-24 00:52:42 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/1023993003/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/1023993003/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode705 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:705: if (match_.answer->second_line().additional_text()) { Nit: Briefer, seems a bit ...
5 years, 9 months ago (2015-03-24 01:05:35 UTC) #12
dschuyler
https://codereview.chromium.org/1023993003/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/1023993003/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode705 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:705: if (match_.answer->second_line().additional_text()) { On 2015/03/24 01:05:35, Peter Kasting wrote: ...
5 years, 9 months ago (2015-03-24 01:26:47 UTC) #13
Peter Kasting
https://codereview.chromium.org/1023993003/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.h File chrome/browser/ui/views/omnibox/omnibox_result_view.h (right): https://codereview.chromium.org/1023993003/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.h#newcode163 chrome/browser/ui/views/omnibox/omnibox_result_view.h:163: void AppendAnswerText(const base::string16& text, int text_type); On 2015/03/24 01:26:47, ...
5 years, 9 months ago (2015-03-24 01:44:57 UTC) #14
dschuyler
Thanks again! https://codereview.chromium.org/1023993003/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.h File chrome/browser/ui/views/omnibox/omnibox_result_view.h (right): https://codereview.chromium.org/1023993003/diff/60001/chrome/browser/ui/views/omnibox/omnibox_result_view.h#newcode163 chrome/browser/ui/views/omnibox/omnibox_result_view.h:163: void AppendAnswerText(const base::string16& text, int text_type); On ...
5 years, 9 months ago (2015-03-24 02:20:10 UTC) #15
Peter Kasting
https://codereview.chromium.org/1023993003/diff/100001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/1023993003/diff/100001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode201 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:201: if (type < 1 || type > static_cast<int>(arraysize(kTextStyles))) Super ...
5 years, 9 months ago (2015-03-24 02:28:11 UTC) #16
dschuyler
https://codereview.chromium.org/1023993003/diff/100001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/1023993003/diff/100001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode201 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:201: if (type < 1 || type > static_cast<int>(arraysize(kTextStyles))) On ...
5 years, 9 months ago (2015-03-24 20:54:42 UTC) #17
Peter Kasting
LGTM https://codereview.chromium.org/1023993003/diff/120001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc File chrome/browser/ui/views/omnibox/omnibox_result_view.cc (right): https://codereview.chromium.org/1023993003/diff/120001/chrome/browser/ui/views/omnibox/omnibox_result_view.cc#newcode705 chrome/browser/ui/views/omnibox/omnibox_result_view.cc:705: const base::char16 space(' '); Nit: I personally like ...
5 years, 9 months ago (2015-03-24 20:55:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023993003/120001
5 years, 9 months ago (2015-03-24 20:57:22 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-24 21:04:54 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 21:06:07 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ea24fe817ef9eedb7a810dc0b9eb46fa66b5e059
Cr-Commit-Position: refs/heads/master@{#322071}

Powered by Google App Engine
This is Rietveld 408576698