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

Issue 2489283003: Make AddIndirectObject() take a unique_ptr. (Closed)

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

Description

Make AddIndirectObject() take a unique_ptr. Add convenience routines to create and add object in one step. Committed: https://pdfium.googlesource.com/pdfium/+/70c4afd5c3c5c44cd24f814423a23a6ef05bba02

Patch Set 1 #

Patch Set 2 : Fix image stream ownership #

Patch Set 3 : fix #

Patch Set 4 : Fix build #

Patch Set 5 : win build #

Patch Set 6 : try again #

Patch Set 7 : try 3 #

Patch Set 8 : Try 4 #

Patch Set 9 : Fix test #

Total comments: 12

Patch Set 10 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -207 lines) Patch
M core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp View 1 2 3 4 chunks +10 lines, -14 lines 0 comments Download
M core/fpdfapi/page/cpdf_docpagedata.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M core/fpdfapi/page/cpdf_image.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -9 lines 0 comments Download
M core/fpdfapi/parser/cfdf_document.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_array.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/parser/cpdf_array.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_dictionary.h View 2 chunks +5 lines, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_dictionary.cpp View 2 chunks +10 lines, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_document.cpp View 1 2 3 4 5 6 7 8 9 10 chunks +31 lines, -33 lines 0 comments Download
M core/fpdfapi/parser/cpdf_document_unittest.cpp View 1 2 4 chunks +33 lines, -30 lines 0 comments Download
M core/fpdfapi/parser/cpdf_indirect_object_holder.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_indirect_object_holder.cpp View 1 chunk +6 lines, -5 lines 0 comments Download
M core/fpdfapi/parser/cpdf_object_unittest.cpp View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -15 lines 0 comments Download
M core/fpdfdoc/cpdf_formfield_unittest.cpp View 2 chunks +6 lines, -8 lines 0 comments Download
M core/fpdfdoc/cpdf_interform.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 1 2 7 chunks +16 lines, -26 lines 0 comments Download
M fpdfsdk/cpdfsdk_baannot.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M fpdfsdk/formfiller/cba_fontmap.cpp View 2 chunks +5 lines, -8 lines 0 comments Download
M fpdfsdk/fpdf_flatten.cpp View 1 2 5 chunks +7 lines, -8 lines 0 comments Download
M fpdfsdk/fpdf_transformpage.cpp View 4 chunks +8 lines, -12 lines 0 comments Download
M fpdfsdk/fpdfdoc_unittest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/fpdfppo.cpp View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M fpdfsdk/fpdfsave.cpp View 2 chunks +6 lines, -10 lines 0 comments Download

Messages

Total messages: 35 (29 generated)
Tom Sepez
Dan, for review. For context, this is a partial step, and things get cleaner once ...
4 years, 1 month ago (2016-11-15 18:19:03 UTC) #24
dsinclair
https://codereview.chromium.org/2489283003/diff/160001/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp File core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp (right): https://codereview.chromium.org/2489283003/diff/160001/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp#newcode137 core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp:137: CFX_ByteString name = RealizeResource(pStream->GetObjNum(), "XObject"); Why does this one ...
4 years, 1 month ago (2016-11-15 18:55:51 UTC) #26
Tom Sepez
https://codereview.chromium.org/2489283003/diff/160001/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp File core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp (right): https://codereview.chromium.org/2489283003/diff/160001/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp#newcode137 core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp:137: CFX_ByteString name = RealizeResource(pStream->GetObjNum(), "XObject"); On 2016/11/15 18:55:51, dsinclair ...
4 years, 1 month ago (2016-11-15 19:15:17 UTC) #27
dsinclair
lgtm
4 years, 1 month ago (2016-11-15 19:21:34 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/2489283003/180001
4 years, 1 month ago (2016-11-15 19:24:22 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 19:33:49 UTC) #35
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://pdfium.googlesource.com/pdfium/+/70c4afd5c3c5c44cd24f814423a23a6ef05b...

Powered by Google App Engine
This is Rietveld 408576698