 Chromium Code Reviews
 Chromium Code Reviews 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
    
  
    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| OLD | NEW | 
|---|---|
| 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 M14 = 0.5 | 
| 
dmichael (off chromium)
2012/04/19 20:11:46
You should rev the version here by adding somethin
 
viettrungluu
2012/04/19 20:19:06
Since this is decidedly binary-incompatible, you s
 
kmadhusu
2012/04/20 22:29:57
Done. Added M20 = 0.6 and also updated interface n
 | |
| 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(60)] | 
| 31 struct PP_PrintSettings_Dev { | 31 struct PP_PrintSettings_Dev { | 
| 32 /** This is the size of the printable area in points (1/72 of an inch) */ | 32 /** This is the size of the printable area in points (1/72 of an inch) */ | 
| 33 PP_Rect printable_area; | 33 PP_Rect printable_area; | 
| 34 PP_Rect content_area; | |
| 35 PP_Size paper_size; | |
| 34 int32_t dpi; | 36 int32_t dpi; | 
| 35 PP_PrintOrientation_Dev orientation; | 37 PP_PrintOrientation_Dev orientation; | 
| 36 PP_Bool grayscale; | 38 PP_Bool grayscale; | 
| 39 PP_Bool fit_to_paper_size; | |
| 37 PP_PrintOutputFormat_Dev format; | 40 PP_PrintOutputFormat_Dev format; | 
| 38 }; | 41 }; | 
| 39 | 42 | 
| 40 /** | 43 /** | 
| 41 * Specifies a contiguous range of page numbers to be printed. | 44 * Specifies a contiguous range of page numbers to be printed. | 
| 42 * The page numbers use a zero-based index. | 45 * The page numbers use a zero-based index. | 
| 43 */ | 46 */ | 
| 44 [assert_size(8)] | 47 [assert_size(8)] | 
| 45 struct PP_PrintPageNumberRange_Dev { | 48 struct PP_PrintPageNumberRange_Dev { | 
| 46 uint32_t first_page_number; | 49 uint32_t first_page_number; | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 /** Ends the print session. Further calls to PrintPage will fail. */ | 82 /** Ends the print session. Further calls to PrintPage will fail. */ | 
| 80 void End([in] PP_Instance instance); | 83 void End([in] PP_Instance instance); | 
| 81 | 84 | 
| 82 /** | 85 /** | 
| 83 * Returns true if the current content should be printed into the full page | 86 * Returns true if the current content should be printed into the full page | 
| 84 * and not scaled down to fit within the printer's printable area. | 87 * and not scaled down to fit within the printer's printable area. | 
| 85 */ | 88 */ | 
| 86 PP_Bool IsScalingDisabled([in] PP_Instance instance); | 89 PP_Bool IsScalingDisabled([in] PP_Instance instance); | 
| 87 }; | 90 }; | 
| 88 | 91 | 
| OLD | NEW |