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

Unified Diff: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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/views/autocomplete/autocomplete_popup_contents_view.cc
===================================================================
--- chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc (revision 16106)
+++ chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc (working copy)
@@ -60,14 +60,14 @@
// of the text.
static const int kIconTextSpacing = 9;
// The size delta between the font used for the edit and the result rows. Passed
-// to ChromeFont::DeriveFont.
+// to gfx::Font::DeriveFont.
static const int kEditFontAdjust = -1;
class AutocompleteResultView : public views::View {
public:
AutocompleteResultView(AutocompleteResultViewModel* model,
int model_index,
- const ChromeFont& font);
+ const gfx::Font& font);
virtual ~AutocompleteResultView();
// Overridden from views::View:
@@ -108,7 +108,7 @@
int y);
// Gets the font and text color for a fragment with the specified style.
- ChromeFont GetFragmentFont(int style) const;
+ gfx::Font GetFragmentFont(int style) const;
SkColor GetFragmentTextColor(int style) const;
// This row's model and model index.
@@ -119,7 +119,7 @@
bool hot_;
// The font used to derive fonts for rendering the text in this row.
- ChromeFont font_;
+ gfx::Font font_;
// A context used for mirroring regions.
class MirroringContext;
@@ -272,7 +272,7 @@
AutocompleteResultView::AutocompleteResultView(
AutocompleteResultViewModel* model,
int model_index,
- const ChromeFont& font)
+ const gfx::Font& font)
: model_(model),
model_index_(model_index),
hot_(false),
@@ -499,7 +499,7 @@
int style,
int x,
int y) {
- ChromeFont display_font = GetFragmentFont(style);
+ gfx::Font display_font = GetFragmentFont(style);
// Clamp text width to the available width within the popup so we elide if
// necessary.
int string_width = std::min(display_font.GetStringWidth(text),
@@ -511,9 +511,9 @@
return string_width;
}
-ChromeFont AutocompleteResultView::GetFragmentFont(int style) const {
+gfx::Font AutocompleteResultView::GetFragmentFont(int style) const {
if (style & ACMatchClassification::MATCH)
- return font_.DeriveFont(0, ChromeFont::BOLD);
+ return font_.DeriveFont(0, gfx::Font::BOLD);
return font_;
}
@@ -651,7 +651,7 @@
// AutocompletePopupContentsView, public:
AutocompletePopupContentsView::AutocompletePopupContentsView(
- const ChromeFont& font,
+ const gfx::Font& font,
AutocompleteEditViewWin* edit_view,
AutocompleteEditModel* edit_model,
Profile* profile,
« no previous file with comments | « chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698