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

Issue 2435103002: Omnibox: Preserve display text and select all on a focus search (Closed)

Created:
4 years, 2 months ago by Tom (Use chromium acct)
Modified:
4 years, 1 month ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Omnibox: Preserve display text and select all on a focus search BUG=657243 R=pkasting@chromium.org Committed: https://crrev.com/795d4bec22b00f41f4a87e193494a728d73aa72d Cr-Commit-Position: refs/heads/master@{#427535}

Patch Set 1 : Initial PS to see if any tests are failing #

Patch Set 2 : Add browser tests #

Total comments: 4

Patch Set 3 : Remove printfs #

Total comments: 22

Patch Set 4 : Refactor #

Total comments: 6

Patch Set 5 : Refactor #

Patch Set 6 : Use display_text.length() as caret pos for KEYBOARD_SHORTCUT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -48 lines) Patch
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/chrome_omnibox_client.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_model.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_model.cc View 1 2 3 4 5 4 chunks +25 lines, -40 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
Tom (Use chromium acct)
https://chromiumcodereview.appspot.com/2435103002/diff/20001/components/omnibox/browser/omnibox_edit_model.cc File components/omnibox/browser/omnibox_edit_model.cc (right): https://chromiumcodereview.appspot.com/2435103002/diff/20001/components/omnibox/browser/omnibox_edit_model.cc#newcode564 components/omnibox/browser/omnibox_edit_model.cc:564: user_input_in_progress_ = true; Should this be SetInputInProgress(true)?
4 years, 2 months ago (2016-10-20 20:34:54 UTC) #6
Peter Kasting
Only looked at omnibox_edit_model.cc. https://codereview.chromium.org/2435103002/diff/20001/components/omnibox/browser/omnibox_edit_model.cc File components/omnibox/browser/omnibox_edit_model.cc (right): https://codereview.chromium.org/2435103002/diff/20001/components/omnibox/browser/omnibox_edit_model.cc#newcode418 components/omnibox/browser/omnibox_edit_model.cc:418: // or temporary text. We ...
4 years, 2 months ago (2016-10-20 21:42:00 UTC) #7
Tom (Use chromium acct)
https://codereview.chromium.org/2435103002/diff/20001/components/omnibox/browser/omnibox_edit_model.cc File components/omnibox/browser/omnibox_edit_model.cc (right): https://codereview.chromium.org/2435103002/diff/20001/components/omnibox/browser/omnibox_edit_model.cc#newcode418 components/omnibox/browser/omnibox_edit_model.cc:418: // or temporary text. On 2016/10/20 21:42:00, Peter Kasting ...
4 years, 1 month ago (2016-10-25 02:11:08 UTC) #9
Peter Kasting
https://codereview.chromium.org/2435103002/diff/40001/chrome/browser/autocomplete/autocomplete_browsertest.cc File chrome/browser/autocomplete/autocomplete_browsertest.cc (right): https://codereview.chromium.org/2435103002/diff/40001/chrome/browser/autocomplete/autocomplete_browsertest.cc#newcode333 chrome/browser/autocomplete/autocomplete_browsertest.cc:333: // Focus search when the permanent URL is showing ...
4 years, 1 month ago (2016-10-25 02:46:33 UTC) #11
Tom (Use chromium acct)
https://codereview.chromium.org/2435103002/diff/40001/chrome/browser/autocomplete/autocomplete_browsertest.cc File chrome/browser/autocomplete/autocomplete_browsertest.cc (right): https://codereview.chromium.org/2435103002/diff/40001/chrome/browser/autocomplete/autocomplete_browsertest.cc#newcode333 chrome/browser/autocomplete/autocomplete_browsertest.cc:333: // Focus search when the permanent URL is showing ...
4 years, 1 month ago (2016-10-25 18:50:31 UTC) #14
Peter Kasting
LGTM https://codereview.chromium.org/2435103002/diff/60001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc File chrome/browser/ui/omnibox/chrome_omnibox_client.cc (right): https://codereview.chromium.org/2435103002/diff/60001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc#newcode143 chrome/browser/ui/omnibox/chrome_omnibox_client.cc:143: return controller_->GetWebContents(); This doesn't produce a "forcing to ...
4 years, 1 month ago (2016-10-25 20:21:27 UTC) #15
Tom (Use chromium acct)
https://codereview.chromium.org/2435103002/diff/60001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc File chrome/browser/ui/omnibox/chrome_omnibox_client.cc (right): https://codereview.chromium.org/2435103002/diff/60001/chrome/browser/ui/omnibox/chrome_omnibox_client.cc#newcode143 chrome/browser/ui/omnibox/chrome_omnibox_client.cc:143: return controller_->GetWebContents(); On 2016/10/25 20:21:27, Peter Kasting wrote: > ...
4 years, 1 month ago (2016-10-25 21:55:09 UTC) #16
Peter Kasting
https://codereview.chromium.org/2435103002/diff/60001/components/omnibox/browser/omnibox_edit_model.cc File components/omnibox/browser/omnibox_edit_model.cc (right): https://codereview.chromium.org/2435103002/diff/60001/components/omnibox/browser/omnibox_edit_model.cc#newcode552 components/omnibox/browser/omnibox_edit_model.cc:552: view_->SetWindowTextAndCaretPos(display_text, 0, true, false); On 2016/10/25 21:55:09, Tom Anderson ...
4 years, 1 month ago (2016-10-25 22:06:11 UTC) #17
Tom (Use chromium acct)
On 2016/10/25 22:06:11, Peter Kasting wrote: > https://codereview.chromium.org/2435103002/diff/60001/components/omnibox/browser/omnibox_edit_model.cc > File components/omnibox/browser/omnibox_edit_model.cc (right): > > https://codereview.chromium.org/2435103002/diff/60001/components/omnibox/browser/omnibox_edit_model.cc#newcode552 ...
4 years, 1 month ago (2016-10-25 22:16:37 UTC) #18
Peter Kasting
Sure, looks fine
4 years, 1 month ago (2016-10-25 22:17:58 UTC) #21
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/2435103002/100001
4 years, 1 month ago (2016-10-25 23:32:40 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-25 23:42:30 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 23:46:15 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/795d4bec22b00f41f4a87e193494a728d73aa72d
Cr-Commit-Position: refs/heads/master@{#427535}

Powered by Google App Engine
This is Rietveld 408576698