summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/autocomplete
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 02:16:10 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 02:16:10 +0000
commit7322c44018c4e7b8bd58c67f52986660fb365d76 (patch)
tree4bb67ec23689e83682a5aa228e3b8c402880baa8 /chrome/browser/views/autocomplete
parent0c875075a6c45e9979b8345e5f5f9d4b747e05c3 (diff)
downloadchromium_src-7322c44018c4e7b8bd58c67f52986660fb365d76.zip
chromium_src-7322c44018c4e7b8bd58c67f52986660fb365d76.tar.gz
chromium_src-7322c44018c4e7b8bd58c67f52986660fb365d76.tar.bz2
ChromeFont->gfx::Font
Does not rename the files yet. http://crbug.com/11387 Review URL: http://codereview.chromium.org/113441 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/autocomplete')
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc18
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h4
2 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
index ffeee23..43f4d98 100644
--- a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -60,14 +60,14 @@ static const int kRowRightPadding = 3;
// 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 @@ class AutocompleteResultView : public views::View {
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 @@ class AutocompleteResultView : public views::View {
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 @@ int AutocompleteResultView::MirroringContext::GetLeft(int x1, int x2) const {
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 AutocompleteResultView::DrawStringFragment(
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 @@ int AutocompleteResultView::DrawStringFragment(
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 @@ void PopupBorder::InitClass() {
// AutocompletePopupContentsView, public:
AutocompletePopupContentsView::AutocompletePopupContentsView(
- const ChromeFont& font,
+ const gfx::Font& font,
AutocompleteEditViewWin* edit_view,
AutocompleteEditModel* edit_model,
Profile* profile,
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h
index 19323eb..85cecbf 100644
--- a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h
+++ b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h
@@ -46,7 +46,7 @@ class AutocompletePopupContentsView : public views::View,
public AutocompleteResultViewModel,
public AutocompletePopupView {
public:
- AutocompletePopupContentsView(const ChromeFont& font,
+ AutocompletePopupContentsView(const gfx::Font& font,
AutocompleteEditViewWin* edit_view,
AutocompleteEditModel* edit_model,
Profile* profile,
@@ -105,7 +105,7 @@ class AutocompletePopupContentsView : public views::View,
// The font that we should use for result rows. This is based on the font used
// by the edit that created us.
- ChromeFont result_font_;
+ gfx::Font result_font_;
DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView);
};