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

Issue 828203002: Clean up bookmark related codes. (Closed)

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

Description

Clean up bookmark related codes. Remove CPDF_Dictionary*() operator in CPDF_Bookmark class. Unify naming conventions and coding styles. Change some functions to const. Change the name of function argument to |pDict| for FPDF_xxx type variable. This makes the code more clear and gives better variable naming R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/263842843f4b817b9713eb3a081e297e1708f582

Patch Set 1 #

Patch Set 2 : clean #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : Address comment #

Total comments: 3

Patch Set 5 : Constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -164 lines) Patch
M core/include/fpdfdoc/fpdf_doc.h View 1 2 3 4 3 chunks +13 lines, -33 lines 0 comments Download
M core/src/fpdfdoc/doc_bookmark.cpp View 1 2 3 4 3 chunks +22 lines, -21 lines 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 1 2 3 4 6 chunks +116 lines, -110 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Bo Xu
5 years, 11 months ago (2015-01-01 06:40:58 UTC) #2
Tom Sepez
https://codereview.chromium.org/828203002/diff/40001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/828203002/diff/40001/core/include/fpdfdoc/fpdf_doc.h#newcode81 core/include/fpdfdoc/fpdf_doc.h:81: CPDF_Bookmark GetFirstChild(CPDF_Bookmark parent) const; nit: args here should probably ...
5 years, 11 months ago (2015-01-05 18:08:32 UTC) #3
Bo Xu
https://codereview.chromium.org/828203002/diff/40001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/828203002/diff/40001/core/include/fpdfdoc/fpdf_doc.h#newcode81 core/include/fpdfdoc/fpdf_doc.h:81: CPDF_Bookmark GetFirstChild(CPDF_Bookmark parent) const; On 2015/01/05 18:08:32, Tom Sepez ...
5 years, 11 months ago (2015-01-05 18:45:09 UTC) #4
Tom Sepez
LGTM with nits. https://codereview.chromium.org/828203002/diff/60001/core/include/fpdfdoc/fpdf_doc.h File core/include/fpdfdoc/fpdf_doc.h (right): https://codereview.chromium.org/828203002/diff/60001/core/include/fpdfdoc/fpdf_doc.h#newcode96 core/include/fpdfdoc/fpdf_doc.h:96: CPDF_Bookmark(CPDF_Dictionary* pDict = NULL) : m_pDict(pDict) ...
5 years, 11 months ago (2015-01-05 19:24:56 UTC) #5
Bo Xu
A few more changes with the explicit constructor, please take a look again. https://codereview.chromium.org/828203002/diff/60001/core/include/fpdfdoc/fpdf_doc.h File ...
5 years, 11 months ago (2015-01-05 20:07:13 UTC) #6
Tom Sepez
lgtm
5 years, 11 months ago (2015-01-05 20:21:09 UTC) #7
Bo Xu
5 years, 11 months ago (2015-01-05 20:40:05 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
263842843f4b817b9713eb3a081e297e1708f582 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698