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

Unified Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 345123002: Add support to extract viewer preference (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review feedback Created 6 years, 6 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
Index: core/include/fpdfdoc/fpdf_doc.h
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h
index cbb0fd4a1147f298357ef732d3600b93894c9a4b..e9b29e9cece0c0397d5bd3a27c90ca145208f8a8 100644
--- a/core/include/fpdfdoc/fpdf_doc.h
+++ b/core/include/fpdfdoc/fpdf_doc.h
@@ -1647,6 +1647,13 @@ class CPDF_ViewerPreferences
{
public:
+ enum DuplexType {
Vitaly Buka (NO REVIEWS) 2014/06/25 18:02:24 Maybe? None -> DuplexUndefined Simplex -> DuplexOf
Nikhil 2014/06/26 10:21:38 Done.
+ None = 0,
+ Simplex,
+ DuplexFlipShortEdge,
+ DuplexFlipLongEdge
+ };
+
CPDF_ViewerPreferences(CPDF_Document *pDoc);
@@ -1657,6 +1664,11 @@ public:
FX_BOOL PrintScaling() const;
+ FX_INT32 NumCopies() const;
+
+ CPDF_Array* PrintPageRange() const;
+
+ FX_INT32 Duplex() const;
Vitaly Buka (NO REVIEWS) 2014/06/25 18:02:24 this should return DuplexType
Nikhil 2014/06/26 10:21:38 Done.
protected:
CPDF_Document* m_pDoc;
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_viewerPreferences.cpp » ('j') | core/src/fpdfdoc/doc_viewerPreferences.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698