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

Issue 165457: Fix regression caused by CL 16142... (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 regression caused by CL 16142 This CL fixes regression caused by CL 16142: Improve key event handling of AutocompleteEditViewGtk. BUG=19193 : omnibox blocks ctrl-* commands BUG=19199 : omnibox ignores history, automatically searchs TEST=Open chrome, move cursor into omnibox then press ctrl-t to see if a new tab is opened. TEST=Open chrome, input something in omnibox and make sure an url is matched and some text is highlighted in omnibox, then press Enter to see if the url is opened. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23388

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -11 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 2 3 3 chunks +118 lines, -11 lines 12 comments Download

Messages

Total messages: 17 (0 generated)
James Su
Hi, This is a CL to fix regression caused by my previous CL 16142: Improve ...
11 years, 4 months ago (2009-08-13 15:10:35 UTC) #1
Dean McNamee
Can you give me some more background on the problems? (And write them in the ...
11 years, 4 months ago (2009-08-13 15:34:23 UTC) #2
James Su
Hi, I updated the comment in HandleKeyPress() to explain this piece of complicated code. Hope ...
11 years, 4 months ago (2009-08-13 16:52:00 UTC) #3
Dean McNamee
Thanks for the additional comments, I now understand what we're doing. As for saving and ...
11 years, 4 months ago (2009-08-13 17:38:41 UTC) #4
Evan Stade
http://codereview.chromium.org/165457/diff/8/1003 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/165457/diff/8/1003#newcode554 Line 554: // So that if new_line_inserted_ is set to ...
11 years, 4 months ago (2009-08-13 18:26:17 UTC) #5
James Su
Hi, CL updated according to comments. Removing selection won't work, because the result will be ...
11 years, 4 months ago (2009-08-13 22:29:40 UTC) #6
Dean McNamee
http://codereview.chromium.org/165457/diff/12/1007 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/165457/diff/12/1007#newcode597 Line 597: tab_pressed = (tab_pressed && single_char_inserted_ == '\t'); This ...
11 years, 4 months ago (2009-08-13 22:40:11 UTC) #7
James Su
CL updated. Regards James Su http://codereview.chromium.org/165457/diff/12/1007 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/165457/diff/12/1007#newcode597 Line 597: tab_pressed = (tab_pressed ...
11 years, 4 months ago (2009-08-13 22:52:49 UTC) #8
Dean McNamee
ok after fixing the type of char_inserted_. Thanks http://codereview.chromium.org/165457/diff/1011/16 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (right): http://codereview.chromium.org/165457/diff/1011/16#newcode373 Line 373: ...
11 years, 4 months ago (2009-08-13 22:58:17 UTC) #9
James Su
Is it ok to submit this CL now? Regards James Su http://codereview.chromium.org/165457/diff/1011/16 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (right): ...
11 years, 4 months ago (2009-08-13 23:11:54 UTC) #10
Daniel Erat
This is really tricky, but if it's the only way to get it working, I'm ...
11 years, 4 months ago (2009-08-13 23:36:38 UTC) #11
James Su
Sorry that I just submitted this CL. Will create a new CL to make these ...
11 years, 4 months ago (2009-08-13 23:41:19 UTC) #12
use derat at chromium.org
No worries... If you just want to leave it as-is, I'm okay with making them ...
11 years, 4 months ago (2009-08-13 23:43:21 UTC) #13
James Su
Thanks a lot. It's ok to leave them to me, as I'm going to implement ...
11 years, 4 months ago (2009-08-13 23:47:16 UTC) #14
Hironori Bono
Personally, I'm very wondering why we need to make this file so complicated to solve ...
11 years, 4 months ago (2009-08-14 01:21:36 UTC) #15
Dean McNamee
I completely agree this code is too complicated. Any advice on how to solve that ...
11 years, 4 months ago (2009-08-14 01:25:56 UTC) #16
James Su
11 years, 4 months ago (2009-08-14 09:38:24 UTC) #17
How about we write our own edit view widget to get rid off GtkTextView
completely? Though the code would be longer, it won't be so tricky
like current code.

Regards
James SU

2009/8/14, Dean McNamee <deanm@chromium.org>:
> I completely agree this code is too complicated.  Any advice on how to
> solve that would be fantastic.
>
> Thanks
>
> On Thu, Aug 13, 2009 at 6:21 PM, <hbono@chromium.org> wrote:
>> Personally, I'm very wondering why we need to make this file so
>> complicated to solve a regression. (The code of Firefox is far simpler
>> than this.) To modify a phrase of Darin, "it is far easier to keep
>> simple code simple than to make complicated code simple." (Sorry Darin
>> for modifying your phrase without your permissions.)
>> For what it's worth, I'm afraid we may be moving on a wrong way and it
>> may be better to roll back whole this code before Dean added a call of
>> gtk_im_context_filter_keypress(), which caused the original
>> IME-compatibility problem fixed by James and find another way.
>>
>> Regards,
>>
>> Hironori Bono
>>
>> http://codereview.chromium.org/165457
>>
>

Powered by Google App Engine
This is Rietveld 408576698