| 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 "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" | 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 AutocompleteEditModel* edit_model, | 49 AutocompleteEditModel* edit_model, |
| 50 views::View* location_bar); | 50 views::View* location_bar); |
| 51 virtual ~TouchAutocompletePopupContentsView(); | 51 virtual ~TouchAutocompletePopupContentsView(); |
| 52 | 52 |
| 53 // AutocompletePopupContentsView: | 53 // AutocompletePopupContentsView: |
| 54 virtual void UpdatePopupAppearance() OVERRIDE; | 54 virtual void UpdatePopupAppearance() OVERRIDE; |
| 55 virtual void LayoutChildren() OVERRIDE; | 55 virtual void LayoutChildren() OVERRIDE; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 // AutocompletePopupContentsView: | 58 // AutocompletePopupContentsView: |
| 59 virtual void PaintResultViews(gfx::CanvasSkia* canvas) OVERRIDE; | 59 virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE; |
| 60 virtual int CalculatePopupHeight() OVERRIDE; | 60 virtual int CalculatePopupHeight() OVERRIDE; |
| 61 virtual AutocompleteResultView* CreateResultView( | 61 virtual AutocompleteResultView* CreateResultView( |
| 62 AutocompleteResultViewModel* model, | 62 AutocompleteResultViewModel* model, |
| 63 int model_index, | 63 int model_index, |
| 64 const gfx::Font& font, | 64 const gfx::Font& font, |
| 65 const gfx::Font& bold_font) OVERRIDE; | 65 const gfx::Font& bold_font) OVERRIDE; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 std::vector<View*> GetVisibleChildren(); | 68 std::vector<View*> GetVisibleChildren(); |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); | 70 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
S_VIEW_H_ | 73 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
S_VIEW_H_ |
| OLD | NEW |