OLD | NEW |
---|---|
(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 | |
OLD | NEW |