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

Issue 7067015: An edit for SetText needs to be merged with previous edit for omnibox. (Closed)

Created:
9 years, 7 months ago by oshima
Modified:
9 years, 6 months ago
Reviewers:
msw
CC:
chromium-reviews
Visibility:
Public.

Description

* An edit for SetText needs to be merged with previous edit to correctly handle autocomplete text set by Omnibox. * SetText no longer change the cursor position because setting autocomplete text shouldn't change the cursor. * Undo/Redo cursor positions correctly. * Clear the omnibox's edit history when tab is switched. BUG=none TEST=existing tests are modified and new test cases are added. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87821

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : " #

Patch Set 5 : " #

Total comments: 24

Patch Set 6 : " #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -65 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M views/controls/textfield/native_textfield_gtk.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_gtk.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_views.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_views.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_views_unittest.cc View 1 2 2 chunks +4 lines, -3 lines 2 comments Download
M views/controls/textfield/native_textfield_win.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_wrapper.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M views/controls/textfield/textfield.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M views/controls/textfield/textfield.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M views/controls/textfield/textfield_views_model.h View 1 2 3 4 5 2 chunks +20 lines, -4 lines 4 comments Download
M views/controls/textfield/textfield_views_model.cc View 1 2 3 4 5 14 chunks +135 lines, -48 lines 4 comments Download
M views/controls/textfield/textfield_views_model_unittest.cc View 1 2 3 4 5 8 chunks +140 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
oshima
This is not 100% ready but want you to have a look and hear your ...
9 years, 7 months ago (2011-05-25 22:56:05 UTC) #1
oshima
Uploaded new patch set with more tests and minor change to make code a bit ...
9 years, 6 months ago (2011-06-02 00:30:20 UTC) #2
msw
Mostly minor nits and questions inline... but since this adds a non-trivial amount of complexity ...
9 years, 6 months ago (2011-06-02 10:16:42 UTC) #3
oshima
Let's talk after lunch. http://codereview.chromium.org/7067015/diff/8015/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): http://codereview.chromium.org/7067015/diff/8015/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode325 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:325: textfield_->ClearEditHistory(); On 2011/06/02 10:16:42, msw ...
9 years, 6 months ago (2011-06-02 19:11:41 UTC) #4
msw
Sorry I'm WFH sick today, but I'm feeling a bit better this afternoon, so I ...
9 years, 6 months ago (2011-06-02 21:02:57 UTC) #5
oshima
Let's discuss in person tomorrow (hopefully) http://codereview.chromium.org/7067015/diff/9002/views/controls/textfield/native_textfield_views_unittest.cc File views/controls/textfield/native_textfield_views_unittest.cc (right): http://codereview.chromium.org/7067015/diff/9002/views/controls/textfield/native_textfield_views_unittest.cc#newcode1024 views/controls/textfield/native_textfield_views_unittest.cc:1024: EXPECT_STR_EQ("ab", textfield_->text()); On ...
9 years, 6 months ago (2011-06-03 00:39:24 UTC) #6
oshima
Writing this anyway in case you may be still sick tomorrow. >To start: if autocomplete ...
9 years, 6 months ago (2011-06-03 07:03:59 UTC) #7
msw
LGTM, with your design rationale to fit the existing omnibox model. Eventually, once views is ...
9 years, 6 months ago (2011-06-03 17:34:02 UTC) #8
oshima
9 years, 6 months ago (2011-06-03 18:29:25 UTC) #9
On 2011/06/03 17:34:02, msw wrote:
> LGTM, with your design rationale to fit the existing omnibox model.
Eventually,
> once views is our only textbox implementation, it may be pertinent to revisit
> some of these decisions.

Yes, I think that's the direction we want.

Powered by Google App Engine
This is Rietveld 408576698