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

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: out-params should be by pointer 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/WebPlugin.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 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
OLDNEW
« public/web/WebPlugin.h ('K') | « public/web/WebPlugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698