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

Issue 194056: Fix text and selection's save/restore issue of omnibox when displaying tempor... (Closed)

Created:
11 years, 3 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, Ben Goodger (Google)
Visibility:
Public.

Description

Fix text and selection's save/restore issue of omnibox when displaying temporary text. This CL fixes issue 21362: The original text and selection can't be reverted correctly when pressing escape key in omnibox if currently selected line is not the default match. BUG=21362 : The original text and selection can't be reverted correctly when pressing escape key in omnibox if currently selected line is not the default match. TEST=Input something in omnibox and make sure inline autocomplete is triggered, then press down to select another line, then press escape to revert to the default match and see of the original text and selection was reverted correctly.

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -39 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 chunk +4 lines, -0 lines 1 comment Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc View 1 5 chunks +18 lines, -27 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_mac.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_mac.mm View 1 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_model.cc View 1 1 chunk +14 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
James Su
Please help review this CL. Regards James Su
11 years, 3 months ago (2009-09-09 14:13:08 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/194056/diff/1/4 File chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc (right): http://codereview.chromium.org/194056/diff/1/4#newcode341 Line 341: void AutocompleteEditViewGtk::SetTextAndSelectedRange(const std::wstring& text, Nit: Please move ...
11 years, 3 months ago (2009-09-09 17:36:51 UTC) #2
James Su
CL updated. Please help check if the TODO comment is ok. Regards James Su http://codereview.chromium.org/194056/diff/1/4 ...
11 years, 3 months ago (2009-09-10 01:57:03 UTC) #3
Peter Kasting
11 years, 3 months ago (2009-09-10 19:30:27 UTC) #4
LGTM

http://codereview.chromium.org/194056/diff/5001/6001
File chrome/browser/autocomplete/autocomplete_edit.cc (right):

http://codereview.chromium.org/194056/diff/5001/6001#newcode459
Line 459: // TODO(suzhe): It shouldn't affect inline autocomplete text at all.
Nit: The substance here is fine, the grammar is a little odd.  How about:

"TODO: Instead of messing with |inline_autocomplete_text_| here, we should
probably do it inside Observe(), and save/restore it around changes to the
temporary text.  This will let us remove knowledge of inline autocompletions
from the popup code."

Powered by Google App Engine
This is Rietveld 408576698