Chromium Code Reviews| Index: public/web/WebPrintPresetOptions.h |
| diff --git a/public/web/WebPrintPresetOptions.h b/public/web/WebPrintPresetOptions.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..78775bc10c3819612397d68aacfc72054544e9bb |
| --- /dev/null |
| +++ b/public/web/WebPrintPresetOptions.h |
| @@ -0,0 +1,44 @@ |
| +// 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 |
| + |
| +namespace blink { |
| + |
| +struct WebPageRange; |
| +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.
|
| + |
| +enum WebDuplexMode { |
| + WebUnknownDuplexMode = -1, |
| + WebSimplex, |
| + WebLongEdge, |
| + WebShortEdge |
| +}; |
| + |
| +struct WebPageRange { |
| + int from; |
| + int to; |
| +}; |
| + |
| +struct WebPrintPresetOptions { |
| + WebPrintPresetOptions() |
| + : 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
|
| + |
| + // 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 |