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

Issue 2328573002: Split CPDFXFA_Document apart (Closed)

Created:
4 years, 3 months ago by dsinclair
Modified:
4 years, 3 months ago
Reviewers:
Tom Sepez, Lei Zhang, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Split CPDFXFA_Document apart [DO NOT COMMIT] This CL renames IXFA_DocProvider to IXFA_DocEnvironment to better describe the purpose. Then, CPDFXFA_Document has all of the IXFA_DocEnvironment methods removed and placed in CPDFXFA_DocEnvironment. The CPDFXFA_Document then has a CPDFXFA_DocEnvironment. This splits the code related to the document apart from the XFA callback methods to work with that document. Committed: https://pdfium.googlesource.com/pdfium/+/a440bb3f11f42b7a22624e9771dd8d9c57075f06

Patch Set 1 #

Total comments: 28

Patch Set 2 : Review feedback #

Patch Set 3 : Rebase to master #

Patch Set 4 : Review feedback' #

Patch Set 5 : Rebase to master #

Patch Set 6 : Fix bad merge #

Patch Set 7 : Rebase to master #

Patch Set 8 : Fix merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -1606 lines) Patch
M BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A + fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp View 1 2 3 4 5 6 7 29 chunks +223 lines, -376 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 1 2 3 4 5 6 6 chunks +3 lines, -975 lines 0 comments Download
A + fpdfsdk/fpdfxfa/include/cpdfxfa_docenvironment.h View 3 chunks +9 lines, -66 lines 0 comments Download
M fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h View 1 4 chunks +32 lines, -111 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.cpp View 1 2 chunks +5 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffapp.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffchoicelist.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffdoc.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdocview.cpp View 1 10 chunks +13 lines, -13 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.h View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M xfa/fxfa/app/xfa_fftext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffwidgethandler.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/app/xfa_fwladapter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/include/fxfa.h View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/include/xfa_ffapp.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M xfa/fxfa/include/xfa_ffdoc.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/cscript_hostpseudomodel.cpp View 1 12 chunks +20 lines, -19 lines 0 comments Download
M xfa/fxfa/parser/cxfa_scriptcontext.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (26 generated)
dsinclair
PTAL. This is a step towards making CPDFXFA_Document inherit from CPDF_Document. Once all this is ...
4 years, 3 months ago (2016-09-08 16:19:40 UTC) #5
Tom Sepez
Ah, naming. Wish we could come up with better names than environment, provider, delegate, etc. ...
4 years, 3 months ago (2016-09-08 17:12:38 UTC) #8
dsinclair
I almost want to say CPDFXFA_DocPlatform ... but that's also horrible ... CPDFXFA_DocAL ... it's ...
4 years, 3 months ago (2016-09-08 18:07:50 UTC) #9
Tom Sepez
lgtm https://codereview.chromium.org/2328573002/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp File fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp (right): https://codereview.chromium.org/2328573002/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp#newcode84 fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp:84: if (!hWidget || !pRtAnchor || !m_pDocument->GetXFADoc() || > ...
4 years, 3 months ago (2016-09-08 18:22:01 UTC) #10
dsinclair
On 2016/09/08 18:22:01, Tom Sepez (ooo 9 sept) wrote: > lgtm > > https://codereview.chromium.org/2328573002/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp > ...
4 years, 3 months ago (2016-09-12 13:37:50 UTC) #11
Tom Sepez
++LGTM
4 years, 3 months ago (2016-09-12 17:38:41 UTC) #16
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/2328573002/140001
4 years, 3 months ago (2016-09-14 13:25:30 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 14:01:58 UTC) #34
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://pdfium.googlesource.com/pdfium/+/a440bb3f11f42b7a22624e9771dd8d9c5707...

Powered by Google App Engine
This is Rietveld 408576698