Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.h

Issue 2654163005: Fix the size of omnibox suggestion answers. (Closed)
Patch Set: Merge. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7597002c4cdfa5648af2d64865f47d95812c859f..56c47b3f1a6adf948e2c15fe62063b29be18b57b 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
@@ -158,13 +158,19 @@ class OmniboxResultView : public views::View,
bool is_ui_rtl,
bool is_match_contents_rtl) const;
+ // Returns the font to use for the description line of answer suggestions.
+ const gfx::FontList& GetAnswerLineFont() const;
+
+ // Returns the height of the the description line of answer suggestions.
int GetAnswerLineHeight() const;
+
+ // Returns the height of the content line.
int GetContentLineHeight() const;
// Creates a RenderText with text and styling from the image line.
std::unique_ptr<gfx::RenderText> CreateAnswerLine(
const SuggestionAnswer::ImageLine& line,
- gfx::FontList font_list) const;
+ const gfx::FontList& font_list) const;
// Adds |text| to |destination|. |text_type| is an index into the
// kTextStyles constant defined in the .cc file and is used to style the text,
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698