summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_dest.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-01-04 11:54:18 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-04 19:45:11 +0000
commitde3f3fc5e16a2ee4fad2bdc0cda9e2ce73fd4fe3 (patch)
treedebf6885600821ca264fb69957258fdbf767bb43 /core/fpdfdoc/cpdf_dest.h
parentcb6c8d4ec4781c7db8448f2b4d9a8af879cf014e (diff)
downloadpdfium-de3f3fc5e16a2ee4fad2bdc0cda9e2ce73fd4fe3.tar.xz
Open FPDFDest_GetView API.
FPDFDest_GetView returns the view fit type and the parameters of the view for a given destination. This is useful to have more precise internal links and bookmarks that are able to manipulate the viewport position and zoom level to focus on the part of the PDF that it links to. Bug: 55776, 535978, 748852 Change-Id: Ibf7df40a852030d75ec78cec7662380319569850 Reviewed-on: https://pdfium-review.googlesource.com/21790 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_dest.h')
-rw-r--r--core/fpdfdoc/cpdf_dest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fpdfdoc/cpdf_dest.h b/core/fpdfdoc/cpdf_dest.h
index 2836ebb471..4959901972 100644
--- a/core/fpdfdoc/cpdf_dest.h
+++ b/core/fpdfdoc/cpdf_dest.h
@@ -25,7 +25,11 @@ class CPDF_Dest {
ByteString GetRemoteName();
int GetPageIndex(CPDF_Document* pDoc);
uint32_t GetPageObjNum();
+
+ // Returns the zoom mode, as one of the PDFDEST_VIEW_* values in fpdf_doc.h.
int GetZoomMode();
+
+ unsigned int GetNumParams();
float GetParam(int index);
bool GetXYZ(bool* pHasX,