| Index: chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h | 
| diff --git a/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h b/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..35f7cf4df5541c387cccc6b31d95009c3b173172 | 
| --- /dev/null | 
| +++ b/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h | 
| @@ -0,0 +1,70 @@ | 
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 
| +#define CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 
| +#pragma once | 
| + | 
| +#include "base/compiler_specific.h" | 
| +#include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h" | 
| +#include "chrome/browser/ui/views/omnibox/omnibox_result_view.h" | 
| + | 
| +class AutocompleteEditModel; | 
| +class OmniboxView; | 
| + | 
| +namespace gfx { | 
| +class Canvas; | 
| +} | 
| + | 
| +namespace views { | 
| +class View; | 
| +} | 
| + | 
| +class TouchOmniboxResultView : public OmniboxResultView { | 
| + public: | 
| +  TouchOmniboxResultView(OmniboxResultViewModel* model, | 
| +                         int model_index, | 
| +                         const gfx::Font& font, | 
| +                         const gfx::Font& bold_font); | 
| + | 
| + private: | 
| +  virtual ~TouchOmniboxResultView(); | 
| + | 
| +  // OmniboxResultView: | 
| +  virtual void PaintMatch(gfx::Canvas* canvas, | 
| +                          const AutocompleteMatch& match, | 
| +                          int x) OVERRIDE; | 
| +  virtual int GetTextHeight() const OVERRIDE; | 
| + | 
| +  DISALLOW_COPY_AND_ASSIGN(TouchOmniboxResultView); | 
| +}; | 
| + | 
| +class TouchOmniboxPopupContentsView | 
| +    : public OmniboxPopupContentsView { | 
| + public: | 
| +  TouchOmniboxPopupContentsView(const gfx::Font& font, | 
| +                                     OmniboxView* omnibox_view, | 
| +                                     AutocompleteEditModel* edit_model, | 
| +                                     views::View* location_bar); | 
| +  virtual ~TouchOmniboxPopupContentsView(); | 
| + | 
| +  // OmniboxPopupContentsView: | 
| +  virtual void UpdatePopupAppearance() OVERRIDE; | 
| + | 
| + protected: | 
| +  // OmniboxPopupContentsView: | 
| +  virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE; | 
| +  virtual OmniboxResultView* CreateResultView( | 
| +      OmniboxResultViewModel* model, | 
| +      int model_index, | 
| +      const gfx::Font& font, | 
| +      const gfx::Font& bold_font) OVERRIDE; | 
| + | 
| + private: | 
| +  std::vector<View*> GetVisibleChildren(); | 
| + | 
| +  DISALLOW_COPY_AND_ASSIGN(TouchOmniboxPopupContentsView); | 
| +}; | 
| + | 
| +#endif  // CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 
|  |