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

Issue 8669: A fix for Issue 3156 in chromium: "OmniBox: NavSuggest doesn't work fine when... (Closed)

Created:
12 years, 1 month ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

A fix for Issue 3156 in chromium: "OmniBox: NavSuggest doesn't work fine when you select NavSuggest suggested item before finalizing IME."To investigate this issue today, a rich-edit control of Windows XP does not finish an ongoing composition before changing its text with a SetWindowText() call. (Thanks pkasting for colleting my corrupted comments.)To solve this issue, this change manually finishes an ongoing composition before calling the function. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4300

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit.cc View 2 3 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Hironori Bono
12 years, 1 month ago (2008-10-28 19:55:01 UTC) #1
Peter Kasting
http://codereview.chromium.org/8669/diff/1/2 File chrome/browser/autocomplete/autocomplete_popup.cc (right): http://codereview.chromium.org/8669/diff/1/2#newcode810 Line 810: // A rich-edit control of Windows XP doesn't ...
12 years, 1 month ago (2008-10-28 20:12:00 UTC) #2
Hironori Bono
Thank you for your quick response. My last change is embarrassing. On 2008/10/28 20:12:00, pkasting ...
12 years, 1 month ago (2008-10-28 21:39:06 UTC) #3
Peter Kasting
http://codereview.chromium.org/8669/diff/4/204 File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/8669/diff/4/204#newcode308 Line 308: view_->SetWindowText(L""); Do we need your fix here (which ...
12 years, 1 month ago (2008-10-28 22:42:36 UTC) #4
Hironori Bono
http://codereview.chromium.org/8669/diff/4/204 File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/8669/diff/4/204#newcode308 Line 308: view_->SetWindowText(L""); On 2008/10/28 22:42:37, pkasting wrote: > Do ...
12 years, 1 month ago (2008-10-29 18:09:05 UTC) #5
Peter Kasting
12 years, 1 month ago (2008-10-29 18:22:13 UTC) #6
LGTM with suggested comment fixes below.  Thanks!

http://codereview.chromium.org/8669/diff/7/207
File chrome/browser/autocomplete/autocomplete_edit.cc (right):

http://codereview.chromium.org/8669/diff/7/207#newcode308
Line 308: // We don't have to manually complete ongoing compositoin here because
Nit: How about this comment, for readability:

"NOTE: We don't need the IME composition hack in SetWindowTextAndCaretPos()
here, because any active IME composition will eat <tab> characters, preventing
the user from using tab-to-search until the composition is ended."

http://codereview.chromium.org/8669/diff/7/207#newcode1063
Line 1063: // We don't have to manually complete ongoing IME composition here
because
Nit: Similarly, I suggest:

"NOTE: We don't need the IME composition hack in SetWindowTextAndCaretPos()
here, because UpdatePopup() disables inline autocomplete when a composition is
in progress, thus preventing us from reaching this code."

Powered by Google App Engine
This is Rietveld 408576698