| 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..e05f29fabbf172f691a1bd4c4b9acaad2b9d8eb8 100644
|
| --- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h
|
| +++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h
|
| @@ -32,11 +32,13 @@ class AutocompletePopupContentsView : public views::View,
|
| public AutocompletePopupView,
|
| public ui::AnimationDelegate {
|
| public:
|
| - AutocompletePopupContentsView(const gfx::Font& font,
|
| - OmniboxView* omnibox_view,
|
| - AutocompleteEditModel* edit_model,
|
| - views::View* location_bar);
|
| - virtual ~AutocompletePopupContentsView();
|
| + // 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);
|
|
|
| // 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.
|
| @@ -73,6 +75,12 @@ class AutocompletePopupContentsView : public views::View,
|
| virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
|
|
|
| protected:
|
| + AutocompletePopupContentsView(const gfx::Font& font,
|
| + OmniboxView* omnibox_view,
|
| + AutocompleteEditModel* edit_model,
|
| + views::View* location_bar);
|
| + virtual ~AutocompletePopupContentsView();
|
| +
|
| virtual void PaintResultViews(gfx::Canvas* canvas);
|
|
|
| // Calculates the height needed to show all the results in the model.
|
| @@ -96,6 +104,9 @@ class AutocompletePopupContentsView : public views::View,
|
| private:
|
| class AutocompletePopupWidget;
|
|
|
| + // Call immediately after construction.
|
| + void Init();
|
| +
|
| // Returns true if the model has a match at the specified index.
|
| bool HasMatchAt(size_t index) const;
|
|
|
|
|