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

Issue 2384323005: Cleanup some CPDFSDK_PageView annotation code. (Closed)

Created:
4 years, 2 months ago by dsinclair
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Cleanup some CPDFSDK_PageView annotation code. This Cl cleans up the code regarding CPDFSDK_Annots in CPDFSDK_PageView. This includes: * Makes DeleteAnnot XFA only and wraps at the call site. * Removes unused methods * Replaces use of CountAnnots and GetAnnot with vector iteration * Removes {Set|Kill}FocusAnnot from CPDFSDK_PageView * Renames m_fxAnnotArray to m_SDKAnnotArray Committed: https://pdfium.googlesource.com/pdfium/+/8afe15a019c78a24168ebc42306342c25358ccdf

Patch Set 1 #

Total comments: 9

Patch Set 2 : Review feedback #

Total comments: 8

Patch Set 3 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -211 lines) Patch
M fpdfsdk/cba_annotiterator.h View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M fpdfsdk/cba_annotiterator.cpp View 1 2 4 chunks +67 lines, -66 lines 0 comments Download
M fpdfsdk/cpdfsdk_document.h View 1 chunk +3 lines, -4 lines 0 comments Download
M fpdfsdk/cpdfsdk_document.cpp View 5 chunks +13 lines, -21 lines 0 comments Download
M fpdfsdk/cpdfsdk_pageview.h View 3 chunks +11 lines, -23 lines 0 comments Download
M fpdfsdk/cpdfsdk_pageview.cpp View 14 chunks +23 lines, -89 lines 0 comments Download
M fpdfsdk/javascript/Document.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/javascript/app.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (8 generated)
dsinclair
PTAL. https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp File fpdfsdk/cba_annotiterator.cpp (right): https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp#newcode80 fpdfsdk/cba_annotiterator.cpp:80: std::vector<CPDFSDK_Annot*> sa; This chunk of code was the ...
4 years, 2 months ago (2016-10-05 14:06:47 UTC) #4
Tom Sepez
... and so forth. https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp File fpdfsdk/cba_annotiterator.cpp (right): https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp#newcode70 fpdfsdk/cba_annotiterator.cpp:70: if (m_eTabOrder == STRUCTURE) { ...
4 years, 2 months ago (2016-10-05 17:08:28 UTC) #7
dsinclair
https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp File fpdfsdk/cba_annotiterator.cpp (right): https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp#newcode70 fpdfsdk/cba_annotiterator.cpp:70: if (m_eTabOrder == STRUCTURE) { On 2016/10/05 17:08:28, Tom ...
4 years, 2 months ago (2016-10-05 17:52:51 UTC) #8
Tom Sepez
lgtm https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp File fpdfsdk/cba_annotiterator.cpp (right): https://codereview.chromium.org/2384323005/diff/1/fpdfsdk/cba_annotiterator.cpp#newcode93 fpdfsdk/cba_annotiterator.cpp:93: int nLeftTopIndex = -1; On 2016/10/05 17:52:51, dsinclair ...
4 years, 2 months ago (2016-10-05 17:59:53 UTC) #9
dsinclair
https://codereview.chromium.org/2384323005/diff/20001/fpdfsdk/cba_annotiterator.cpp File fpdfsdk/cba_annotiterator.cpp (right): https://codereview.chromium.org/2384323005/diff/20001/fpdfsdk/cba_annotiterator.cpp#newcode107 fpdfsdk/cba_annotiterator.cpp:107: std::sort(sa.begin(), sa.end(), CompareByLeftAscending); On 2016/10/05 17:59:52, Tom Sepez wrote: ...
4 years, 2 months ago (2016-10-05 18:26:56 UTC) #10
dsinclair
4 years, 2 months ago (2016-10-05 18:27:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2384323005/40001
4 years, 2 months ago (2016-10-05 18:27:34 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 19:00:39 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/8afe15a019c78a24168ebc42306342c25358...

Powered by Google App Engine
This is Rietveld 408576698