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

Issue 11034019: Cursor jumps to end of omnibox when activating keyword mode via inserted space (Closed)

Created:
8 years, 2 months ago by Joe Thomas
Modified:
8 years, 2 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Cursor jumps to end of omnibox when activating keyword mode via inserted space When 'keyword' search mode is activated by inserting a space between keyword and search string, the old caret position should be retained. The caret should be positioned at the start of the search string after stripping the keyword string from the user text. Patch from Joe Thomas <mhx348@motorola.com>;. BUG=142803 TEST=Browser unit test, steps as mentioned in the bug report R=pkasting@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160312

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed inline autocompletion issue in keyword search mode #

Total comments: 6

Patch Set 3 : Review comments incorporated #

Total comments: 4

Patch Set 4 : modified patch as per review comments #

Patch Set 5 : added testcase #

Patch Set 6 : changed author email address #

Patch Set 7 : Patch Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -4 lines) Patch
M AUTHORS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 1 chunk +23 lines, -3 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
Joe Thomas
8 years, 2 months ago (2012-10-02 06:53:27 UTC) #1
Joe Thomas
8 years, 2 months ago (2012-10-02 07:10:00 UTC) #2
Peter Kasting
https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode887 chrome/browser/ui/omnibox/omnibox_edit_model.cc:887: view_->GetText() != DisplayTextFromUserText(user_text_)) { Does this do the right ...
8 years, 2 months ago (2012-10-02 07:37:12 UTC) #3
Joe Thomas
Thanks for the review. Please see my comments inline https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode887 chrome/browser/ui/omnibox/omnibox_edit_model.cc:887: ...
8 years, 2 months ago (2012-10-02 18:39:23 UTC) #4
Peter Kasting
https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode887 chrome/browser/ui/omnibox/omnibox_edit_model.cc:887: view_->GetText() != DisplayTextFromUserText(user_text_)) { On 2012/10/02 18:39:23, Joe Thomas ...
8 years, 2 months ago (2012-10-02 18:42:35 UTC) #5
Joe Thomas
https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/1/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode887 chrome/browser/ui/omnibox/omnibox_edit_model.cc:887: view_->GetText() != DisplayTextFromUserText(user_text_)) { On 2012/10/02 18:42:35, Peter Kasting ...
8 years, 2 months ago (2012-10-02 18:57:24 UTC) #6
Joe Thomas
Uploaded patch set 2
8 years, 2 months ago (2012-10-02 20:59:41 UTC) #7
Peter Kasting
https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode889 chrome/browser/ui/omnibox/omnibox_edit_model.cc:889: view_->SetWindowTextAndCaretPos(DisplayTextFromUserText(user_text_), 0, This still feels kind of wrong to ...
8 years, 2 months ago (2012-10-02 21:52:02 UTC) #8
Joe Thomas
https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode889 chrome/browser/ui/omnibox/omnibox_edit_model.cc:889: view_->SetWindowTextAndCaretPos(DisplayTextFromUserText(user_text_), 0, On 2012/10/02 21:52:02, Peter Kasting wrote: > ...
8 years, 2 months ago (2012-10-02 22:11:34 UTC) #9
Peter Kasting
https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode889 chrome/browser/ui/omnibox/omnibox_edit_model.cc:889: view_->SetWindowTextAndCaretPos(DisplayTextFromUserText(user_text_), 0, On 2012/10/02 22:11:34, Joe Thomas wrote: > ...
8 years, 2 months ago (2012-10-02 22:38:28 UTC) #10
Joe Thomas
https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode889 chrome/browser/ui/omnibox/omnibox_edit_model.cc:889: view_->SetWindowTextAndCaretPos(DisplayTextFromUserText(user_text_), 0, On 2012/10/02 22:38:28, Peter Kasting wrote: > ...
8 years, 2 months ago (2012-10-03 01:59:47 UTC) #11
Peter Kasting
https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode889 chrome/browser/ui/omnibox/omnibox_edit_model.cc:889: view_->SetWindowTextAndCaretPos(DisplayTextFromUserText(user_text_), 0, Yes, I understood all that. I've just ...
8 years, 2 months ago (2012-10-03 03:01:01 UTC) #12
Joe Thomas
https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/8001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode889 chrome/browser/ui/omnibox/omnibox_edit_model.cc:889: view_->SetWindowTextAndCaretPos(DisplayTextFromUserText(user_text_), 0, On 2012/10/03 03:01:01, Peter Kasting wrote: > ...
8 years, 2 months ago (2012-10-03 05:41:12 UTC) #13
Joe Thomas
Uploaded Patch Set 3. Review comments incorporated. Done testing around omnibox and no regressions found. ...
8 years, 2 months ago (2012-10-03 07:59:59 UTC) #14
Peter Kasting
LGTM with some suggestions https://codereview.chromium.org/11034019/diff/15001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11034019/diff/15001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode892 chrome/browser/ui/omnibox/omnibox_edit_model.cc:892: // string to maintain the ...
8 years, 2 months ago (2012-10-03 17:08:12 UTC) #15
Joe Thomas
Uploaded patch set 4. This is my first patch. Could you please help me to ...
8 years, 2 months ago (2012-10-03 18:04:58 UTC) #16
Peter Kasting
On 2012/10/03 18:04:58, Joe Thomas wrote: > This is my first patch. Could you please ...
8 years, 2 months ago (2012-10-03 18:18:03 UTC) #17
Joe Thomas
Uploaded patch set 5. Added testcase. But I could not run it locally on my ...
8 years, 2 months ago (2012-10-03 20:29:31 UTC) #18
Joe Thomas
Tried to add some bots, but it showed RED immediately(I don't think it even ran). ...
8 years, 2 months ago (2012-10-04 16:35:54 UTC) #19
Peter Kasting
On 2012/10/04 16:35:54, Joe Thomas wrote: > Tried to add some bots, but it showed ...
8 years, 2 months ago (2012-10-04 19:35:58 UTC) #20
Joe Thomas
On 2012/10/04 19:35:58, Peter Kasting wrote: > I suspect you don't have permission. I added ...
8 years, 2 months ago (2012-10-04 20:53:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11034019/6004
8 years, 2 months ago (2012-10-04 20:59:27 UTC) #22
commit-bot: I haz the power
Presubmit check for 11034019-6004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-04 20:59:30 UTC) #23
Joe Thomas
On 2012/10/04 20:59:30, I haz the power (commit-bot) wrote: > Presubmit check for 11034019-6004 failed ...
8 years, 2 months ago (2012-10-04 21:05:02 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11034019/22001
8 years, 2 months ago (2012-10-04 21:30:13 UTC) #25
commit-bot: I haz the power
Failed to apply patch for AUTHORS: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-04 21:30:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11034019/24003
8 years, 2 months ago (2012-10-04 22:33:03 UTC) #27
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years, 2 months ago (2012-10-05 01:04:55 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11034019/24003
8 years, 2 months ago (2012-10-05 01:11:25 UTC) #29
commit-bot: I haz the power
8 years, 2 months ago (2012-10-05 03:08:14 UTC) #30
Change committed as 160312

Powered by Google App Engine
This is Rietveld 408576698