Chromium Code Reviews| 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 namespace blink { | |
| 9 | |
| 10 struct WebPageRange; | |
| 11 typedef std::vector<WebPageRange> WebPageRanges; | |
|
raymes
2014/09/29 05:24:14
Do you need to #include <vector>?
Nikhil
2014/10/09 08:43:56
It compiled fine earlier but I've included it now.
| |
| 12 | |
| 13 enum WebDuplexMode { | |
| 14 WebUnknownDuplexMode = -1, | |
| 15 WebSimplex, | |
| 16 WebLongEdge, | |
| 17 WebShortEdge | |
| 18 }; | |
| 19 | |
| 20 struct WebPageRange { | |
| 21 int from; | |
| 22 int to; | |
| 23 }; | |
| 24 | |
| 25 struct WebPrintPresetOptions { | |
| 26 WebPrintPresetOptions() | |
| 27 : duplexMode(WebUnknownDuplexMode) { } | |
|
raymes
2014/09/29 05:24:14
You will want to initialize all of the members.
Nikhil
2014/10/09 08:43:56
Thanks! Initialized everything except pageRanges b
| |
| 28 | |
| 29 // Specifies whether scaling is disabled. | |
| 30 bool isScalingDisabled; | |
| 31 | |
| 32 // Specifies the number of copies to be printed. | |
| 33 int copies; | |
| 34 | |
| 35 // Specifies duplex mode to be used for printing. | |
| 36 WebDuplexMode duplexMode; | |
| 37 | |
| 38 // Specifies page range to be used for printing. | |
| 39 WebPageRanges pageRanges; | |
| 40 }; | |
| 41 | |
| 42 } // namespace blink | |
| 43 | |
| 44 #endif | |
| OLD | NEW |