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

Issue 98463012: Infinite Suggest for mac (Closed)

Created:
7 years ago by Anuj
Modified:
6 years, 9 months ago
CC:
chromium-reviews, James Su, David Black
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Infinite Suggest for mac The infinite suggestions are shown with a leading ellipsis suggesting the completion of the trailing part of the query. Type "try google instant s" on google.com on web to see it in action. If the window width is shorter, the suggestions are moved back such that - the ellipsis are vertically aligned for all suggestions. - the longest suggestion is visible If the window width is shorter than the longest suggestion, all suggestions are left aligned, while right end is clipped as appropriate. LTR in RTL and RTL in LTR and Mixed LTR-RTL does not look good, but is acceptable. BUG=327833

Patch Set 1 #

Patch Set 2 : Add Infinite Suggest for Mac #

Total comments: 10

Patch Set 3 : Addressed comments, updated bug #

Total comments: 6

Patch Set 4 : Addressed reviewer comments #

Total comments: 21

Patch Set 5 : Addressed comments, bit rewrite #

Patch Set 6 : Addressed comments, bit rewrite #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -19 lines) Patch
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 2 chunks +15 lines, -7 lines 3 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm View 1 2 3 4 6 chunks +47 lines, -2 lines 2 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 2 3 4 3 chunks +74 lines, -10 lines 7 comments Download

Messages

Total messages: 37 (0 generated)
Anuj
Mark, please take a look at search_provider. Scott, please let me know if you need ...
7 years ago (2013-12-12 02:27:59 UTC) #1
Mark P
On 2013/12/12 02:27:59, Anuj wrote: > Mark, please take a look at search_provider. > > ...
7 years ago (2013-12-12 18:46:23 UTC) #2
Scott Hess - ex-Googler
These comments are high-level, I'm still digesting the various offset calculations, but figured since Mark ...
7 years ago (2013-12-12 19:11:15 UTC) #3
Anuj
- Will address Mark's concerns shortly. - Replied to your "big" comment to get some ...
7 years ago (2013-12-12 19:40:54 UTC) #4
Anuj
I am working on a screenshot where a URL suggestion mixes up with infinite suggestion. ...
7 years ago (2013-12-12 23:56:21 UTC) #5
Anuj
I have added as many screenshots as feasible. Please elaborate on the need for URL ...
7 years ago (2013-12-13 01:55:58 UTC) #6
Mark P
Comments below on the autocomplete/... As you can see from the bug comments, I'm also ...
7 years ago (2013-12-13 16:58:01 UTC) #7
Anuj
I have updated the screenshots on the bug. I have shown the behavior to David ...
7 years ago (2013-12-13 18:57:49 UTC) #8
Anuj
Ping! I need this for M33.
7 years ago (2013-12-13 23:45:35 UTC) #9
Scott Hess - ex-Googler
Apologies - I had done a bunch of drafts, then someone distributed me in series, ...
7 years ago (2013-12-14 00:40:56 UTC) #10
Mark P
https://codereview.chromium.org/98463012/diff/60001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/98463012/diff/60001/chrome/browser/autocomplete/search_provider.cc#newcode117 chrome/browser/autocomplete/search_provider.cc:117: input_text.substr(prefix.length()) : input_text; On 2013/12/13 18:57:49, Anuj wrote: > ...
7 years ago (2013-12-14 00:49:53 UTC) #11
Mark P
Reading the changelist description again, how do you prevent RTL suggestions from doing something that ...
7 years ago (2013-12-14 00:54:18 UTC) #12
Anuj
Mixed LTR-RTL gets ugly, and the effort needed to handle that is not justified at ...
7 years ago (2013-12-14 02:32:11 UTC) #13
Mark P
On Fri, Dec 13, 2013 at 6:32 PM, <skanuj@chromium.org> wrote: > Mixed LTR-RTL gets ugly, ...
7 years ago (2013-12-14 15:49:32 UTC) #14
Anuj
I have changed the implementation. The offset calculation is now done by the OmniboxPopupCell based ...
7 years ago (2013-12-16 02:53:18 UTC) #15
Anuj
I forgot to mention - I can not access the link you provided https://chromium.googlecode.com/issues/attachment?aid=-3017271539696330777&name=rtlellision.png&token=ra9nNY5tJ5Sp1FTECMsNQVhjwAU%253A1387035876100&inline=1
7 years ago (2013-12-16 03:14:02 UTC) #16
Scott Hess - ex-Googler
Did you upload the latest change? I see cases where you say "Done" but I'm ...
7 years ago (2013-12-16 20:26:12 UTC) #17
Anuj
Sorry. Looks like I missed uploading the patchset. Uploaded now.
7 years ago (2013-12-16 20:37:27 UTC) #18
Scott Hess - ex-Googler
> error: old chunk mismatch Sigh. You're going to have to give it another go, ...
7 years ago (2013-12-16 21:24:14 UTC) #19
Anuj
Uploaded patch again. The diffs look fine now. One note: The existing implementation left the ...
7 years ago (2013-12-16 21:34:15 UTC) #20
Scott Hess - ex-Googler
https://codereview.chromium.org/98463012/diff/120001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/98463012/diff/120001/chrome/browser/autocomplete/search_provider.cc#newcode118 chrome/browser/autocomplete/search_provider.cc:118: contents_index, query_length, match_contents) == 0)) {} isn't optional if ...
7 years ago (2013-12-16 22:22:05 UTC) #21
Scott Hess - ex-Googler
Also, I am not really confident on the RTL stuff. It's not so much the ...
7 years ago (2013-12-16 22:25:43 UTC) #22
jeremy
Thanks for looping me in Scott! It's important to make the distinction between an RTL-language ...
7 years ago (2013-12-17 12:37:53 UTC) #23
jeremy
Also fine adding RTL support in a separate CL as long as this CL doesn't ...
7 years ago (2013-12-17 12:39:27 UTC) #24
Anuj
I have responded to your earlier comment to explain why I prefer my approach. https://codereview.chromium.org/98463012/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm ...
7 years ago (2013-12-19 05:36:12 UTC) #25
Anuj
On 2013/12/16 22:25:43, shess wrote: > Also, I am not really confident on the RTL ...
7 years ago (2013-12-19 05:39:46 UTC) #26
Anuj
On 2013/12/17 12:37:53, jeremy wrote: > Thanks for looping me in Scott! > > It's ...
7 years ago (2013-12-19 05:44:40 UTC) #27
Scott Hess - ex-Googler
On 2013/12/19 05:39:46, Anuj wrote: > On 2013/12/16 22:25:43, shess wrote: > > Also, I ...
7 years ago (2013-12-19 19:21:31 UTC) #28
Scott Hess - ex-Googler
These are comments-on-comments, I figured having them mixed with actual code-review comments would probably confuse ...
7 years ago (2013-12-19 20:12:50 UTC) #29
Scott Hess - ex-Googler
Hmm, looks like there's nothing new to review? Let me know. I'll be around over ...
7 years ago (2013-12-19 20:15:02 UTC) #30
Anuj
On 2013/12/19 19:21:31, shess wrote: > On 2013/12/19 05:39:46, Anuj wrote: > > On 2013/12/16 ...
7 years ago (2013-12-19 21:37:53 UTC) #31
Anuj
Looks like the email sending part of the code review server went haywire.
7 years ago (2013-12-19 21:43:46 UTC) #32
Scott Hess - ex-Googler
On 2013/12/19 21:37:53, Anuj wrote: > On 2013/12/19 19:21:31, shess wrote: > > On 2013/12/19 ...
7 years ago (2013-12-19 21:47:13 UTC) #33
Anuj
On 2013/12/19 21:47:13, shess wrote: > On 2013/12/19 21:37:53, Anuj wrote: > > On 2013/12/19 ...
7 years ago (2013-12-19 22:11:39 UTC) #34
jeremy
Hi Anuj, Thanks for posting screenshots on the bug, but as I'm sure you know ...
6 years, 12 months ago (2013-12-29 10:08:40 UTC) #35
Mark P
Hi Anuj, I know by now you've done a lot of BiDi stuff, which were ...
6 years, 9 months ago (2014-03-13 17:29:51 UTC) #36
Anuj Sharma
6 years, 9 months ago (2014-03-13 17:48:03 UTC) #37
This code review is now obsolete. I will send a replacement CL soon.
On Mar 13, 2014 10:29 AM, <mpearson@chromium.org> wrote:

