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

Issue 1890563003: Simplify XFA event handling. (Closed)

Created:
4 years, 8 months ago by Lei Zhang
Modified:
4 years, 8 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Simplify XFA event handling. - Avoid casting to void* - Don't bother firing events that no one listens for Committed: https://pdfium.googlesource.com/pdfium/+/b1a59597db4b8ce3ffc34dbfda2fb1ecb80c2397

Patch Set 1 : Events / params ignored by CPDFXFA_Document::WidgetEvent(). #

Total comments: 5

Patch Set 2 : remove layout event cruft #

Total comments: 2

Patch Set 3 : remove CXFA_FFNotify::OnLayoutEvent, XFA_LAYOUTEVENT #

Total comments: 2

Patch Set 4 : remove XFA_PAGEEVENT #

Total comments: 2

Patch Set 5 : remove CXFA_FFNotify::OnNodeEvent and XFA_NODEEVENT #

Total comments: 2

Patch Set 6 : remove CXFA_FFNotify::OnWidgetDataEvent #

Total comments: 2

Patch Set 7 : cleanup CXFA_Node #

Total comments: 6

Patch Set 8 : simplifiy code #

Total comments: 10

Patch Set 9 : nits #

Patch Set 10 : fix typo from PS1 #

Total comments: 12

Patch Set 11 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+601 lines, -847 lines) Patch
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdocview.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -15 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +24 lines, -49 lines 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +192 lines, -324 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 1 2 3 4 5 6 7 8 9 10 7 chunks +14 lines, -34 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgethandler.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/include/fxfa.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -7 lines 0 comments Download
M xfa/fxfa/include/fxfa_widget.h View 1 chunk +0 lines, -4 lines 0 comments Download
M xfa/fxfa/include/xfa_ffdocview.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/parser/cxfa_widgetdata.cpp View 1 2 3 4 5 2 chunks +4 lines, -8 lines 0 comments Download
M xfa/fxfa/parser/xfa_document.h View 1 2 3 4 1 chunk +1 line, -17 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datadescription_imp.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +9 lines, -9 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_imp.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_appadapter.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_itemlayout.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -5 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp View 1 2 3 4 5 6 7 8 9 10 18 chunks +29 lines, -36 lines 0 comments Download
M xfa/fxfa/parser/xfa_object.h View 1 2 3 4 5 6 7 8 9 10 11 chunks +26 lines, -28 lines 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 2 3 4 5 6 7 8 9 10 36 chunks +269 lines, -280 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.cpp View 1 2 3 4 5 6 7 8 9 10 9 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Lei Zhang
See individual patch sets to see the progression.
4 years, 8 months ago (2016-04-14 21:47:50 UTC) #4
Tom Sepez
https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffdocview.cpp File xfa/fxfa/app/xfa_ffdocview.cpp (left): https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffdocview.cpp#oldcode218 xfa/fxfa/app/xfa_ffdocview.cpp:218: FX_BOOL bNotify = IsStaticNotify(); How do we know its ...
4 years, 8 months ago (2016-04-14 22:08:55 UTC) #5
Lei Zhang
https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffdocview.cpp File xfa/fxfa/app/xfa_ffdocview.cpp (left): https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffdocview.cpp#oldcode218 xfa/fxfa/app/xfa_ffdocview.cpp:218: FX_BOOL bNotify = IsStaticNotify(); On 2016/04/14 22:08:55, Tom Sepez ...
4 years, 8 months ago (2016-04-14 22:11:50 UTC) #6
Tom Sepez
Nothing but nits. LGTM https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffdocview.cpp File xfa/fxfa/app/xfa_ffdocview.cpp (left): https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffdocview.cpp#oldcode218 xfa/fxfa/app/xfa_ffdocview.cpp:218: FX_BOOL bNotify = IsStaticNotify(); On ...
4 years, 8 months ago (2016-04-14 22:45:44 UTC) #7
Lei Zhang
https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffwidgetacc.cpp File xfa/fxfa/app/xfa_ffwidgetacc.cpp (right): https://codereview.chromium.org/1890563003/diff/1/xfa/fxfa/app/xfa_ffwidgetacc.cpp#newcode379 xfa/fxfa/app/xfa_ffwidgetacc.cpp:379: if (iRet == XFA_EVENTERROR_Success) { On 2016/04/14 22:08:55, Tom ...
4 years, 8 months ago (2016-04-15 01:16:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890563003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890563003/220001
4 years, 8 months ago (2016-04-15 01:18:58 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 01:30:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://pdfium.googlesource.com/pdfium/+/b1a59597db4b8ce3ffc34dbfda2fb1ecb80c...

Powered by Google App Engine
This is Rietveld 408576698