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

Issue 173462: Fix control key and paste behavior in Linux omnibox. (Closed)

Created:
11 years, 4 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Fix control key and paste behavior in Linux omnibox. BUG=12316 : Linux Omnibox, autocomplete on paste annoying. BUG=13096 : Support desired_tld in Linux omnibox BUG=20166 : Linux omnibox control key behavior is incorrect TEST=Select all text in omnibox and paste something into omnibox by either ctrl-v, paste item in context menu or middle click, to see if inline autocomplete is not activated. TEST=Input something in omnibox, eg. "goog", make sure the inline autocomplete is activated, then press ctrl key to see if the inline autocomplete is still there. TEST=Input something in omnibox, eg. "cnn", press ctrl-Enter to see if www.cnn.com is opened. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24705

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -6 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.h View 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 2 3 11 chunks +42 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
James Su
CL to fix control key behavior in Linux omnibox. Regards James Su
11 years, 4 months ago (2009-08-26 06:11:22 UTC) #1
James Su
Hi, I updated this CL to include the fix of issue 12316: Linux Omnibox, autocomplete ...
11 years, 4 months ago (2009-08-26 13:36:16 UTC) #2
Dean McNamee
It's hard to review a single CL that does a bunch of unrelated things. In ...
11 years, 4 months ago (2009-08-26 15:52:16 UTC) #3
James Su
Hi, Sorry for mixing two fixes into one CL. I thought these were two trivial ...
11 years, 3 months ago (2009-08-27 01:19:40 UTC) #4
Evan Stade
On Wed, Aug 26, 2009 at 6:19 PM, <suzhe@chromium.org> wrote: > Hi, > =A0Sorry for ...
11 years, 3 months ago (2009-08-27 01:27:40 UTC) #5
James Su
Seems it's time to switch to git. Is gcl ready for working with git? Regards ...
11 years, 3 months ago (2009-08-27 01:30:59 UTC) #6
Evan Stade
http://code.google.com/p/chromium/wiki/UsingGit -- Evan Stade On Wed, Aug 26, 2009 at 6:30 PM, <suzhe@chromium.org> wrote: > ...
11 years, 3 months ago (2009-08-27 01:33:39 UTC) #7
Dean McNamee
Can you please add a comment to IsSelectAll in the header, stating that it returns ...
11 years, 3 months ago (2009-08-27 10:25:11 UTC) #8
James Su
CL updated. An off-topic question: I just found that AutocompleteEditView (the interface) does not have ...
11 years, 3 months ago (2009-08-27 11:12:50 UTC) #9
Dean McNamee
LG I think we just use AutocompleteEditView as an interface (I don't think we delete ...
11 years, 3 months ago (2009-08-27 22:22:21 UTC) #10
James Su
11 years, 3 months ago (2009-08-28 00:36:12 UTC) #11
I checked the source code and you are right, AutocompleteEditView{Gtk|Win|Mac}
are not deleted through AutocompleteEditView.

Thanks
James Su

On 2009/08/27 22:22:21, Dean McNamee wrote:
> LG
> 
> I think we just use AutocompleteEditView as an interface (I don't
> think we delete through it), so we should be safe without a virtual
> destructor.  Would have to double check that though.
> 
> On Thu, Aug 27, 2009 at 4:12 AM,  <mailto:suzhe@chromium.org> wrote:
> > CL updated.
> >
> > An off-topic question: I just found that AutocompleteEditView (the
> > interface) does not have a virtual destructor, is it a problem?
> >
> > Regards
> > James Su
> >
> >
> > http://codereview.chromium.org/173462/diff/7/8
> > File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right):
> >
> > http://codereview.chromium.org/173462/diff/7/8#newcode400
> > Line 400: model_->StartAutocomplete(sel.cp_max < length && sel.cp_min <
> > length);
> > On 2009/08/27 10:25:11, Dean McNamee wrote:
> >>
> >> On 2009/08/27 01:19:40, James Su wrote:
> >> > This fixes the bug of control key behavior. Above comment states the
> >
> > purpose
> >>
> >> of
> >> > this piece of code clearly.
> >
> >> Just to make sure I understand. =A0Would this also be fixed by sorting
> >
> > cp_max and
> >>
> >> cp_min? =A0Or also
> >
> >> std::max(sel.cp_max, sel.cp_min) < GetTextLength ?
> >
> >
> >
> > This looks better, thanks.
> >
> > http://codereview.chromium.org/173462/diff/7/8#newcode762
> > Line 762: model_->OnSetFocus(modifiers & GDK_CONTROL_MASK);
> > On 2009/08/27 10:25:11, Dean McNamee wrote:
> >>
> >> Do you want to explicitly make this a boolean?
> >
> >> (...) !=3D 0
> >
> > Done.
> >
> > http://codereview.chromium.org/173462
> >

Powered by Google App Engine
This is Rietveld 408576698