> Hi Anuj,
>
> I know by now you've done a lot of BiDi stuff, which were the main
> concerns about this change.
>
> What's the current status of infinite suggest for Mac?  If this code
> still needed / relevant or has it been made obsolete by more recent
> changes?
>
> --mark
>
> On 2013/12/29 10:08:40, jeremy wrote:
>
>> Hi Anuj,
>>
>
>  Thanks for posting screenshots on the bug, but as I'm sure you know this
>> doesn't really provide a good picture of how the feature is supposed to
>> work.  I've set up a VC next Monday, lets discuss further there.
>>
>
>  Sounds like we're on the same page, but at the risk of stating the obvious
>> - here again are the points I wanted to make:
>> * Chrome has tons of RTL-language users - we can not regress Omnibox
>> behavior for them.
>> * Entering RTL text in an LTR UI and vice versa is very common, we cannot
>> regress this either.  You are right that the behavior in these cases can
>> be
>> really tricky, but this is exactly what we need to nail down :)
>> * Not getting things perfect in the first CL is absolutely fine just as
>> long as we have a concrete plan going forward.
>> * Experience has shown that the earlier Bidi considerations are taken care
>> of, the easier it is to implement them.  Delaying decisions about Bidi
>> support or stating that "someone should take care of this later" isn't a
>> good idea.
>>
>
>  Absolutely don't want to slow you down, as long as we have a plan for BiDi
>> support going forward and don't provide a bad experience for BiDi-language
>> users I'm fine with this CL.
>>
>
>
>  On Fri, Dec 20, 2013 at 12:11 AM, <mailto:skanuj@chromium.org> wrote:
>>
>
>  > On 2013/12/19 21:47:13, shess wrote:
>> >
>> >> On 2013/12/19 21:37:53, Anuj wrote:
>> >> > On 2013/12/19 19:21:31, shess wrote:
>> >> > > On 2013/12/19 05:39:46, Anuj wrote:
>> >> > > > On 2013/12/16 22:25:43, shess wrote:
>> >> > > > > Also, I am not really confident on the RTL stuff.  It's not so
>> >> much
>> >>
>> > the
>> >
>> >> > "How
>> >> > > > to
>> >> > > > > accomplish something engineering-wise" as "I don't know if
>> it's an
>> >> > explicit
>> >> > > > > non-goal, given RTL support on OSX in general."  Looping in
>> >> Jeremy for
>> >> > that.
>> >> > >
>> >> > > > > He's in Israel, so it's possible/likely that his responses
>> will be
>> >> > unsynced
>> >> > > > with
>> >> > > > > us.  He might be able to suggest someone closer timezone-wise
>> if
>> >> he
>> >> thinks
>> >> > > > it's
>> >> > > > > worthwhile to go forward but will need changes.
>> >> > > >
>> >> > > > I don't think we want to prevent RTL support. If something works
>> >> better
>> >> than
>> >> > > > before for RTL, what is the harm/concern? It is unlikely that it
>> >> will
>> >> become
>> >> > a
>> >> > > > full-fledged effort to improve RTL support anytime soon. So I
>> think
>> >> > > incremental
>> >> > > > changes are good.
>> >> > >
>> >> > > The omnibox and the popup are designed to go together.  Adding RTL
>> >> support
>> >> in
>> >> > > one and not the other could be weird.  For instance, if the omnibox
>> >> text
>> >>
>> > is
>> >
>> >> > > left-aligned but the popup text is right-aligned, you cannot scan
>> down
>> >>
>> > from
>> >
>> >> > > omnibox to popup (think in terms of windows on a widescreen monitor
>> >> to see
>> >> why
>> >> > > that might matter).
>> >> >
>> >> > Noted. Please take a look at screenshot. The issues you describe are
>> not
>> >> > observed.
>> >>
>> >
>> >  Which screenshot?  The bug has like a dozen from different platforms,
>> and
>> >>
>> > AFAICT
>> >
>> >> the only Chrome/OSX one which might be relevant (comment #17) has the
>> RTL
>> >> text
>> >> left-justified.  The FlipVertical() change should right-justify them,
>> >> unless I
>> >> misunderstand what's going on, so it will be more like the Safari
>> >> screenshot
>> >> (comment #32).
>> >>
>> >
>> > See screenshot #16 for RTL in RTL UI.
>> > Screenshot #17 corresponds to RTL in LTR UI, a use-case for which we do
>> > not have
>> > a well-defined behavior.
>> >
>> >
>> >  > > I'm not saying "No", I'm just saying that it's not clear that
>> >> half-done
>> >>
>> > RTL
>> >
>> >> > > support with no specific plans to finish it is better than no RTL
>> >> support.
>> >> >
>> >> > If you are not saying "Yes" or "No", I am not sure what to do to make
>> >> this
>> >> > change better.
>> >> > I have uploaded a screenshot of RTL in RTL for Safari.
>> >> > I think my change (flipping search icon to RHS) definitely makes the
>> >>
>> > resultant
>> >
>> >> > UI look better.
>> >> >
>> >> > Another change will be needed in LocationBar (switch left and right)
>> >> >
>> >>
>> >
>> > https://code.google.com/p/chromium/codesearch#chromium/
>> > src/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm&l=388
>> >
>> >> > I don't think any other change is needed, given Safari doesn't flip
>> >>
>> > navigation
>> >
>> >> > buttons in RTL UI.
>> >>
>> >
>> >  We aren't a Safari clone.  I would prefer the final thing to look more
>> >> like
>> >>
>> > the
>> >
>> >> Windows screenshot in comment #19 rather than attempting to emulate
>> >> Safari,
>> >> unless someone wants to argue on the merits of that layout.
>> >>
>> >
>> > I was offering a plan to bring location-bar and omnibox-dropdown to a
>> > state of
>> > consistent RTL support.
>> > I cited Safari because I think platform conventions matter. None of
>> Safari,
>> > TextEdit or Preview switch controls from LHS to RHS in RTL UI.
>> > So I think the navigation controls don't need to be rearranged, but that
>> > goes
>> > beyond the scope for me as of now.
>> >
>> >
>> >  I'm not saying yes-or-no because I'm not a RTL user.  Jeremy seemed
>> happy
>> >> with
>> >> partial progress, so I'm fine with partial progress if he's fine with
>> it,
>> >> so
>> >>
>> > we
>> >
>> >> probably don't need to further debate it.
>> >>
>> >
>> > Cool. So we agree that the current behavior of this CL is satisfactory.
>> >
>> >
>> > https://codereview.chromium.org/98463012/
>> >
>>
>
>  To unsubscribe from this group and stop receiving emails from it, send an
>>
> email
>
>> to mailto:chromium-reviews+unsubscribe@chromium.org.
>>
>
>
> https://codereview.chromium.org/98463012/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698