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

Issue 1396283006: Fix layering violation in CPDF_Document::FromFPDFDocument(). (Closed)

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

Description

Fix layering violation in CPDF_Document::FromFPDFDocument(). Make this a function in the fpdfsdk/ layer, rather than a method in the core/ layer. Nothing in core should know about public FPDF types. BUG=pdfium:217 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/86adb658843658969041a13bf6cf0cc950ffe8ed

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -40 lines) Patch
M core/include/fpdfapi/fpdf_parser.h View 2 chunks +0 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M fpdfsdk/include/fsdk_define.h View 1 chunk +3 lines, -0 lines 2 comments Download
M fpdfsdk/src/fpdf_dataavail.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdf_ext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 9 chunks +9 lines, -9 lines 0 comments Download
M fpdfsdk/src/fpdfeditimg.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdfeditpage.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fpdfformfill.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdfppo.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M fpdfsdk/src/fpdfsave.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 13 chunks +17 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, for review. Jun, FYI following your layering guidelines.
5 years, 2 months ago (2015-10-15 17:36:56 UTC) #2
Tom Sepez
https://codereview.chromium.org/1396283006/diff/1/fpdfsdk/include/fsdk_define.h File fpdfsdk/include/fsdk_define.h (right): https://codereview.chromium.org/1396283006/diff/1/fpdfsdk/include/fsdk_define.h#newcode60 fpdfsdk/include/fsdk_define.h:60: CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); Should this be an inline? Its ...
5 years, 2 months ago (2015-10-15 17:45:56 UTC) #3
Tom Sepez
On 2015/10/15 17:45:56, Tom Sepez wrote: > https://codereview.chromium.org/1396283006/diff/1/fpdfsdk/include/fsdk_define.h > File fpdfsdk/include/fsdk_define.h (right): > > https://codereview.chromium.org/1396283006/diff/1/fpdfsdk/include/fsdk_define.h#newcode60 ...
5 years, 2 months ago (2015-10-15 17:47:56 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/1396283006/diff/1/fpdfsdk/include/fsdk_define.h File fpdfsdk/include/fsdk_define.h (right): https://codereview.chromium.org/1396283006/diff/1/fpdfsdk/include/fsdk_define.h#newcode60 fpdfsdk/include/fsdk_define.h:60: CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); On 2015/10/15 17:45:56, Tom Sepez ...
5 years, 2 months ago (2015-10-15 21:50:24 UTC) #5
Tom Sepez
5 years, 2 months ago (2015-10-15 21:51:47 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
86adb658843658969041a13bf6cf0cc950ffe8ed (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698