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

Issue 1634373003: Refactor CPDF_Object and its subclasses. (Closed)

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

Description

Refactor CPDF_Object and its subclasses. Mainly use virtual functions to replace functions with switch statements. Also remove a few unused functions and make some format changes. BUG=pdfium:63 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/df1ab41e000069dda7bf21527308f3bf41e126ca

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : Address comments and change EOL #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+736 lines, -835 lines) Patch
M core/include/fpdfapi/fpdf_objects.h View 1 2 3 11 chunks +230 lines, -210 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp View 1 2 3 40 chunks +130 lines, -464 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects_unittest.cpp View 1 2 1 chunk +375 lines, -160 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Wei Li
PTAL, thanks
4 years, 11 months ago (2016-01-27 02:59:56 UTC) #5
Lei Zhang
Thank you for taking on this bug. https://codereview.chromium.org/1634373003/diff/20001/core/include/fpdfapi/fpdf_objects.h File core/include/fpdfapi/fpdf_objects.h (right): https://codereview.chromium.org/1634373003/diff/20001/core/include/fpdfapi/fpdf_objects.h#newcode61 core/include/fpdfapi/fpdf_objects.h:61: virtual CFX_WideString ...
4 years, 11 months ago (2016-01-27 23:17:00 UTC) #7
Wei Li
https://codereview.chromium.org/1634373003/diff/20001/core/include/fpdfapi/fpdf_objects.h File core/include/fpdfapi/fpdf_objects.h (right): https://codereview.chromium.org/1634373003/diff/20001/core/include/fpdfapi/fpdf_objects.h#newcode61 core/include/fpdfapi/fpdf_objects.h:61: virtual CFX_WideString GetUnicodeText(CFX_CharMap* pCharMap = NULL) const { On ...
4 years, 10 months ago (2016-01-28 18:23:14 UTC) #8
Lei Zhang
lgtm
4 years, 10 months ago (2016-01-28 22:54:03 UTC) #9
Wei Li
4 years, 10 months ago (2016-01-30 01:30:33 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:100001) manually as
df1ab41e000069dda7bf21527308f3bf41e126ca (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698