Make FontList description-parsing public.
commit23144a693589b55017e863a60ae09a2edd7c3284
authorderat <derat@chromium.org>
Tue, 10 Feb 2015 14:48:25 +0000 (10 06:48 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 14:48:57 +0000 (10 14:48 +0000)
tree3f8d69db8322f5666ef42dadf11f3b25baa8631f
parentf69d7fdd4511c7643f1bc4ebe5f398029624fa7c
Make FontList description-parsing public.

Move FontListImpl's description-string-parsing code into a
static FontList::ParseDescription() method that
PlatformFontPango will be able to call to parse descriptions
on Chrome OS.

Also make parsing stricter, add tests, and delete unused
SetUpPangoLayout() and GetFontDescriptionString().

BUG=398885,393067

Review URL: https://codereview.chromium.org/903423002

Cr-Commit-Position: refs/heads/master@{#315559}
ui/base/resource/resource_bundle_unittest.cc
ui/gfx/font_list.cc
ui/gfx/font_list.h
ui/gfx/font_list_impl.cc
ui/gfx/font_list_impl.h
ui/gfx/font_list_unittest.cc
ui/gfx/pango_util.cc
ui/gfx/pango_util.h