summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_page.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-12 16:35:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-12 16:35:49 +0000
commit56cc5c12a7f569f218c44a6186cdc3676ea0793b (patch)
treefd03d43e9e59d28554d7169f319f421dad6f8832 /fpdfsdk/fpdfxfa/cpdfxfa_page.h
parenta105fa126cfc2de661dca824bd307aa329e22c9d (diff)
downloadpdfium-56cc5c12a7f569f218c44a6186cdc3676ea0793b.tar.xz
Add CPDF_Page::DeviceToPage() / PageToDevice().
Just like CPDFXFA_Page. Also mark the methods const. Change-Id: I6717b4b61a29663780f45bf872f76fe8e671df75 Reviewed-on: https://pdfium-review.googlesource.com/30132 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_page.h')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_page.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.h b/fpdfsdk/fpdfxfa/cpdfxfa_page.h
index 0acec981c6..aef1b0b539 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_page.h
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.h
@@ -42,13 +42,13 @@ class CPDFXFA_Page : public Retainable {
int rotate,
const CFX_PointF& device_point,
double* page_x,
- double* page_y);
+ double* page_y) const;
void PageToDevice(const FX_RECT& rect,
int rotate,
double page_x,
double page_y,
int* device_x,
- int* device_y);
+ int* device_y) const;
CFX_Matrix GetDisplayMatrix(const FX_RECT& rect, int iRotate) const;