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

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: Changed args for AppendAnswerText 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..6609ed979bcca58073aaef1079114134c8425cf9 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,8 @@ class OmniboxResultView : public views::View,
int GetAnswerLineHeight() const;
int GetContentLineHeight() const;
- void AppendAnswerText(const SuggestionAnswer::TextField& text_field);
+ // Adds styled text to |description_rendertext_|.
Peter Kasting 2015/03/24 01:05:35 Nit: Can you flesh this out more? How is the text
dschuyler 2015/03/24 01:26:47 Thanks! Done.
+ void AppendAnswerText(const base::string16& text, int text_type);
Peter Kasting 2015/03/24 01:05:35 Nit: |text_style| might be a better name for this
dschuyler 2015/03/24 01:26:47 I call the TextStyle instance text_style in the sa
Peter Kasting 2015/03/24 01:44:56 Fair enough, but this highlights for me that there
dschuyler 2015/03/24 02:20:10 Done.
static int default_icon_size_;

Powered by Google App Engine
This is Rietveld 408576698