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

Issue 1980973002: Convert border style defines to an enum class. (Closed)

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

Description

Convert border style defines to an enum class. There were two defines, BBS_ and PBS_ for the various border styles in the system. They were the same, except PBS_ had an extra SHADOW define which was never used. This CL combines both of those into a single BorderStyle enum class and updates the code as needed. Also, removes ADDBIT, GETBIT unused defines. Updates barcode code to use the util.h defines instead of redefinition. fsdk_baseannot names starting with _ were cleaned up and some #defines moved to constants. Committed: https://pdfium.googlesource.com/pdfium/+/92cb5e580cecf0412b74d51e8863ed557e2bd47a

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -295 lines) Patch
M core/fpdfdoc/cpvt_generateap.h View 2 chunks +2 lines, -9 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 8 chunks +14 lines, -13 lines 0 comments Download
M core/fpdfdoc/include/fpdf_doc.h View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fxcodec/codec/fx_codec_fax.cpp View 1 chunk +0 lines, -5 lines 1 comment Download
M fpdfsdk/formfiller/cffl_formfiller.cpp View 1 chunk +7 lines, -16 lines 0 comments Download
M fpdfsdk/fsdk_baseannot.cpp View 9 chunks +39 lines, -33 lines 0 comments Download
M fpdfsdk/fsdk_baseform.cpp View 12 chunks +57 lines, -67 lines 0 comments Download
M fpdfsdk/include/fsdk_baseannot.h View 2 chunks +3 lines, -14 lines 0 comments Download
M fpdfsdk/include/fsdk_common.h View 1 chunk +0 lines, -6 lines 0 comments Download
M fpdfsdk/javascript/Field.cpp View 2 chunks +12 lines, -15 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_ComboBox.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Edit.cpp View 6 chunks +20 lines, -10 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_EditCtrl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_ScrollBar.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Utils.h View 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Utils.cpp View 17 chunks +32 lines, -36 lines 1 comment Download
M fpdfsdk/pdfwindow/PWL_Wnd.h View 5 chunks +6 lines, -14 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Wnd.cpp View 2 chunks +16 lines, -36 lines 0 comments Download
M xfa/fwl/basewidget/fxmath_barcodeimp.cpp View 4 chunks +5 lines, -13 lines 1 comment Download

Messages

Total messages: 8 (4 generated)
dsinclair
PTAL. https://codereview.chromium.org/1980973002/diff/1/fpdfsdk/pdfwindow/PWL_Utils.cpp File fpdfsdk/pdfwindow/PWL_Utils.cpp (left): https://codereview.chromium.org/1980973002/diff/1/fpdfsdk/pdfwindow/PWL_Utils.cpp#oldcode1441 fpdfsdk/pdfwindow/PWL_Utils.cpp:1441: case PBS_SHADOW: { We never assigned a value ...
4 years, 7 months ago (2016-05-16 18:04:24 UTC) #2
Tom Sepez
LGTM, but also itemize the few unrelated changes in the CL description, e.g. the removal ...
4 years, 7 months ago (2016-05-16 18:17:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1980973002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1980973002/1
4 years, 7 months ago (2016-05-16 18:38:11 UTC) #6
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 18:38:33 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/92cb5e580cecf0412b74d51e8863ed557e2b...

Powered by Google App Engine
This is Rietveld 408576698