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

Unified Diff: pdf/pdfium/pdfium_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 | « 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 017bbdccbba98bb011254df573cf03e10bd4f9a2..dff6a93262e2bd3edc5e9f8b85c464578282267b 100644
--- a/pdf/pdfium/pdfium_engine.h
+++ b/pdf/pdfium/pdfium_engine.h
@@ -104,6 +104,9 @@ class PDFiumEngine : public PDFEngine,
bool GetPageSizeAndUniformity(pp::Size* size) override;
void AppendBlankPages(int num_pages) override;
void AppendPage(PDFEngine* engine, int index) override;
+#if defined(PDF_USE_XFA)
+ virtual void SetScrollPosition(const pp::Point& position) = 0;
+#endif
bool IsProgressiveLoad() override;
std::string GetMetadata(const std::string& key) override;
@@ -511,7 +514,7 @@ class PDFiumEngine : public PDFEngine,
static void Form_GotoPage(IPDF_JSPLATFORM* param, int page_number);
static int Form_Browse(IPDF_JSPLATFORM* param, void* file_path, int length);
-#ifdef PDF_USE_XFA
+#if defined(PDF_USE_XFA)
static void Form_EmailTo(FPDF_FORMFILLINFO* param,
FPDF_FILEHANDLER* file_handler,
FPDF_WIDESTRING to,
@@ -573,7 +576,7 @@ class PDFiumEngine : public PDFEngine,
static int Form_GetLanguage(FPDF_FORMFILLINFO* param,
void* language,
int length);
-#endif // PDF_USE_XFA
+#endif // defined(PDF_USE_XFA)
// IFSDK_PAUSE callbacks
static FPDF_BOOL Pause_NeedToPauseNow(IFSDK_PAUSE* param);
« 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