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

Unified Diff: pdf/pdfium/pdfium_engine.h

Issue 1557423002: Revert of Remove some dead PDF code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698