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

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

Issue 10083059: [Print Preview] Modified PP_PrintSettings_Dev interface to support auto fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix version Created 8 years, 7 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 | « no previous file | ppapi/c/dev/ppp_printing_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 * Implementation of the Printing interface.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M14 = 0.5 11 M21 = 0.6
12 }; 12 };
13 13
14 [assert_size(4)] 14 [assert_size(4)]
15 enum PP_PrintOrientation_Dev { 15 enum PP_PrintOrientation_Dev {
16 PP_PRINTORIENTATION_NORMAL = 0, 16 PP_PRINTORIENTATION_NORMAL = 0,
17 PP_PRINTORIENTATION_ROTATED_90_CW = 1, 17 PP_PRINTORIENTATION_ROTATED_90_CW = 1,
18 PP_PRINTORIENTATION_ROTATED_180 = 2, 18 PP_PRINTORIENTATION_ROTATED_180 = 2,
19 PP_PRINTORIENTATION_ROTATED_90_CCW = 3 19 PP_PRINTORIENTATION_ROTATED_90_CCW = 3
20 }; 20 };
21 21
22 [assert_size(4)] 22 [assert_size(4)]
23 enum PP_PrintOutputFormat_Dev { 23 enum PP_PrintOutputFormat_Dev {
24 PP_PRINTOUTPUTFORMAT_RASTER = 1u << 0, 24 PP_PRINTOUTPUTFORMAT_RASTER = 1u << 0,
25 PP_PRINTOUTPUTFORMAT_PDF = 1u << 1, 25 PP_PRINTOUTPUTFORMAT_PDF = 1u << 1,
26 PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2, 26 PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2,
27 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 27 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3
28 }; 28 };
29 29
30 [assert_size(32)] 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)]
31 struct PP_PrintSettings_Dev { 38 struct PP_PrintSettings_Dev {
32 /** This is the size of the printable area in points (1/72 of an inch) */ 39 /** This is the size of the printable area in points (1/72 of an inch) */
33 PP_Rect printable_area; 40 PP_Rect printable_area;
41 PP_Rect content_area;
42 PP_Size paper_size;
34 int32_t dpi; 43 int32_t dpi;
35 PP_PrintOrientation_Dev orientation; 44 PP_PrintOrientation_Dev orientation;
45 PP_PrintScalingOption_Dev print_scaling_option;
36 PP_Bool grayscale; 46 PP_Bool grayscale;
37 /** Note that Chrome currently only supports PDF printing. */ 47 /** Note that Chrome currently only supports PDF printing. */
38 PP_PrintOutputFormat_Dev format; 48 PP_PrintOutputFormat_Dev format;
39 }; 49 };
40 50
41 /** 51 /**
42 * Specifies a contiguous range of page numbers to be printed. 52 * Specifies a contiguous range of page numbers to be printed.
43 * The page numbers use a zero-based index. 53 * The page numbers use a zero-based index.
44 */ 54 */
45 [assert_size(8)] 55 [assert_size(8)]
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 /** Ends the print session. Further calls to PrintPages will fail. */ 88 /** Ends the print session. Further calls to PrintPages will fail. */
79 void End([in] PP_Instance instance); 89 void End([in] PP_Instance instance);
80 90
81 /** 91 /**
82 * Returns true if the current content should be printed into the full page 92 * Returns true if the current content should be printed into the full page
83 * and not scaled down to fit within the printer's printable area. 93 * and not scaled down to fit within the printer's printable area.
84 */ 94 */
85 PP_Bool IsScalingDisabled([in] PP_Instance instance); 95 PP_Bool IsScalingDisabled([in] PP_Instance instance);
86 }; 96 };
87 97
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppp_printing_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698