| Index: chrome/browser/ui/views/omnibox/omnibox_result_view.h
|
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.h b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
|
| index f0b8cb4a7e5413ffd897f1a9c810344618375ec8..efad375434791e040435cca5e5a92df02c54bfdd 100644
|
| --- a/chrome/browser/ui/views/omnibox/omnibox_result_view.h
|
| +++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
|
| @@ -18,6 +18,7 @@ class OmniboxResultViewModel;
|
|
|
| namespace gfx {
|
| class Canvas;
|
| +class RenderText;
|
| }
|
|
|
| class OmniboxResultView : public views::View,
|
| @@ -43,8 +44,7 @@ class OmniboxResultView : public views::View,
|
|
|
| OmniboxResultView(OmniboxResultViewModel* model,
|
| int model_index,
|
| - const gfx::Font& font,
|
| - const gfx::Font& bold_font);
|
| + const gfx::Font& font);
|
| virtual ~OmniboxResultView();
|
|
|
| SkColor GetColor(ResultViewState state, ColorKind kind) const;
|
| @@ -92,11 +92,9 @@ class OmniboxResultView : public views::View,
|
| }
|
|
|
| private:
|
| - struct ClassificationData;
|
| - typedef std::vector<ClassificationData> Classifications;
|
| -
|
| struct RunData;
|
| typedef std::vector<RunData> Runs;
|
| + typedef std::vector<gfx::RenderText*> Classifications;
|
|
|
| // Common initialization code of the colors returned by GetColors().
|
| static void CommonInitColors(const ui::NativeTheme* theme,
|
| @@ -144,8 +142,8 @@ class OmniboxResultView : public views::View,
|
| OmniboxResultViewModel* model_;
|
| size_t model_index_;
|
|
|
| - const gfx::Font normal_font_;
|
| - const gfx::Font bold_font_;
|
| + const gfx::Font font_;
|
| + int font_height_;
|
|
|
| // Width of the ellipsis in the normal font.
|
| int ellipsis_width_;
|
|
|