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

Issue 2185533006: Splitting fx_ge_fontmap.cpp (Closed)

Created:
4 years, 4 months ago by npm
Modified:
4 years, 4 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Splitting fx_ge_fontmap.cpp Move CFX_FolderFontInfo, CFX_FontMgr, and CFX_FontMapper into their own classes. There are namespaces in each of the new files, having methods from the original namespace in fx_ge_fontmap, according to what each class needs. Committed: https://pdfium.googlesource.com/pdfium/+/f73893a6110f2d4960b372fb4fe38e4fd629ce8f

Patch Set 1 #

Total comments: 32

Patch Set 2 : Removing unneeded includes #

Total comments: 1

Patch Set 3 : Nits and added header files #

Total comments: 16

Patch Set 4 : IFX_SystemFontInfo in its own file #

Total comments: 2

Patch Set 5 : Rename cfx_folderfontinfo file #

Patch Set 6 : Missing comma #

Patch Set 7 : Add missing includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+939 lines, -2473 lines) Patch
M BUILD.gn View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M core/fxge/android/fx_android_font.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxge/android/fx_android_font.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M core/fxge/apple/fx_mac_imp.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A core/fxge/ge/cfx_folderfontinfo.h View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
A core/fxge/ge/cfx_folderfontinfo.cpp View 1 2 3 4 1 chunk +377 lines, -0 lines 0 comments Download
A + core/fxge/ge/cfx_fontmapper.cpp View 1 2 3 10 chunks +4 lines, -758 lines 0 comments Download
A core/fxge/ge/cfx_fontmgr.cpp View 1 2 3 1 chunk +257 lines, -0 lines 0 comments Download
M core/fxge/ge/fx_ge.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxge/ge/fx_ge_font.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M core/fxge/ge/fx_ge_fontmap.cpp View 1 2 3 5 chunks +2 lines, -1523 lines 0 comments Download
M core/fxge/ge/fx_ge_linux.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A core/fxge/include/cfx_fontmapper.h View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A core/fxge/include/cfx_fontmgr.h View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
M core/fxge/include/fx_font.h View 1 2 4 chunks +4 lines, -192 lines 0 comments Download
M core/fxge/include/fx_ge.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A core/fxge/include/ifx_systemfontinfo.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M core/fxge/win32/fx_win32_device.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M fpdfsdk/cfx_systemhandler.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fpdf_sysfontinfo.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
npm
Refactoring CL
4 years, 4 months ago (2016-07-26 21:49:05 UTC) #3
Lei Zhang
look ok, let's make sure the trybots are happy. https://codereview.chromium.org/2185533006/diff/1/core/fxge/ge/cfx_folderfontinfo.cpp File core/fxge/ge/cfx_folderfontinfo.cpp (right): https://codereview.chromium.org/2185533006/diff/1/core/fxge/ge/cfx_folderfontinfo.cpp#newcode7 core/fxge/ge/cfx_folderfontinfo.cpp:7: ...
4 years, 4 months ago (2016-07-26 23:19:56 UTC) #6
Lei Zhang
I also edited the CL description a bit. Try reading a guide on how to ...
4 years, 4 months ago (2016-07-26 23:21:44 UTC) #9
npm_g
4 years, 4 months ago (2016-07-27 14:15:41 UTC) #13
dsinclair
https://codereview.chromium.org/2185533006/diff/1/core/fxge/ge/cfx_folderfontinfo.cpp File core/fxge/ge/cfx_folderfontinfo.cpp (right): https://codereview.chromium.org/2185533006/diff/1/core/fxge/ge/cfx_folderfontinfo.cpp#newcode43 core/fxge/ge/cfx_folderfontinfo.cpp:43: if (!FXSYS_fread(buffer.GetBuffer(size), size, 1, pFile)) { nit: no {}'s ...
4 years, 4 months ago (2016-07-27 14:17:40 UTC) #14
npm_g
PTAL https://codereview.chromium.org/2185533006/diff/1/core/fxge/ge/cfx_folderfontinfo.cpp File core/fxge/ge/cfx_folderfontinfo.cpp (right): https://codereview.chromium.org/2185533006/diff/1/core/fxge/ge/cfx_folderfontinfo.cpp#newcode7 core/fxge/ge/cfx_folderfontinfo.cpp:7: #include <algorithm> On 2016/07/26 23:19:56, Lei Zhang (Very ...
4 years, 4 months ago (2016-07-27 17:02:20 UTC) #15
dsinclair
https://codereview.chromium.org/2185533006/diff/40001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2185533006/diff/40001/BUILD.gn#newcode695 BUILD.gn:695: "core/fxge/ge/cfx_folderfontinfo.cpp", Add the header files in here as well. ...
4 years, 4 months ago (2016-07-27 17:36:01 UTC) #16
npm
TALP https://codereview.chromium.org/2185533006/diff/40001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2185533006/diff/40001/BUILD.gn#newcode695 BUILD.gn:695: "core/fxge/ge/cfx_folderfontinfo.cpp", On 2016/07/27 17:36:00, dsinclair wrote: > Add ...
4 years, 4 months ago (2016-07-27 18:51:58 UTC) #17
dsinclair
lgtm w/ file move. https://codereview.chromium.org/2185533006/diff/60001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2185533006/diff/60001/BUILD.gn#newcode698 BUILD.gn:698: "core/fxge/ge/include/cfx_folderfontinfo.h" This file is only ...
4 years, 4 months ago (2016-07-27 19:04:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2185533006/80001
4 years, 4 months ago (2016-07-27 19:54:07 UTC) #21
npm
https://codereview.chromium.org/2185533006/diff/60001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2185533006/diff/60001/BUILD.gn#newcode698 BUILD.gn:698: "core/fxge/ge/include/cfx_folderfontinfo.h" On 2016/07/27 19:04:58, dsinclair wrote: > This file ...
4 years, 4 months ago (2016-07-27 19:54:40 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/linux_no_v8/builds/1468)
4 years, 4 months ago (2016-07-27 19:56:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2185533006/100001
4 years, 4 months ago (2016-07-27 20:00:47 UTC) #27
npm
4 years, 4 months ago (2016-07-27 20:01:13 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_xfa on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/mac_xfa/builds/1468) mac_xfa_rel_gyp on master.tryserver.client.pdfium (JOB_FAILED, ...
4 years, 4 months ago (2016-07-27 20:05:29 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2185533006/120001
4 years, 4 months ago (2016-07-27 20:54:11 UTC) #39
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 20:54:32 UTC) #41
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/f73893a6110f2d4960b372fb4fe38e4fd629...

Powered by Google App Engine
This is Rietveld 408576698