| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 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_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h" |
| 11 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h" |
| 12 |
| 13 class AutocompleteEditModel; |
| 14 class OmniboxView; |
| 15 |
| 16 namespace gfx { |
| 17 class Canvas; |
| 18 } |
| 19 |
| 20 namespace views { |
| 21 class View; |
| 22 } |
| 23 |
| 24 class TouchOmniboxResultView : public OmniboxResultView { |
| 25 public: |
| 26 TouchOmniboxResultView(OmniboxResultViewModel* model, |
| 27 int model_index, |
| 28 const gfx::Font& font, |
| 29 const gfx::Font& bold_font); |
| 30 |
| 31 private: |
| 32 virtual ~TouchOmniboxResultView(); |
| 33 |
| 34 // OmniboxResultView: |
| 35 virtual void PaintMatch(gfx::Canvas* canvas, |
| 36 const AutocompleteMatch& match, |
| 37 int x) OVERRIDE; |
| 38 virtual int GetTextHeight() const OVERRIDE; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(TouchOmniboxResultView); |
| 41 }; |
| 42 |
| 43 class TouchOmniboxPopupContentsView |
| 44 : public OmniboxPopupContentsView { |
| 45 public: |
| 46 TouchOmniboxPopupContentsView(const gfx::Font& font, |
| 47 OmniboxView* omnibox_view, |
| 48 AutocompleteEditModel* edit_model, |
| 49 views::View* location_bar); |
| 50 virtual ~TouchOmniboxPopupContentsView(); |
| 51 |
| 52 // OmniboxPopupContentsView: |
| 53 virtual void UpdatePopupAppearance() OVERRIDE; |
| 54 |
| 55 protected: |
| 56 // OmniboxPopupContentsView: |
| 57 virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE; |
| 58 virtual OmniboxResultView* CreateResultView( |
| 59 OmniboxResultViewModel* model, |
| 60 int model_index, |
| 61 const gfx::Font& font, |
| 62 const gfx::Font& bold_font) OVERRIDE; |
| 63 |
| 64 private: |
| 65 std::vector<View*> GetVisibleChildren(); |
| 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(TouchOmniboxPopupContentsView); |
| 68 }; |
| 69 |
| 70 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
| OLD | NEW |