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

Side by Side 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: Review feedback (comment, initialization) Created 6 years, 2 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 unified diff | Download patch
« public/web/WebFrame.h ('K') | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebPrintPresetOptions_h
6 #define WebPrintPresetOptions_h
7
8 #include <vector>
9
10 namespace blink {
11
12 struct WebPageRange;
13 typedef std::vector<WebPageRange> WebPageRanges;
14
15 enum WebDuplexMode {
16 WebUnknownDuplexMode = -1,
17 WebSimplex,
18 WebLongEdge,
19 WebShortEdge
20 };
21
Vitaly Buka (NO REVIEWS) 2014/10/10 00:51:01 Should we put WebPageRange, WebPageRanges and WebD
Nikhil 2014/10/20 10:04:23 We can do that. I don't have strong preference her
22 struct WebPageRange {
23 int from;
24 int to;
25 };
26
27 struct WebPrintPresetOptions {
28 WebPrintPresetOptions()
29 : isScalingDisabled(false)
30 , copies(0)
31 , duplexMode(WebUnknownDuplexMode) { }
32
33 // Specifies whether scaling is disabled.
34 bool isScalingDisabled;
35
36 // Specifies the number of copies to be printed.
37 int copies;
38
39 // Specifies duplex mode to be used for printing.
40 WebDuplexMode duplexMode;
41
42 // Specifies page range to be used for printing.
43 WebPageRanges pageRanges;
44 };
45
46 } // namespace blink
47
48 #endif
OLDNEW
« public/web/WebFrame.h ('K') | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698