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

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

Issue 10544085: Added PPB function to return default print settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_printing_dev.idl ('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 * Implementation of the Printing interface. 7 * Definition of the PPP_Printing interface.
8 */ 8 */
9 9
10 // Note: This version should always match the PPB_Printing_Dev interface.
10 label Chrome { 11 label Chrome {
11 M21 = 0.6 12 M21 = 0.6
12 }; 13 };
13 14
14 [assert_size(4)]
15 enum PP_PrintOrientation_Dev {
16 PP_PRINTORIENTATION_NORMAL = 0,
17 PP_PRINTORIENTATION_ROTATED_90_CW = 1,
18 PP_PRINTORIENTATION_ROTATED_180 = 2,
19 PP_PRINTORIENTATION_ROTATED_90_CCW = 3
20 };
21
22 [assert_size(4)]
23 enum PP_PrintOutputFormat_Dev {
24 PP_PRINTOUTPUTFORMAT_RASTER = 1u << 0,
25 PP_PRINTOUTPUTFORMAT_PDF = 1u << 1,
26 PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2,
27 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3
28 };
29
30 [assert_size(4)]
31 enum PP_PrintScalingOption_Dev {
32 PP_PRINTSCALINGOPTION_NONE = 0,
33 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1,
34 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2
35 };
36
37 [assert_size(60)]
38 struct PP_PrintSettings_Dev {
39 /** This is the size of the printable area in points (1/72 of an inch) */
40 PP_Rect printable_area;
41 PP_Rect content_area;
42 PP_Size paper_size;
43 int32_t dpi;
44 PP_PrintOrientation_Dev orientation;
45 PP_PrintScalingOption_Dev print_scaling_option;
46 PP_Bool grayscale;
47 /** Note that Chrome currently only supports PDF printing. */
48 PP_PrintOutputFormat_Dev format;
49 };
50
51 /** 15 /**
52 * Specifies a contiguous range of page numbers to be printed. 16 * Specifies a contiguous range of page numbers to be printed.
53 * The page numbers use a zero-based index. 17 * The page numbers use a zero-based index.
54 */ 18 */
55 [assert_size(8)] 19 [assert_size(8)]
56 struct PP_PrintPageNumberRange_Dev { 20 struct PP_PrintPageNumberRange_Dev {
57 uint32_t first_page_number; 21 uint32_t first_page_number;
58 uint32_t last_page_number; 22 uint32_t last_page_number;
59 }; 23 };
60 24
(...skipping 26 matching lines...) Expand all
87 51
88 /** Ends the print session. Further calls to PrintPages will fail. */ 52 /** Ends the print session. Further calls to PrintPages will fail. */
89 void End([in] PP_Instance instance); 53 void End([in] PP_Instance instance);
90 54
91 /** 55 /**
92 * Returns true if the current content should be printed into the full page 56 * Returns true if the current content should be printed into the full page
93 * and not scaled down to fit within the printer's printable area. 57 * and not scaled down to fit within the printer's printable area.
94 */ 58 */
95 PP_Bool IsScalingDisabled([in] PP_Instance instance); 59 PP_Bool IsScalingDisabled([in] PP_Instance instance);
96 }; 60 };
97
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_printing_dev.idl ('k') | ppapi/c/dev/pp_print_settings_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698