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

Side by Side Diff: ppapi/api/dev/pp_print_settings_dev.idl

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | ppapi/c/dev/pp_print_settings_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** 6 /**
7 * This file defines the struct for PrintSettings. 7 * This file defines the struct for PrintSettings.
8 */ 8 */
9 9
10 [assert_size(4)] 10 [assert_size(4)]
(...skipping 12 matching lines...) Expand all
23 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 23 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3
24 }; 24 };
25 25
26 [assert_size(4)] 26 [assert_size(4)]
27 enum PP_PrintScalingOption_Dev { 27 enum PP_PrintScalingOption_Dev {
28 PP_PRINTSCALINGOPTION_NONE = 0, 28 PP_PRINTSCALINGOPTION_NONE = 0,
29 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1, 29 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1,
30 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 30 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2
31 }; 31 };
32 32
33 [assert_size(4)]
34 enum PP_PrintDuplexMode_Dev {
35 PP_PRINTDUPLEXMODE_NONE = 0,
36 PP_PRINTDUPLEXMODE_SIMPLEX = 1,
37 PP_PRINTDUPLEXMODE_LONG_EDGE = 2,
38 PP_PRINTDUPLEXMODE_SHORT_EDGE = 3
39 };
40
33 [assert_size(60)] 41 [assert_size(60)]
34 struct PP_PrintSettings_Dev { 42 struct PP_PrintSettings_Dev {
35 /** This is the size of the printable area in points (1/72 of an inch). */ 43 /** This is the size of the printable area in points (1/72 of an inch). */
36 PP_Rect printable_area; 44 PP_Rect printable_area;
37 PP_Rect content_area; 45 PP_Rect content_area;
38 PP_Size paper_size; 46 PP_Size paper_size;
39 int32_t dpi; 47 int32_t dpi;
40 PP_PrintOrientation_Dev orientation; 48 PP_PrintOrientation_Dev orientation;
41 PP_PrintScalingOption_Dev print_scaling_option; 49 PP_PrintScalingOption_Dev print_scaling_option;
42 PP_Bool grayscale; 50 PP_Bool grayscale;
43 /** Note that Chrome currently only supports PDF printing. */ 51 /** Note that Chrome currently only supports PDF printing. */
44 PP_PrintOutputFormat_Dev format; 52 PP_PrintOutputFormat_Dev format;
45 }; 53 };
54
55 [assert_size(8)]
56 struct PP_PrintRange_Dev {
57 int32_t from;
58 int32_t to;
59 };
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | ppapi/c/dev/pp_print_settings_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698