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

Issue 2183313004: Split fpdfdoc/include/fpdf_doc.h into individual classes. (Closed)

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

Description

Split fpdfdoc/include/fpdf_doc.h into individual classes. This CL splits the header file apart. The cpp files are not touched as part of this CL, they will be done as a followup. This de-duplicates the fpdf_doc.h BUG=pdfium:249 Committed: https://pdfium.googlesource.com/pdfium/+/cac704dd3e5c0e5900e898db4eff5a0948cef6fc

Patch Set 1 #

Patch Set 2 : Missing includes #

Patch Set 3 : Rebase to master #

Total comments: 7

Patch Set 4 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1369 lines, -1048 lines) Patch
M BUILD.gn View 1 2 3 chunks +24 lines, -3 lines 0 comments Download
M core/fpdfapi/cpdf_pagerendercontext.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_document.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 chunk +1 line, -1 line 0 comments Download
D core/fpdfdoc/cpdf_annot.h View 1 chunk +0 lines, -70 lines 0 comments Download
M core/fpdfdoc/cpdf_annot.cpp View 1 chunk +1 line, -1 line 0 comments Download
D core/fpdfdoc/cpdf_annotlist.h View 1 chunk +0 lines, -64 lines 0 comments Download
M core/fpdfdoc/cpdf_annotlist.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
A core/fpdfdoc/cpdf_apsettings.h View 1 chunk +74 lines, -0 lines 0 comments Download
A core/fpdfdoc/cpdf_pagelabel.h View 1 chunk +26 lines, -0 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_action.cpp View 1 chunk +7 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_basic.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_basic_unittest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfdoc/doc_bookmark.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_form.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_formcontrol.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_formfield.cpp View 5 chunks +33 lines, -13 lines 0 comments Download
M core/fpdfdoc/doc_link.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_metadata.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_ocg.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_utils.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M core/fpdfdoc/doc_viewerPreferences.cpp View 1 chunk +2 lines, -1 line 0 comments Download
A core/fpdfdoc/include/cpdf_aaction.h View 1 chunk +51 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_action.h View 1 chunk +59 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_actionfields.h View 1 chunk +27 lines, -0 lines 0 comments Download
A + core/fpdfdoc/include/cpdf_annot.h View 2 chunks +6 lines, -3 lines 0 comments Download
A + core/fpdfdoc/include/cpdf_annotlist.h View 2 chunks +3 lines, -3 lines 0 comments Download
A core/fpdfdoc/include/cpdf_bookmark.h View 1 chunk +33 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_bookmarktree.h View 1 chunk +26 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_defaultappearance.h View 1 chunk +50 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_dest.h View 1 chunk +32 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_docjsactions.h View 1 chunk +29 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_filespec.h View 1 chunk +35 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_formcontrol.h View 1 chunk +134 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_formfield.h View 1 chunk +167 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_iconfit.h View 1 chunk +30 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_interform.h View 1 chunk +155 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_link.h View 1 chunk +31 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_linklist.h View 1 chunk +36 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_metadata.h View 1 chunk +26 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_nametree.h View 1 chunk +34 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_occontext.h View 1 chunk +42 lines, -0 lines 0 comments Download
A core/fpdfdoc/include/cpdf_viewerpreferences.h View 1 chunk +34 lines, -0 lines 0 comments Download
D core/fpdfdoc/include/fpdf_doc.h View 1 chunk +0 lines, -851 lines 0 comments Download
A core/fpdfdoc/include/ipdf_formnotify.h View 1 chunk +32 lines, -0 lines 0 comments Download
M fpdfsdk/formfiller/cba_fontmap.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fpdf_dataavail_embeddertest.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/fpdf_ext.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M fpdfsdk/fpdf_flatten.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fpdfdoc.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fpdfdoc_unittest.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/fpdfeditpage.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M fpdfsdk/fpdftext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M fpdfsdk/fsdk_actionhandler.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fsdk_annothandler.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fsdk_baseannot.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fsdk_baseform.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fsdk_mgr.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/fxedit/fxet_edit.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/include/fsdk_actionhandler.h View 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/include/fsdk_baseannot.h View 1 chunk +3 lines, -2 lines 0 comments Download
M fpdfsdk/include/fsdk_baseform.h View 2 chunks +3 lines, -1 line 0 comments Download
M fpdfsdk/include/fsdk_define.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M fpdfsdk/include/fsdk_mgr.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M fpdfsdk/javascript/Document.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/javascript/Field.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/javascript/Icon.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/javascript/PublicMethods.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Wnd.h View 1 chunk +1 line, -1 line 0 comments Download
M pdfium.gyp View 1 2 3 chunks +26 lines, -5 lines 0 comments Download
M public/fpdf_formfill.h View 1 chunk +12 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdoc.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (16 generated)
dsinclair
PTAL.
4 years, 4 months ago (2016-07-27 19:28:32 UTC) #8
Lei Zhang
https://codereview.chromium.org/2183313004/diff/40001/core/fpdfdoc/cpdf_apsettings.h File core/fpdfdoc/cpdf_apsettings.h (right): https://codereview.chromium.org/2183313004/diff/40001/core/fpdfdoc/cpdf_apsettings.h#newcode1 core/fpdfdoc/cpdf_apsettings.h:1: // Copyright 2016 PDFium Authors. All rights reserved. Refresh ...
4 years, 4 months ago (2016-07-28 19:27:02 UTC) #15
Lei Zhang
lgtm
4 years, 4 months ago (2016-07-28 19:27:59 UTC) #16
dsinclair
https://codereview.chromium.org/2183313004/diff/40001/core/fpdfdoc/cpdf_apsettings.h File core/fpdfdoc/cpdf_apsettings.h (right): https://codereview.chromium.org/2183313004/diff/40001/core/fpdfdoc/cpdf_apsettings.h#newcode1 core/fpdfdoc/cpdf_apsettings.h:1: // Copyright 2016 PDFium Authors. All rights reserved. On ...
4 years, 4 months ago (2016-07-28 19:42:15 UTC) #17
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/2183313004/60001
4 years, 4 months ago (2016-07-28 19:42:40 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://pdfium.googlesource.com/pdfium/+/cac704dd3e5c0e5900e898db4eff5a0948cef6fc
4 years, 4 months ago (2016-07-28 19:59:15 UTC) #22
Lei Zhang
4 years, 4 months ago (2016-08-16 04:48:45 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/2183313004/diff/40001/fpdfsdk/javascript/Icon.h
File fpdfsdk/javascript/Icon.h (right):

https://codereview.chromium.org/2183313004/diff/40001/fpdfsdk/javascript/Icon...
fpdfsdk/javascript/Icon.h:12: class CPDF_Stream;
On 2016/07/28 19:42:14, dsinclair wrote:
> On 2016/07/28 19:27:02, Lei Zhang wrote:
> > BTW, did you know the Google C++ style guide changed at some point to say
> don't
> > bother with forward decls?
> > https://google.github.io/styleguide/cppguide.html#Forward_Declarations
> > 
> > Shall we try to start following this for new code?
> > 
> > It does mean more files to rebuild when changing headers, but it feels like
> > that's less of a concern with distributed builds and -j500.
> 
> 
> Switching is probably a good idea for new code, didn't realize the style guide
> said not to use them.
> 
> I'll leave the ones I have from this patch series, but will use includes in
the
> future.

And I missed the memo on the Chromium style guide override. :\
https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md...

Powered by Google App Engine
This is Rietveld 408576698