DescriptionThis 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 #Messages
Total messages: 12 (0 generated)
|