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

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

Issue 19666006: Supports FontList in Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removes ResourceBundle::Delegate::GetFontList. Created 7 years, 5 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_popup_contents_view.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
index 7b670f4463deabd1133e92ecec914c04986320f6..978008e34da5addcbb33e17d11be0022ea63f3ac 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
@@ -12,7 +12,7 @@
#include "ui/base/animation/animation_delegate.h"
#include "ui/base/animation/slide_animation.h"
#include "ui/base/window_open_disposition.h"
-#include "ui/gfx/font.h"
+#include "ui/gfx/font_list.h"
#include "ui/views/view.h"
struct AutocompleteMatch;
@@ -29,7 +29,7 @@ class OmniboxPopupContentsView : public views::View,
public ui::AnimationDelegate {
public:
// Factory method for creating the AutocompletePopupView.
- static OmniboxPopupView* Create(const gfx::Font& font,
+ static OmniboxPopupView* Create(const gfx::FontList& font_list,
OmniboxView* omnibox_view,
OmniboxEditModel* edit_model,
LocationBarView* location_bar_view);
@@ -74,7 +74,7 @@ class OmniboxPopupContentsView : public views::View,
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
protected:
- OmniboxPopupContentsView(const gfx::Font& font,
+ OmniboxPopupContentsView(const gfx::FontList& font_list,
OmniboxView* omnibox_view,
OmniboxEditModel* edit_model,
LocationBarView* location_bar_view);
@@ -88,7 +88,7 @@ class OmniboxPopupContentsView : public views::View,
virtual int CalculatePopupHeight();
virtual OmniboxResultView* CreateResultView(OmniboxResultViewModel* model,
int model_index,
- const gfx::Font& font);
+ const gfx::FontList& font_list);
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -144,8 +144,8 @@ class OmniboxPopupContentsView : public views::View,
LocationBarView* location_bar_view_;
- // The font used for result rows, based on the omnibox font.
- gfx::Font font_;
+ // The font list used for result rows, based on the omnibox font list.
+ gfx::FontList font_list_;
// If the user cancels a dragging action (i.e. by pressing ESC), we don't have
// a convenient way to release mouse capture. Instead we use this flag to

Powered by Google App Engine
This is Rietveld 408576698