diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 20:42:54 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-15 20:42:54 +0000 |
commit | f409f566b898a7b10e1baceecbcaa26cfd0b17f3 (patch) | |
tree | 475c09c88b6159ccd447204ae54b565b07f25113 /chrome/browser/views/location_bar_view.cc | |
parent | 72a9cd3f9e52ff4ff16df9bb018a23c08e455af7 (diff) | |
download | chromium_src-f409f566b898a7b10e1baceecbcaa26cfd0b17f3.zip chromium_src-f409f566b898a7b10e1baceecbcaa26cfd0b17f3.tar.gz chromium_src-f409f566b898a7b10e1baceecbcaa26cfd0b17f3.tar.bz2 |
Make the omnibox popup look nicer. Add dropshadow images (not final). Experiment with some effects.
Adds a positioner interface that allows the popup to size itself to the width of the edit view + the width of the star and go buttons. (Basically the toolbar needs to help the popup position itself).
No results yet!
Review URL: http://codereview.chromium.org/68011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13784 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.cc')
-rw-r--r-- | chrome/browser/views/location_bar_view.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc index 2ece304..c1b96b9 100644 --- a/chrome/browser/views/location_bar_view.cc +++ b/chrome/browser/views/location_bar_view.cc @@ -80,7 +80,8 @@ LocationBarView::LocationBarView(Profile* profile, CommandUpdater* command_updater, ToolbarModel* model, Delegate* delegate, - bool popup_window_mode) + bool popup_window_mode, + AutocompletePopupPositioner* popup_positioner) : profile_(profile), command_updater_(command_updater), model_(model), @@ -93,7 +94,8 @@ LocationBarView::LocationBarView(Profile* profile, security_image_view_(profile, model), rss_image_view_(model), popup_window_mode_(popup_window_mode), - first_run_bubble_(this) { + first_run_bubble_(this), + popup_positioner_(popup_positioner) { DCHECK(profile_); SetID(VIEW_ID_LOCATION_BAR); SetFocusable(true); @@ -123,7 +125,8 @@ void LocationBarView::Init() { location_entry_.reset(new AutocompleteEditViewWin(font_, this, model_, this, widget->GetNativeView(), profile_, command_updater_, - popup_window_mode_)); + popup_window_mode_, + popup_positioner_)); // View container for URL edit field. location_entry_view_ = new views::HWNDView; |