Chromium Code Reviews| Index: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h |
| diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h |
| index ffd2f01cc806dca6a13ec3fddf0aacd306df260c..78c1ea40a3d3180e21715656da14ec47b2cfab59 100644 |
| --- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h |
| +++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h |
| @@ -32,12 +32,23 @@ class AutocompletePopupContentsView : public views::View, |
| public AutocompletePopupView, |
| public ui::AnimationDelegate { |
| public: |
| + // Creates the appropriate type of omnibox dropdown for the |
| + // current environment, e.g. desktop vs. touch optimized layout. |
| + static AutocompletePopupContentsView* CreateForEnvironment( |
| + const gfx::Font& font, |
| + OmniboxView* omnibox_view, |
| + AutocompleteEditModel* edit_model, |
| + views::View* location_bar); |
| + |
| AutocompletePopupContentsView(const gfx::Font& font, |
|
Peter Kasting
2012/05/07 21:03:12
Nit: This can become protected.
Jói
2012/05/10 18:33:07
Done.
|
| OmniboxView* omnibox_view, |
| AutocompleteEditModel* edit_model, |
| views::View* location_bar); |
| virtual ~AutocompletePopupContentsView(); |
| + // Call immediately after construction. |
|
Peter Kasting
2012/05/07 21:03:12
Nit: This can become private.
Jói
2012/05/10 18:33:07
Done.
|
| + void Init(); |
| + |
| // Returns the bounds the popup should be shown at. This is the display bounds |
| // and includes offsets for the dropshadow which this view's border renders. |
| gfx::Rect GetPopupBounds() const; |