summaryrefslogtreecommitdiffstats
path: root/gfx/gfx.gyp
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 16:43:03 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-13 16:43:03 +0000
commitc6ac841f51c0b884b38e917ac30b1dfde0dc43a7 (patch)
tree2b490ffa6795f72e7232d658b766785f0de64e38 /gfx/gfx.gyp
parent6b32b95cff99ee72fd7824237ae5070263e5c496 (diff)
downloadchromium_src-c6ac841f51c0b884b38e917ac30b1dfde0dc43a7.zip
chromium_src-c6ac841f51c0b884b38e917ac30b1dfde0dc43a7.tar.gz
chromium_src-c6ac841f51c0b884b38e917ac30b1dfde0dc43a7.tar.bz2
Rework gfx::Font by moving platform-specific code into inner classes.
gfx::Font is a platform-neutral API shim that exists as a wrapper object to allow for the creation and lifetime of gfx::Font objects to remain consistent with past usage. gfx::PlatformFont is an interface implemented by the platform-specific inner classes (gfx::PlatformFontWin,Mac,Gtk). BUG=none TEST=existing unittests Review URL: http://codereview.chromium.org/3083022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/gfx.gyp')
-rw-r--r--gfx/gfx.gyp12
1 files changed, 8 insertions, 4 deletions
diff --git a/gfx/gfx.gyp b/gfx/gfx.gyp
index 5947c4a..9b7e4aa 100644
--- a/gfx/gfx.gyp
+++ b/gfx/gfx.gyp
@@ -97,9 +97,7 @@
'color_utils.h',
'favicon_size.h',
'font.h',
- 'font_gtk.cc',
- 'font_mac.mm',
- 'font_win.cc',
+ 'font.cc',
'gfx_paths.cc',
'gfx_paths.h',
'insets.cc',
@@ -109,6 +107,13 @@
'path.h',
'path_gtk.cc',
'path_win.cc',
+ 'platform_font.h',
+ 'platform_font_gtk.h',
+ 'platform_font_gtk.cc',
+ 'platform_font_mac.h',
+ 'platform_font_mac.mm',
+ 'platform_font_win.h',
+ 'platform_font_win.cc',
'point.cc',
'point.h',
'rect.cc',
@@ -151,7 +156,6 @@
'../build/linux/system.gyp:gtk',
],
'sources': [
- 'font_skia.cc',
'gtk_native_view_id_manager.cc',
'gtk_native_view_id_manager.h',
'gtk_util.cc',