Add new public APIs to find the z-order for links and widgets.
authorLei Zhang <thestig@chromium.org>
Sat, 15 Aug 2015 02:02:30 +0000 (19:02 -0700)
committerLei Zhang <thestig@chromium.org>
Sat, 15 Aug 2015 02:02:30 +0000 (19:02 -0700)
commit24fbf134d43a7ec4226de3db601f0a617bbe428b
treeb4313e784666623df89c635a3f9841a7cc7e817a
parentcb62e7657b3a9a04142028a4e6614029a08e894b
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

Review URL: https://codereview.chromium.org/1278053004 .
core/include/fpdfdoc/fpdf_doc.h
core/src/fpdfdoc/doc_form.cpp
core/src/fpdfdoc/doc_formcontrol.cpp
core/src/fpdfdoc/doc_link.cpp
fpdfsdk/src/fpdfdoc.cpp
fpdfsdk/src/fpdfformfill.cpp
fpdfsdk/src/fpdfview_c_api_test.c
public/fpdf_doc.h
public/fpdf_formfill.h