1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
10 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
12 class OmniboxEditModel;
23 class TouchOmniboxResultView : public OmniboxResultView {
25 TouchOmniboxResultView(OmniboxPopupContentsView* model,
27 LocationBarView* location_bar_view,
28 const gfx::FontList& font_list);
31 virtual ~TouchOmniboxResultView();
34 virtual void PaintMatch(const AutocompleteMatch& match,
35 gfx::RenderText* contents,
36 gfx::RenderText* description,
38 int x) const OVERRIDE;
39 virtual int GetTextHeight() const OVERRIDE;
41 DISALLOW_COPY_AND_ASSIGN(TouchOmniboxResultView);
44 class TouchOmniboxPopupContentsView
45 : public OmniboxPopupContentsView {
47 TouchOmniboxPopupContentsView(const gfx::FontList& font_list,
48 OmniboxView* omnibox_view,
49 OmniboxEditModel* edit_model,
50 LocationBarView* location_bar_view);
51 virtual ~TouchOmniboxPopupContentsView();
53 // OmniboxPopupContentsView:
54 virtual void UpdatePopupAppearance() OVERRIDE;
57 // OmniboxPopupContentsView:
58 virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE;
59 virtual OmniboxResultView* CreateResultView(
61 const gfx::FontList& font_list) OVERRIDE;
64 std::vector<View*> GetVisibleChildren();
66 DISALLOW_COPY_AND_ASSIGN(TouchOmniboxPopupContentsView);
69 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_