| 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
|
|
|