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

Issue 1278053004: Add new public APIs to find the z-order for links and widgets. (Closed)

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

Description

Add new public APIs to find the z-order for links and widgets. - Implement FPDFLink_GetLinkZOrderAtPoint(). - Implement FPDFPage_FormFieldZOrderAtPoint(). - Mark FPDPage_HasFormFieldAtPoint() as deprecated. - Modify CPDF_LinkList and CPDF_InterForm to support new APIs. - Clean up dead code in CPDF_LinkList and CPDF_InterForm. BUG=chromium:515837 R=jun_fang@foxitsoftware.com, tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/24fbf134d43a7ec4226de3db601f0a617bbe428b

Patch Set 1 #

Total comments: 14

Patch Set 2 : address most comments #

Total comments: 4

Patch Set 3 : address rest of comments #

Total comments: 7

Patch Set 4 : rebase, cl format #

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -426 lines) Patch
M core/include/fpdfdoc/fpdf_doc.h View 1 2 3 8 chunks +16 lines, -42 lines 0 comments Download
M core/src/fpdfdoc/doc_form.cpp View 1 2 5 chunks +37 lines, -282 lines 0 comments Download
M core/src/fpdfdoc/doc_formcontrol.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfdoc/doc_link.cpp View 1 2 3 1 chunk +46 lines, -53 lines 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 1 2 3 3 chunks +44 lines, -19 lines 0 comments Download
M fpdfsdk/src/fpdfformfill.cpp View 1 2 3 4 2 chunks +30 lines, -9 lines 0 comments Download
M fpdfsdk/src/fpdfview_c_api_test.c View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M public/fpdf_doc.h View 1 2 3 1 chunk +29 lines, -10 lines 0 comments Download
M public/fpdf_formfill.h View 1 2 2 chunks +36 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
Lei Zhang
Note: previous discussion on https://codereview.chromium.org/958423005/ This CL will be used by https://codereview.chromium.org/1274413002/
5 years, 4 months ago (2015-08-07 07:47:27 UTC) #2
Tom Sepez
Nothing but nits and one illegal cast. LGTM after fixing. https://codereview.chromium.org/1278053004/diff/1/core/src/fpdfdoc/doc_form.cpp File core/src/fpdfdoc/doc_form.cpp (right): https://codereview.chromium.org/1278053004/diff/1/core/src/fpdfdoc/doc_form.cpp#newcode878 ...
5 years, 4 months ago (2015-08-07 18:14:07 UTC) #4
Tom Sepez
https://codereview.chromium.org/1278053004/diff/20001/public/fpdf_doc.h File public/fpdf_doc.h (right): https://codereview.chromium.org/1278053004/diff/20001/public/fpdf_doc.h#newcode208 public/fpdf_doc.h:208: // Higher numbers is closer to the front. nit: ...
5 years, 4 months ago (2015-08-07 22:13:31 UTC) #5
Lei Zhang
https://codereview.chromium.org/1278053004/diff/1/core/src/fpdfdoc/doc_form.cpp File core/src/fpdfdoc/doc_form.cpp (right): https://codereview.chromium.org/1278053004/diff/1/core/src/fpdfdoc/doc_form.cpp#newcode878 core/src/fpdfdoc/doc_form.cpp:878: for (FX_DWORD i = pAnnotList->GetCount(); i > 0; i--) ...
5 years, 4 months ago (2015-08-07 23:03:41 UTC) #6
Lei Zhang
Jun, I would like your input since we are adding a new API. Tom, PTAL ...
5 years, 4 months ago (2015-08-07 23:43:16 UTC) #7
jun_fang
On 2015/08/07 23:43:16, Lei Zhang wrote: > Jun, I would like your input since we ...
5 years, 4 months ago (2015-08-08 01:02:38 UTC) #8
Lei Zhang
On 2015/08/08 01:02:38, jun_fang wrote: > On 2015/08/07 23:43:16, Lei Zhang wrote: > > Jun, ...
5 years, 4 months ago (2015-08-08 01:20:36 UTC) #9
jun_fang
On 2015/08/08 01:20:36, Lei Zhang wrote: > On 2015/08/08 01:02:38, jun_fang wrote: > > On ...
5 years, 4 months ago (2015-08-10 23:50:53 UTC) #10
jun_fang
https://codereview.chromium.org/1278053004/diff/40001/fpdfsdk/src/fpdfformfill.cpp File fpdfsdk/src/fpdfformfill.cpp (right): https://codereview.chromium.org/1278053004/diff/40001/fpdfsdk/src/fpdfformfill.cpp#newcode45 fpdfsdk/src/fpdfformfill.cpp:45: CPDF_InterForm pInterForm(pPage->m_pDocument, FALSE); nit: p as a prefix represents ...
5 years, 4 months ago (2015-08-10 23:51:00 UTC) #11
Lei Zhang
On 2015/08/10 23:50:53, jun_fang wrote: > Thanks for the clarification. I have a comment on ...
5 years, 4 months ago (2015-08-11 16:02:14 UTC) #12
Tom Sepez
Still LGTM https://codereview.chromium.org/1278053004/diff/40001/core/src/fpdfdoc/doc_form.cpp File core/src/fpdfdoc/doc_form.cpp (right): https://codereview.chromium.org/1278053004/diff/40001/core/src/fpdfdoc/doc_form.cpp#newcode265 core/src/fpdfdoc/doc_form.cpp:265: delete m_pFieldTree; nit: maybe unique_ptr to tree ...
5 years, 4 months ago (2015-08-11 17:25:01 UTC) #13
jun_fang
On 2015/08/11 16:02:14, Lei Zhang wrote: > On 2015/08/10 23:50:53, jun_fang wrote: > > Thanks ...
5 years, 4 months ago (2015-08-11 17:46:43 UTC) #14
jun_fang
On 2015/08/11 17:46:43, jun_fang wrote: > On 2015/08/11 16:02:14, Lei Zhang wrote: > > On ...
5 years, 4 months ago (2015-08-11 17:47:03 UTC) #15
Lei Zhang
On 2015/08/11 17:46:43, jun_fang wrote: > Here is an example: > There are one link ...
5 years, 4 months ago (2015-08-15 02:00:27 UTC) #16
Lei Zhang
https://codereview.chromium.org/1278053004/diff/40001/fpdfsdk/src/fpdfformfill.cpp File fpdfsdk/src/fpdfformfill.cpp (right): https://codereview.chromium.org/1278053004/diff/40001/fpdfsdk/src/fpdfformfill.cpp#newcode45 fpdfsdk/src/fpdfformfill.cpp:45: CPDF_InterForm pInterForm(pPage->m_pDocument, FALSE); On 2015/08/10 23:51:00, jun_fang wrote: > ...
5 years, 4 months ago (2015-08-15 02:02:28 UTC) #17
Lei Zhang
5 years, 4 months ago (2015-08-15 02:02:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
24fbf134d43a7ec4226de3db601f0a617bbe428b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698