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

Unified Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 958423005: Handle overlapping links and widgets. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/include/fpdfdoc/fpdf_doc.h
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h
index 60f41a55542537480757661c4a3cd4b6c7aaa1fc..baba7690a1318d19c4fa118d55f4edf25118e5b0 100644
--- a/core/include/fpdfdoc/fpdf_doc.h
+++ b/core/include/fpdfdoc/fpdf_doc.h
@@ -528,30 +528,20 @@ class CPDF_LinkList : public CFX_Object
{
public:
- CPDF_LinkList(CPDF_Document* pDoc)
- {
- m_pDocument = pDoc;
- }
+ CPDF_LinkList();
~CPDF_LinkList();
CPDF_Link GetLinkAtPoint(CPDF_Page* pPage, FX_FLOAT pdf_x, FX_FLOAT pdf_y);
- int CountLinks(CPDF_Page* pPage);
-
- CPDF_Link GetLink(CPDF_Page* pPage, int index);
-
- CPDF_Document* GetDocument() const
- {
- return m_pDocument;
- }
protected:
- CPDF_Document* m_pDocument;
-
CFX_MapPtrToPtr m_PageMap;
CFX_PtrArray* GetPageLinks(CPDF_Page* pPage);
+ static FX_BOOL IsLink(CPDF_Dictionary* pAnnot);
+ static FX_BOOL IsWidget(CPDF_Dictionary* pAnnot);
+ static CFX_FloatRect GetWidgetRect(CPDF_Dictionary* pWidget);
void LoadPageLinks(CPDF_Page* pPage, CFX_PtrArray* pList);
};
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698