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

Issue 2060973002: Make code compile with clang_use_chrome_plugin (part I) (Closed)

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

Description

Make code compile with clang_use_chrome_plugin (part I) This change contains files in core/fpdfapi directory. This is part of the efforts to make PDFium code compilable by Clang chromium style plugins. The changes are mainly the following: -- move inline constructor/destructor of complex class/struct out-of-line; -- add constructor/destructor of complex class/struct if not explicitly defined; -- add explicit out-of-line copy constructor when needed; -- move inline virtual functions out-of-line; -- Properly mark virtual functions with 'override'; -- some minor cleanups; BUG=pdfium:469 Committed: https://pdfium.googlesource.com/pdfium/+/868150bd69f0f1f9472affc20deea0a9341bf22b

Patch Set 1 #

Total comments: 18

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -246 lines) Patch
M core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_edit/editint.h View 3 chunks +3 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 2 chunks +6 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_edit/include/cpdf_pagecontentgenerator.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_font/cpdf_simplefont.h View 2 chunks +2 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_font/font_int.h View 6 chunks +15 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font.cpp View 3 chunks +6 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 2 chunks +14 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_font/ttgsubtable.h View 1 6 chunks +83 lines, -99 lines 0 comments Download
M core/fpdfapi/fpdf_font/ttgsubtable.cpp View 1 22 chunks +140 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_allstates.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_colorspace.cpp View 4 chunks +55 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_contentmarkdata.h View 1 chunk +4 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_contentmarkdata.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_formobject.cpp View 2 chunks +16 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_graphicstates.h View 1 chunk +3 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_imageobject.cpp View 1 chunk +16 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pagemodule.h View 1 chunk +5 lines, -9 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pagemodule.cpp View 2 chunks +16 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pageobject.cpp View 1 chunk +60 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pageobjectholder.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_pathobject.cpp View 1 chunk +16 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp View 2 chunks +16 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_shadingpattern.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_textobject.cpp View 5 chunks +55 lines, -15 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_tilingpattern.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_colorspace.h View 3 chunks +10 lines, -27 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_form.h View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_formobject.h View 1 chunk +4 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_imageobject.h View 1 chunk +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_page.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_pageobject.h View 1 chunk +16 lines, -16 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_pathobject.h View 1 chunk +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h View 1 chunk +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_textobject.h View 1 chunk +11 lines, -11 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_data_avail.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp View 2 chunks +5 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_hint_tables.h View 1 chunk +1 line, -5 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_render/cpdf_pagerendercache.h View 1 chunk +1 line, -6 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_cache.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_text.cpp View 2 chunks +8 lines, -0 lines 0 comments Download
M core/fpdfapi/fpdf_render/render_int.h View 1 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
Wei Li
pls review, thanks
4 years, 6 months ago (2016-06-13 20:11:32 UTC) #7
dsinclair
lgtm w/ nits https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_font/ttgsubtable.cpp File core/fpdfapi/fpdf_font/ttgsubtable.cpp (right): https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_font/ttgsubtable.cpp#newcode73 core/fpdfapi/fpdf_font/ttgsubtable.cpp:73: bool CFX_CTTGSUBTable::IsOk(void) const { nit: blank ...
4 years, 6 months ago (2016-06-13 20:24:08 UTC) #8
Lei Zhang
https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_font/font_int.h File core/fpdfapi/fpdf_font/font_int.h (left): https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_font/font_int.h#oldcode143 core/fpdfapi/fpdf_font/font_int.h:143: FX_BOOL IsLoaded() const { return m_bLoaded; } Curious why ...
4 years, 6 months ago (2016-06-13 20:44:28 UTC) #10
Lei Zhang
lgtm https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp File core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp (right): https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp#newcode52 core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp:52: CPDF_TilingPattern* CPDF_ShadingPattern::AsTilingPattern() { need blank line above
4 years, 6 months ago (2016-06-13 20:48:43 UTC) #11
Wei Li
thanks https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_font/font_int.h File core/fpdfapi/fpdf_font/font_int.h (left): https://codereview.chromium.org/2060973002/diff/80001/core/fpdfapi/fpdf_font/font_int.h#oldcode143 core/fpdfapi/fpdf_font/font_int.h:143: FX_BOOL IsLoaded() const { return m_bLoaded; } On ...
4 years, 6 months ago (2016-06-13 21:38:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060973002/100001
4 years, 6 months ago (2016-06-13 21:57:02 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 21:57:36 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/868150bd69f0f1f9472affc20deea0a9341b...

Powered by Google App Engine
This is Rietveld 408576698