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

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

Issue 1023993003: [AiS] Added option to put a space between answer values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes for review nits Created 5 years, 9 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
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 1df1b2caacc089703851e6b503cd4f3951b7e4fd..984183d1747e5987d19e92b442aa128e9384fbc5 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
@@ -10,7 +10,6 @@
#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"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/animation/slide_animation.h"
@@ -160,7 +159,11 @@ class OmniboxResultView : public views::View,
int GetAnswerLineHeight() const;
int GetContentLineHeight() const;
- void AppendAnswerText(const SuggestionAnswer::TextField& text_field);
+ // Adds |text| to |description_rendertext_|. |text_type| is an index into the
+ // kTextStyles constant defined in the .cc file and is used to style the text,
+ // including setting the font size, color, and baseline style. See the
+ // TextStyle struct in the .cc file for more.
+ void AppendAnswerText(const base::string16& text, int text_type);
static int default_icon_size_;

Powered by Google App Engine
This is Rietveld 408576698