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

Issue 138013004: Clean-up: Renames gfx::Font's methods and removes its obsolete methods. (Closed)

Created:
6 years, 10 months ago by Yuki
Modified:
6 years, 10 months ago
CC:
chromium-reviews, asanka, craigdh+watch_chromium.org, benquan, tfarina, benjhayden+dwatch_chromium.org, Dane Wallinga, bulach+watch_chromium.org, yfriedman+watch_chromium.org, dyu1, ilevy-cc_chromium.org, estade+watch_chromium.org, klundberg+watch_chromium.org, James Su, Ilya Sherman, rouslan+autofillwatch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

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. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251028

Patch Set 1 #

Patch Set 2 : Removed unused methods in PlatformFont. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -141 lines) Patch
M build/android/pylib/gtest/filter/ui_unittests_disabled View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M ui/gfx/font.h View 3 chunks +4 lines, -16 lines 0 comments Download
M ui/gfx/font.cc View 3 chunks +2 lines, -14 lines 0 comments Download
M ui/gfx/font_list_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/font_list_unittest.cc View 7 chunks +15 lines, -15 lines 0 comments Download
M ui/gfx/font_unittest.cc View 4 chunks +5 lines, -23 lines 0 comments Download
M ui/gfx/platform_font.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M ui/gfx/platform_font_ios.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/platform_font_ios.mm View 1 1 chunk +0 lines, -9 lines 0 comments Download
M ui/gfx/platform_font_mac.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/platform_font_mac.mm View 1 1 chunk +0 lines, -9 lines 0 comments Download
M ui/gfx/platform_font_mac_unittest.mm View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gfx/platform_font_pango.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/platform_font_pango.cc View 1 3 chunks +6 lines, -12 lines 0 comments Download
M ui/gfx/platform_font_win.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/platform_font_win.cc View 1 2 chunks +2 lines, -11 lines 0 comments Download
M ui/gfx/platform_font_win_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/text_utils_unittest.cc View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yuki
Could you guys review this CL? Thanks.
6 years, 10 months ago (2014-02-10 08:53:58 UTC) #1
Alexei Svitkine (slow)
Change looks good, but if you're removing GetAverageCharacterWidth() because it's not used anywhere, can you ...
6 years, 10 months ago (2014-02-10 15:37:54 UTC) #2
Yuki
On 2014/02/10 15:37:54, Alexei Svitkine wrote: > Change looks good, but if you're removing GetAverageCharacterWidth() ...
6 years, 10 months ago (2014-02-11 11:53:22 UTC) #3
Alexei Svitkine (slow)
Change looks good, however now that I think about it, I think it would be ...
6 years, 10 months ago (2014-02-11 14:01:21 UTC) #4
Yuki
On 2014/02/11 14:01:21, Alexei Svitkine wrote: > Change looks good, however now that I think ...
6 years, 10 months ago (2014-02-12 03:07:22 UTC) #5
Alexei Svitkine (slow)
Fair enough, LGTM. However, can you add a BUG= to the CL description and change ...
6 years, 10 months ago (2014-02-12 15:30:27 UTC) #6
msw
LGTM with ditto to Alexei's remaining CL description comments.
6 years, 10 months ago (2014-02-12 18:17:09 UTC) #7
Yuki
The CQ bit was checked by yukishiino@chromium.org
6 years, 10 months ago (2014-02-13 04:28:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/138013004/460002
6 years, 10 months ago (2014-02-13 04:28:48 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 15:41:53 UTC) #10
Message was sent while issue was closed.
Change committed as 251028

Powered by Google App Engine
This is Rietveld 408576698