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

Issue 15745031: Restyle omnibox popup (Closed)

Created:
7 years, 6 months ago by brettw
Modified:
7 years, 5 months ago
CC:
chromium-reviews, tfarina, James Su, oshima+watch_chromium.org
Visibility:
Public.

Description

This change the native omnibox to look and behave a bit more like the HTML Instant Extended one. The popup positioning logic now has to be done at a bit of a higher level since it needs to know the window width as well as just the omnibox width. I added a new function in LocationBar::Delegate to get this that's implemented by the toolbar view (the lowest-level UI component that knows about the window width as well as the omnibox width). More information must now be passed to the popup, so I added a new OmniboxViewDelegate that's implemented by the LocationBar to give the popup its context. This cleaned up some dependencies where the popup had to know about the location bar and did things silly things like this: location_bar_->GetWidget()->GetNativeView() R=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204715

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Go back to 3 max search suggestions for now #

Total comments: 21

Patch Set 5 : Chrome OS, remove logo #

Patch Set 6 : Re-add missing file #

Patch Set 7 : Simple comments addressed #

Patch Set 8 : OmniboxViewDelegate removed. #

Patch Set 9 : Remove code from toolbar. #

Total comments: 1

Patch Set 10 : iMerge #

Patch Set 11 : #

Patch Set 12 : Remove blank line #

Patch Set 13 : remove comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -183 lines) Patch
chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h View 1 2 3 4 5 6 7 7 chunks +13 lines, -25 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 3 4 5 6 7 8 9 12 chunks +66 lines, -109 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_result_view.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -6 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 3 4 5 6 7 5 chunks +9 lines, -9 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_view_win.h View 2 chunks +1 line, -2 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 12 chunks +17 lines, -18 lines 0 comments Download
chrome/browser/ui/views/omnibox/omnibox_views.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
brettw
I have a few things todo but I'd like to get this started since we're ...
7 years, 6 months ago (2013-06-04 20:53:26 UTC) #1
brettw
https://codereview.chromium.org/15745031/diff/10001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/15745031/diff/10001/chrome/browser/autocomplete/search_provider.cc#newcode639 chrome/browser/autocomplete/search_provider.cc:639: int num_matches = kMaxSuggestMatches * 4; This change needs ...
7 years, 6 months ago (2013-06-04 23:43:12 UTC) #2
Peter Kasting
https://codereview.chromium.org/15745031/diff/10001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/15745031/diff/10001/chrome/browser/autocomplete/search_provider.cc#newcode639 chrome/browser/autocomplete/search_provider.cc:639: int num_matches = kMaxSuggestMatches * 4; On 2013/06/04 23:43:12, ...
7 years, 6 months ago (2013-06-06 18:52:15 UTC) #3
brettw
I addressed everything except the comment below. https://codereview.chromium.org/15745031/diff/10001/chrome/browser/ui/views/toolbar_view.cc File chrome/browser/ui/views/toolbar_view.cc (right): https://codereview.chromium.org/15745031/diff/10001/chrome/browser/ui/views/toolbar_view.cc#newcode390 chrome/browser/ui/views/toolbar_view.cc:390: if (border) ...
7 years, 6 months ago (2013-06-06 20:46:49 UTC) #4
Peter Kasting
https://codereview.chromium.org/15745031/diff/10001/chrome/browser/ui/views/toolbar_view.cc File chrome/browser/ui/views/toolbar_view.cc (right): https://codereview.chromium.org/15745031/diff/10001/chrome/browser/ui/views/toolbar_view.cc#newcode383 chrome/browser/ui/views/toolbar_view.cc:383: void ToolbarView::GetOmniboxPopupPositioningInfo( On 2013/06/06 18:52:16, Peter Kasting wrote: > ...
7 years, 6 months ago (2013-06-06 21:01:11 UTC) #5
brettw
PTAL. I got the two delegate things conflated which is why I missed the second ...
7 years, 6 months ago (2013-06-06 22:45:51 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/15745031/diff/116001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/15745031/diff/116001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode439 chrome/browser/ui/views/location_bar/location_bar_view.cc:439: // appear at the same height as the ...
7 years, 6 months ago (2013-06-06 22:52:03 UTC) #7
brettw
On 2013/06/06 22:52:03, Peter Kasting wrote: > LGTM > > https://codereview.chromium.org/15745031/diff/116001/chrome/browser/ui/views/location_bar/location_bar_view.cc > File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): ...
7 years, 6 months ago (2013-06-06 23:28:56 UTC) #8
Peter Kasting
On 2013/06/06 23:28:56, brettw wrote: > > > Also, it seems like maybe you'd want ...
7 years, 6 months ago (2013-06-06 23:54:23 UTC) #9
brettw
Committed patchset #13 manually as r204715 (presubmit successful).
7 years, 6 months ago (2013-06-07 05:02:17 UTC) #10
Lyricconch
On 2013/06/07 05:02:17, brettw wrote: > Committed patchset #13 manually as r204715 (presubmit successful). is ...
7 years, 5 months ago (2013-07-10 14:04:46 UTC) #11
Peter Kasting
7 years, 5 months ago (2013-07-10 16:38:10 UTC) #12
Message was sent while issue was closed.
CLs are not the place to debate design decisions after the fact.

The original omnibox dropdown covered most of this same area.  Eventually the
new one will fill the left blank with an appropriate logo.

Powered by Google App Engine
This is Rietveld 408576698