Chromium Code Reviews| 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 099027c6c88594f248a8c95723570b1f8d1ff9f1..c84395fbdaca43c6a7ae5dbf6f390f377b286366 100644 |
| --- a/chrome/browser/ui/views/omnibox/omnibox_result_view.h |
| +++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h |
| @@ -10,6 +10,7 @@ |
| #include "base/gtest_prod_util.h" |
| #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h" |
| #include "components/omnibox/autocomplete_match.h" |
| +#include "components/omnibox/suggestion_answer.h" |
|
Justin Donnelly
2015/03/13 21:08:33
You can just forward declare this, no?
dschuyler
2015/03/13 21:48:23
It's a nested class. I think that's not doable (u
|
| #include "third_party/skia/include/core/SkColor.h" |
| #include "ui/gfx/animation/animation_delegate.h" |
| #include "ui/gfx/animation/slide_animation.h" |
| @@ -76,6 +77,10 @@ class OmniboxResultView : public views::View, |
| // Returns the display width required for the match contents. |
| int GetMatchContentsWidth() const; |
| + int get_minimum_text_vertical_padding() const { |
| + return minimum_text_vertical_padding_; |
| + } |
| + |
| // Stores the image in a local data member and schedules a repaint. |
| void SetAnswerImage(const gfx::ImageSkia& image); |
| @@ -155,6 +160,12 @@ class OmniboxResultView : public views::View, |
| bool is_ui_rtl, |
| bool is_match_contents_rtl) const; |
| + int StyleAnswerText(gfx::RenderText* render_text, |
| + int offset, |
| + const SuggestionAnswer::TextField& text_field) const; |
| + |
| + int GetContentLineHeight() const; |
| + |
| static int default_icon_size_; |
| // Default values cached here, may be overridden using the setters above. |