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

Issue 2754633002: Fix: Cursor missing in omnibox after entering a alphabet in NTP 'Search box' (Closed)

Created:
3 years, 9 months ago by sadrul
Modified:
3 years, 9 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/3029
Project:
chromium
Visibility:
Public.

Description

Fix: Cursor missing in omnibox after entering a alphabet in NTP 'Search box' After any alphabet is entered in 'Search box', Textfield::DoInsertChar is called and it first updates the cursor visibility by calling UpdateAfterChange then it calls OnAfterUserAction to update the textfield focus and which may change the cursor visibility. If the cursor visibility is changed in OnAfterUserAction, the text cursor will not being updated again. The previous CL (https://codereview.chromium.org/2728433002/) exposed this wrong order of updating. TEST=TextfieldTest.CursorVisibilityChangeAfterInserting BUG=698172 Review-Url: https://codereview.chromium.org/2729133005 Cr-Commit-Position: refs/heads/master@{#456444} (cherry picked from commit c57eaf40e82246d8acb9f58a350ef1a619cb19b1) Review-Url: https://codereview.chromium.org/2754633002 . Cr-Commit-Position: refs/branch-heads/3029@{#200} Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471} Committed: https://chromium.googlesource.com/chromium/src/+/ddae604aa75d462f6cfde9bed6744a2bc113bed2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -21 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 chunk +5 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 5 chunks +18 lines, -9 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 2 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
sadrul
3 years, 9 months ago (2017-03-15 06:34:54 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ddae604aa75d462f6cfde9bed6744a2bc113bed2.

Powered by Google App Engine
This is Rietveld 408576698