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

Issue 9309099: Enabled pressing TAB to traverse through the Omnibox results, removed moving the caret to the end... (Closed)

Created:
8 years, 10 months ago by aaron.randolph
Modified:
8 years, 9 months ago
CC:
chromium-reviews, James Su, penghuang+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Enabled pressing TAB to traverse through the Omnibox results, removed moving the caret to the end of the line with TAB, and filtered out redundant URLs. This adds the ability to move through Omnibox result matches using TAB in addition to the arrow keys. To enable this, pressing TAB to move the caret to the end of the line was removed and the keyword hint/shortcut logic has been modified. The Omnibox popup now shows keyword markers on the right side of matches that have associated keywords (represented by a right arrow). When this kind of match is selected, and the keyword is accepted, the match changes appearance by animating in the associated keyword match from the right to display the "Search X for <>" message. If multiple matches have the same keyword then only the most relevant match will display the keyword marker and hint. Pressing TAB while a keyword hint is shown will enter keyword mode in place; the results will no longer change when keyword mode is entered. Additionally, substituting keyword provider matches will only be shown if a keyword substitution is available. Finally, results with redundant destination URLs (e.g., "foo.com", "www.foo.com") will have the less relevant URLs filtered out. This also addresses some GTK omnibox browsertest flakiness; see bug 112041. See original change review at http://codereview.chromium.org/6731036 Contributed by aaron.randolph@gmail.com BUG=57748, 76278, 77662, 80934, 84420 TEST=Press TAB to move the selection down the list of results, SHIFT+TAB to move up. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124125

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+980 lines, -375 lines) Patch
M AUTHORS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 3 4 5 chunks +49 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 3 4 7 chunks +53 lines, -19 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_unittest.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 3 4 6 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 3 chunks +77 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_model.h View 1 2 3 4 6 chunks +21 lines, -14 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_model.cc View 1 2 3 4 5 chunks +26 lines, -59 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_unittest.cc View 1 2 3 4 10 chunks +133 lines, -16 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.h View 1 2 3 4 4 chunks +36 lines, -27 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 3 4 9 chunks +112 lines, -61 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider_unittest.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 8 chunks +30 lines, -30 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 3 4 5 chunks +28 lines, -18 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 3 4 5 chunks +119 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc View 1 2 3 4 8 chunks +28 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_result_view.h View 1 2 3 4 5 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc View 1 2 3 4 7 chunks +98 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 3 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 3 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 4 chunks +20 lines, -16 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/keycodes/keyboard_code_conversion_mac.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/keycodes/keyboard_codes_posix.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
aaron.randolph
Uploaded a new CL that removes the GTK workaround. This is to test if the ...
8 years, 10 months ago (2012-02-05 00:05:57 UTC) #1
Peter Kasting
LGTM, obviously. sail, can you test-run this patch through the browser_tests on your Mac?
8 years, 10 months ago (2012-02-05 01:23:16 UTC) #2
Elliot Glaysher
gtk lgtm
8 years, 10 months ago (2012-02-05 02:34:14 UTC) #3
sail
On 2012/02/05 01:23:16, Peter Kasting wrote: > LGTM, obviously. sail, can you test-run this patch ...
8 years, 10 months ago (2012-02-06 16:21:37 UTC) #4
sail
On 2012/02/06 16:21:37, sail wrote: > On 2012/02/05 01:23:16, Peter Kasting wrote: > > LGTM, ...
8 years, 10 months ago (2012-02-06 17:34:35 UTC) #5
sky
Rubber stamp LGTM
8 years, 10 months ago (2012-02-06 18:30:44 UTC) #6
sail
LGTM (I'll also try the original patch to see if it passes on my Mac).
8 years, 10 months ago (2012-02-06 18:31:57 UTC) #7
Peter Kasting
So, sail tested both the original and this patch, and neither seemed to fail on ...
8 years, 10 months ago (2012-02-06 22:26:44 UTC) #8
aaron.randolph
On 2012/02/06 22:26:44, Peter Kasting wrote: > So, sail tested both the original and this ...
8 years, 10 months ago (2012-02-06 22:43:21 UTC) #9
aaron.randolph
On 2012/02/06 22:26:44, Peter Kasting wrote: > So, sail tested both the original and this ...
8 years, 10 months ago (2012-02-11 00:12:05 UTC) #10
Peter Kasting
On 2012/02/11 00:12:05, aaron.randolph wrote: > Have you guys had any luck with Address Sanitizer? ...
8 years, 10 months ago (2012-02-11 19:29:35 UTC) #11
sail
On 2012/02/11 19:29:35, Peter Kasting wrote: > On 2012/02/11 00:12:05, aaron.randolph wrote: > > Have ...
8 years, 10 months ago (2012-02-15 21:27:26 UTC) #12
Peter Kasting
On 2012/02/15 21:27:26, sail wrote: > On 2012/02/11 19:29:35, Peter Kasting wrote: > > On ...
8 years, 10 months ago (2012-02-15 21:35:43 UTC) #13
aaron.randolph
On 2012/02/15 21:35:43, Peter Kasting wrote: > On 2012/02/15 21:27:26, sail wrote: > > I ...
8 years, 10 months ago (2012-02-15 22:53:00 UTC) #14
Scott Hess - ex-Googler
On 2012/02/15 22:53:00, aaron.randolph wrote: > Without a hint as to what caused the Mac ...
8 years, 10 months ago (2012-02-15 22:55:26 UTC) #15
aaron.randolph
On 2012/02/15 22:55:26, shess wrote: > On 2012/02/15 22:53:00, aaron.randolph wrote: > > Without a ...
8 years, 10 months ago (2012-02-15 23:27:42 UTC) #16
aaron.randolph
Well, that looks promising. safe_browsing tests passed on the valgrind bot, and all the tests ...
8 years, 10 months ago (2012-02-16 22:28:35 UTC) #17
Peter Kasting
Sigh. So, we test-landed this yesterday, and Mac stuff seemed to work, but the Linux ...
8 years, 10 months ago (2012-02-17 20:46:18 UTC) #18
aaron.randolph
On 2012/02/17 20:46:18, Peter Kasting wrote: > Sigh. > > So, we test-landed this yesterday, ...
8 years, 10 months ago (2012-02-17 20:56:45 UTC) #19
aaron.randolph
Updated the CL to pass tests on ChromeOS. (omnibox_view_views.cc) Issue 117421 (http://code.google.com/p/chromium/issues/detail?id=114721) can probably be ...
8 years, 10 months ago (2012-02-20 22:19:30 UTC) #20
Peter Kasting
Is the linux_rel "PopupStaysClosed" failure flakiness? Do you want me to try running that bot ...
8 years, 10 months ago (2012-02-21 21:24:15 UTC) #21
aaron.randolph
On 2012/02/21 21:24:15, Peter Kasting wrote: > Is the linux_rel "PopupStaysClosed" failure flakiness? Do you ...
8 years, 10 months ago (2012-02-21 21:26:04 UTC) #22
aaron.randolph
On 2012/02/21 21:26:04, aaron.randolph wrote: > On 2012/02/21 21:24:15, Peter Kasting wrote: > > Is ...
8 years, 10 months ago (2012-02-21 22:26:10 UTC) #23
aaron.randolph
On 2012/02/21 22:26:10, aaron.randolph wrote: > On 2012/02/21 21:26:04, aaron.randolph wrote: > > On 2012/02/21 ...
8 years, 10 months ago (2012-02-22 20:32:20 UTC) #24
aaron.randolph
While digging around, I noticed these two tests also failed on win_rel and also passed ...
8 years, 10 months ago (2012-02-23 02:25:23 UTC) #25
aaron.randolph
On 2012/02/23 02:25:23, aaron.randolph wrote: > While digging around, I noticed these two tests also ...
8 years, 10 months ago (2012-02-23 13:11:27 UTC) #26
Peter Kasting
On 2012/02/23 13:11:27, aaron.randolph wrote: > On 2012/02/23 02:25:23, aaron.randolph wrote: > > While digging ...
8 years, 10 months ago (2012-02-23 21:07:11 UTC) #27
Peter Kasting
A few random things noticed while fixing local merge conflicts... http://codereview.chromium.org/9309099/diff/35002/chrome/browser/autocomplete/keyword_provider.cc File chrome/browser/autocomplete/keyword_provider.cc (right): http://codereview.chromium.org/9309099/diff/35002/chrome/browser/autocomplete/keyword_provider.cc#newcode478 ...
8 years, 10 months ago (2012-02-24 02:16:34 UTC) #28
aaron.randolph
Addressed the nits and updated to the latest version.
8 years, 10 months ago (2012-02-24 23:47:10 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aaron.randolph@gmail.com/9309099/50001
8 years, 9 months ago (2012-02-29 00:38:53 UTC) #30
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 05:43:37 UTC) #31
Change committed as 124125

Powered by Google App Engine
This is Rietveld 408576698