summaryrefslogtreecommitdiffstats
path: root/ui/gfx/platform_font_mac.mm
diff options
context:
space:
mode:
authoryukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-13 15:41:45 +0000
committeryukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-13 15:41:45 +0000
commit0143082409bc5aba7d693610cebc6a98ced0c8a4 (patch)
tree1382e908e01f0e090ac203c9ed12d37437d29224 /ui/gfx/platform_font_mac.mm
parente87527d218ecd1087e28e0795472f538b0324a66 (diff)
downloadchromium_src-0143082409bc5aba7d693610cebc6a98ced0c8a4.zip
chromium_src-0143082409bc5aba7d693610cebc6a98ced0c8a4.tar.gz
chromium_src-0143082409bc5aba7d693610cebc6a98ced0c8a4.tar.bz2
Clean-up: Renames gfx::Font's methods and removes its obsolete methods.
Applies the same renaming as http://crrev.com/142523003 and also removes obsolete methods. Renamed methods: - DeriveFont(size_delta, style) => Derive(size_delta, style) Removed methods: - DeriveFont(size_delta) - GetAverageCharacterWidth() # Use GetExpectedTextWidth(1) instead. - GetStringWidth(text) # Use gfx::GetStringWidth(text, font_list) instead. BUG=265485 TEST=Run ui_unittests, views_unittests. Review URL: https://codereview.chromium.org/138013004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251028 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/platform_font_mac.mm')
-rw-r--r--ui/gfx/platform_font_mac.mm9
1 files changed, 0 insertions, 9 deletions
diff --git a/ui/gfx/platform_font_mac.mm b/ui/gfx/platform_font_mac.mm
index 877507e..53e3013 100644
--- a/ui/gfx/platform_font_mac.mm
+++ b/ui/gfx/platform_font_mac.mm
@@ -105,15 +105,6 @@ int PlatformFontMac::GetCapHeight() const {
return cap_height_;
}
-int PlatformFontMac::GetAverageCharacterWidth() const {
- return average_width_;
-}
-
-int PlatformFontMac::GetStringWidth(const base::string16& text) const {
- return Canvas::GetStringWidth(text,
- Font(const_cast<PlatformFontMac*>(this)));
-}
-
int PlatformFontMac::GetExpectedTextWidth(int length) const {
return length * average_width_;
}