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

Unified Diff: pdf/pdf_engine.h

Issue 974183003: Print Preview: Support the duplex preset in PDFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tsepez comments Created 5 years, 10 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/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_assert_matching_enums.cc » ('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 5f196d1b3cc92c5373cdd342707fe4f351027fa9..bcfa7e6475e907400e5e56f4bd6b76f89067a8fe 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -49,7 +49,6 @@ void ShutdownSDK();
// This class encapsulates a PDF rendering engine.
class PDFEngine {
public:
-
enum DocumentPermission {
PERMISSION_COPY,
PERMISSION_COPY_ACCESSIBLE,
@@ -178,7 +177,7 @@ class PDFEngine {
virtual uint32 GetBackgroundColor() = 0;
// Sets selection status.
- virtual void IsSelectingChanged(bool is_selecting){};
+ virtual void IsSelectingChanged(bool is_selecting) {}
};
// Factory method to create an instance of the PDF Engine.
@@ -251,6 +250,8 @@ class PDFEngine {
virtual bool GetPrintScaling() = 0;
// Returns number of copies to be printed.
virtual int GetCopiesToPrint() = 0;
+ // Returns the duplex setting.
+ virtual int GetDuplexType() = 0;
// Returns a VarArray of Bookmarks, each a VarDictionary containing the
// following key/values:
@@ -280,15 +281,15 @@ class PDFEngine {
class PDFEngineExports {
public:
struct RenderingSettings {
- RenderingSettings(int dpi_x,
- int dpi_y,
- const pp::Rect& bounds,
- bool fit_to_bounds,
- bool stretch_to_bounds,
- bool keep_aspect_ratio,
- bool center_in_bounds,
- bool autorotate)
- : dpi_x(dpi_x), dpi_y(dpi_y), bounds(bounds),
+ RenderingSettings(int dpi_x,
+ int dpi_y,
+ const pp::Rect& bounds,
+ bool fit_to_bounds,
+ bool stretch_to_bounds,
+ bool keep_aspect_ratio,
+ bool center_in_bounds,
+ bool autorotate)
+ : dpi_x(dpi_x), dpi_y(dpi_y), bounds(bounds),
fit_to_bounds(fit_to_bounds), stretch_to_bounds(stretch_to_bounds),
keep_aspect_ratio(keep_aspect_ratio),
center_in_bounds(center_in_bounds), autorotate(autorotate) {
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_assert_matching_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698