| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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" |
| 11 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view.h" | 11 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view.h" |
| 12 | 12 |
| 13 class AutocompleteEditModel; | 13 class AutocompleteEditModel; |
| 14 class OmniboxView; | 14 class OmniboxView; |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 class Canvas; | |
| 18 class CanvasSkia; | 17 class CanvasSkia; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace views { | 20 namespace views { |
| 22 class View; | 21 class View; |
| 23 } | 22 } |
| 24 | 23 |
| 25 class TouchAutocompleteResultView : public AutocompleteResultView { | 24 class TouchAutocompleteResultView : public AutocompleteResultView { |
| 26 public: | 25 public: |
| 27 TouchAutocompleteResultView(AutocompleteResultViewModel* model, | 26 TouchAutocompleteResultView(AutocompleteResultViewModel* model, |
| 28 int model_index, | 27 int model_index, |
| 29 const gfx::Font& font, | 28 const gfx::Font& font, |
| 30 const gfx::Font& bold_font); | 29 const gfx::Font& bold_font); |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 virtual ~TouchAutocompleteResultView(); | 32 virtual ~TouchAutocompleteResultView(); |
| 34 | 33 |
| 35 // AutocompleteResultView: | 34 // AutocompleteResultView: |
| 36 virtual void PaintMatch(gfx::Canvas* canvas, | 35 virtual void PaintMatch(gfx::CanvasSkia* canvas, |
| 37 const AutocompleteMatch& match, | 36 const AutocompleteMatch& match, |
| 38 int x) OVERRIDE; | 37 int x) OVERRIDE; |
| 39 virtual int GetTextHeight() const OVERRIDE; | 38 virtual int GetTextHeight() const OVERRIDE; |
| 40 | 39 |
| 41 DISALLOW_COPY_AND_ASSIGN(TouchAutocompleteResultView); | 40 DISALLOW_COPY_AND_ASSIGN(TouchAutocompleteResultView); |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 class TouchAutocompletePopupContentsView | 43 class TouchAutocompletePopupContentsView |
| 45 : public AutocompletePopupContentsView { | 44 : public AutocompletePopupContentsView { |
| 46 public: | 45 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 64 const gfx::Font& font, | 63 const gfx::Font& font, |
| 65 const gfx::Font& bold_font) OVERRIDE; | 64 const gfx::Font& bold_font) OVERRIDE; |
| 66 | 65 |
| 67 private: | 66 private: |
| 68 std::vector<View*> GetVisibleChildren(); | 67 std::vector<View*> GetVisibleChildren(); |
| 69 | 68 |
| 70 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); | 69 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
S_VIEW_H_ | 72 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT
S_VIEW_H_ |
| OLD | NEW |