summaryrefslogtreecommitdiffstats
path: root/pdf/pdfium/pdfium_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdfium/pdfium_engine.h')
-rw-r--r--pdf/pdfium/pdfium_engine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h
index c8ee6bd..ff45f45 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -84,7 +84,6 @@ class PDFiumEngine : public PDFEngine,
virtual int GetMostVisiblePage();
virtual pp::Rect GetPageRect(int index);
virtual pp::Rect GetPageContentsRect(int index);
- virtual pp::Rect GetPageScreenRect(int page_index) const;
virtual int GetVerticalScrollbarYPosition() { return position_.y(); }
virtual void PaintThumbnail(pp::ImageData* image_data, int index);
virtual void SetGrayscale(bool grayscale);
@@ -374,6 +373,10 @@ class PDFiumEngine : public PDFEngine,
// Returns the currently visible rectangle in document coordinates.
pp::Rect GetVisibleRect() const;
+ // Returns a page's rect in screen coordinates, as well as its surrounding
+ // border areas and bottom separator.
+ pp::Rect GetPageScreenRect(int page_index) const;
+
// Given a rectangle in document coordinates, returns the rectange into screen
// coordinates (i.e. 0,0 is top left corner of plugin area). If it's not
// visible, an empty rectangle is returned.