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

Unified Diff: pdf/pdf_engine.h

Issue 2267063002: PDF: Put back removed SetScrollPosition(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index 5e1e2647b3a387399a563dcae4e76a1118446048..673a27c420ce0c2cb58c245d80c4fe87a62ea646 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -282,6 +282,13 @@ class PDFEngine {
// document at page |index|.
virtual void AppendPage(PDFEngine* engine, int index) = 0;
+#if defined(PDF_USE_XFA)
+ // Allow client to set scroll positions in document coordinates. Note that
+ // this is meant for cases where the device scale factor changes, and not for
+ // general scrolling - the engine will not repaint due to this.
+ virtual void SetScrollPosition(const pp::Point& position) = 0;
+#endif
+
virtual bool IsProgressiveLoad() = 0;
virtual std::string GetMetadata(const std::string& key) = 0;
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698