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

Issue 2399863002: views: call UpdateAfterChange() in Textfield::InsertOrReplaceText(). (Closed)

Created:
4 years, 2 months ago by Elly Fong-Jones
Modified:
4 years, 2 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, Peter Kasting
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: call UpdateAfterChange() in Textfield::InsertOrReplaceText(). The Omnibox uses InsertOrReplaceText() to implement its own paste handling that bypasses Textfield::OnPaste(), but the cursor still needs to be kept in sync with pastes. BUG=651016 Committed: https://crrev.com/cb06e3bec608cfc5f294d4aaa1a2c2e983017f05 Cr-Commit-Position: refs/heads/master@{#423930}

Patch Set 1 #

Total comments: 1

Patch Set 2 : call UpdateAfterChange in InsertOrReplaceText #

Patch Set 3 : unit tests are good #

Total comments: 2

Patch Set 4 : use TextfieldTestApi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M ui/views/controls/textfield/textfield.h View 1 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_test_api.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Elly Fong-Jones
msw@: ptal? this is a replacement for https://codereview.chromium.org/2373403002/, which I now think is the wrong ...
4 years, 2 months ago (2016-10-06 13:57:08 UTC) #3
msw
+CC Peter, I know he's out, but he can follow this change. https://codereview.chromium.org/2399863002/diff/1/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc ...
4 years, 2 months ago (2016-10-07 01:47:52 UTC) #4
msw
Oh, and please add a unit test if it's not much trouble.
4 years, 2 months ago (2016-10-07 01:48:41 UTC) #5
Elly Fong-Jones
On 2016/10/07 01:48:41, msw wrote: > Oh, and please add a unit test if it's ...
4 years, 2 months ago (2016-10-07 16:30:43 UTC) #6
msw
lgtm with a minor comment, I'll look again after it's addressed. https://codereview.chromium.org/2399863002/diff/40001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): ...
4 years, 2 months ago (2016-10-07 17:16:38 UTC) #7
msw
Oh, please also update the cl title and description.
4 years, 2 months ago (2016-10-07 17:17:08 UTC) #8
Elly Fong-Jones
On 2016/10/07 17:17:08, msw wrote: > Oh, please also update the cl title and description. ...
4 years, 2 months ago (2016-10-07 17:25:49 UTC) #10
Elly Fong-Jones
msw: ptal? :) https://codereview.chromium.org/2399863002/diff/40001/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/2399863002/diff/40001/ui/views/controls/textfield/textfield.h#newcode335 ui/views/controls/textfield/textfield.h:335: FRIEND_TEST_ALL_PREFIXES(TextfieldTest, CursorBlinkRestartsOnInsertOrReplace); On 2016/10/07 17:16:38, msw ...
4 years, 2 months ago (2016-10-07 17:25:57 UTC) #11
msw
lgtm; thanks!
4 years, 2 months ago (2016-10-07 17:27:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2399863002/60001
4 years, 2 months ago (2016-10-07 17:28:21 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-07 19:33:24 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 19:35:40 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cb06e3bec608cfc5f294d4aaa1a2c2e983017f05
Cr-Commit-Position: refs/heads/master@{#423930}

Powered by Google App Engine
This is Rietveld 408576698