| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V
IEW_H_ | 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_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V
IEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" | 9 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" |
| 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view.h" | 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 public: | 49 public: |
| 50 TouchAutocompletePopupContentsView(const gfx::Font& font, | 50 TouchAutocompletePopupContentsView(const gfx::Font& font, |
| 51 AutocompleteEditView* edit_view, | 51 AutocompleteEditView* edit_view, |
| 52 AutocompleteEditModel* edit_model, | 52 AutocompleteEditModel* edit_model, |
| 53 Profile* profile, | 53 Profile* profile, |
| 54 const views::View* location_bar); | 54 const views::View* location_bar); |
| 55 virtual ~TouchAutocompletePopupContentsView(); | 55 virtual ~TouchAutocompletePopupContentsView(); |
| 56 | 56 |
| 57 // AutocompletePopupContentsView: | 57 // AutocompletePopupContentsView: |
| 58 virtual void UpdatePopupAppearance(); | 58 virtual void UpdatePopupAppearance(); |
| 59 virtual void PaintChildren(gfx::CanvasSkia* canvas); | |
| 60 virtual void LayoutChildren(); | 59 virtual void LayoutChildren(); |
| 61 | 60 |
| 62 protected: | 61 protected: |
| 63 // AutocompletePopupContentsView: | 62 // AutocompletePopupContentsView: |
| 63 virtual void PaintResultViews(gfx::CanvasSkia* canvas); |
| 64 virtual int CalculatePopupHeight(); | 64 virtual int CalculatePopupHeight(); |
| 65 virtual AutocompleteResultView* CreateResultView( | 65 virtual AutocompleteResultView* CreateResultView( |
| 66 AutocompleteResultViewModel* model, | 66 AutocompleteResultViewModel* model, |
| 67 int model_index, | 67 int model_index, |
| 68 const gfx::Font& font, | 68 const gfx::Font& font, |
| 69 const gfx::Font& bold_font); | 69 const gfx::Font& bold_font); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 std::vector<View*> GetVisibleChildren(); | 72 std::vector<View*> GetVisibleChildren(); |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); | 74 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
S_VIEW_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
S_VIEW_H_ |
| OLD | NEW |