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

Unified Diff: public/web/WebPrintPresetOptions.h

Issue 591053002: Support print preset options for pdf document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 1 month 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 | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPrintPresetOptions.h
diff --git a/public/web/WebPrintPresetOptions.h b/public/web/WebPrintPresetOptions.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff7881643fb15d499d3d5e0490e3522a8ab53db2
--- /dev/null
+++ b/public/web/WebPrintPresetOptions.h
@@ -0,0 +1,48 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebPrintPresetOptions_h
+#define WebPrintPresetOptions_h
+
+#include <vector>
+
+namespace blink {
+
+struct WebPageRange;
+typedef std::vector<WebPageRange> WebPageRanges;
+
+enum WebDuplexMode {
+ WebUnknownDuplexMode = -1,
+ WebSimplex,
+ WebLongEdge,
+ WebShortEdge
+};
+
+struct WebPageRange {
+ int from;
+ int to;
+};
+
+struct WebPrintPresetOptions {
+ WebPrintPresetOptions()
+ : isScalingDisabled(false)
+ , copies(0)
+ , duplexMode(WebUnknownDuplexMode) { }
+
+ // Specifies whether scaling is disabled.
+ bool isScalingDisabled;
+
+ // Specifies the number of copies to be printed.
+ int copies;
+
+ // Specifies duplex mode to be used for printing.
+ WebDuplexMode duplexMode;
+
+ // Specifies page range to be used for printing.
+ WebPageRanges pageRanges;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698