Index: pdf/pdfium/pdfium_engine.h |
diff --git a/pdf/pdfium/pdfium_engine.h b/pdf/pdfium/pdfium_engine.h |
index e0b8af5bb8a07bdff68a99087b402e5fe6710d15..88a25752e44cbcd51ba1bbcad4253cec92af76d7 100644 |
--- a/pdf/pdfium/pdfium_engine.h |
+++ b/pdf/pdfium/pdfium_engine.h |
@@ -77,16 +77,19 @@ |
void RotateCounterclockwise() override; |
std::string GetSelectedText() override; |
std::string GetLinkAtPosition(const pp::Point& point) override; |
+ bool IsSelecting() override; |
bool HasPermission(DocumentPermission permission) const override; |
void SelectAll() override; |
int GetNumberOfPages() override; |
pp::VarArray GetBookmarks() override; |
int GetNamedDestinationPage(const std::string& destination) override; |
+ int GetFirstVisiblePage() override; |
int GetMostVisiblePage() override; |
pp::Rect GetPageRect(int index) override; |
pp::Rect GetPageContentsRect(int index) override; |
pp::Rect GetPageScreenRect(int page_index) const override; |
int GetVerticalScrollbarYPosition() override { return position_.y(); } |
+ void PaintThumbnail(pp::ImageData* image_data, int index) override; |
void SetGrayscale(bool grayscale) override; |
void OnCallback(int id) override; |
std::string GetPageAsJSON(int index) override; |
@@ -667,6 +670,10 @@ |
// Holds the page index of the last page that the mouse clicked on. |
int last_page_mouse_down_; |
+ // Holds the page index of the first visible page; refreshed by calling |
+ // CalculateVisiblePages() |
+ int first_visible_page_; |
+ |
// Holds the page index of the most visible page; refreshed by calling |
// CalculateVisiblePages() |
int most_visible_page_; |