| 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_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V
    IEW_H_ |  | 
| 6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V
    IEW_H_ |  | 
| 7 #pragma once |  | 
| 8 |  | 
| 9 #include "base/compiler_specific.h" |  | 
| 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
    h" |  | 
| 11 #include "chrome/browser/ui/views/autocomplete/autocomplete_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 TouchAutocompleteResultView : public AutocompleteResultView { |  | 
| 25  public: |  | 
| 26   TouchAutocompleteResultView(AutocompleteResultViewModel* model, |  | 
| 27                               int model_index, |  | 
| 28                               const gfx::Font& font, |  | 
| 29                               const gfx::Font& bold_font); |  | 
| 30 |  | 
| 31  private: |  | 
| 32   virtual ~TouchAutocompleteResultView(); |  | 
| 33 |  | 
| 34   // AutocompleteResultView: |  | 
| 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(TouchAutocompleteResultView); |  | 
| 41 }; |  | 
| 42 |  | 
| 43 class TouchAutocompletePopupContentsView |  | 
| 44     : public AutocompletePopupContentsView { |  | 
| 45  public: |  | 
| 46   TouchAutocompletePopupContentsView(const gfx::Font& font, |  | 
| 47                                      OmniboxView* omnibox_view, |  | 
| 48                                      AutocompleteEditModel* edit_model, |  | 
| 49                                      views::View* location_bar); |  | 
| 50   virtual ~TouchAutocompletePopupContentsView(); |  | 
| 51 |  | 
| 52   // AutocompletePopupContentsView: |  | 
| 53   virtual void UpdatePopupAppearance() OVERRIDE; |  | 
| 54 |  | 
| 55  protected: |  | 
| 56   // AutocompletePopupContentsView: |  | 
| 57   virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE; |  | 
| 58   virtual AutocompleteResultView* CreateResultView( |  | 
| 59       AutocompleteResultViewModel* 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(TouchAutocompletePopupContentsView); |  | 
| 68 }; |  | 
| 69 |  | 
| 70 #endif  // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
    S_VIEW_H_ |  | 
| OLD | NEW | 
|---|