| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Specifies user selected DPI for printing. | 51 // Specifies user selected DPI for printing. |
| 52 int printerDPI; | 52 int printerDPI; |
| 53 | 53 |
| 54 // Specifies whether to print PDFs as image. | 54 // Specifies whether to print PDFs as image. |
| 55 bool rasterizePDF = false; | 55 bool rasterizePDF = false; |
| 56 | 56 |
| 57 // Specifies whether to reduce/enlarge/retain the print contents to fit the | 57 // Specifies whether to reduce/enlarge/retain the print contents to fit the |
| 58 // printable area. (This is used only by plugin printing). | 58 // printable area. (This is used only by plugin printing). |
| 59 WebPrintScalingOption printScalingOption; | 59 WebPrintScalingOption printScalingOption; |
| 60 | 60 |
| 61 int rootFrameRoutingId; |
| 62 |
| 61 WebPrintParams() | 63 WebPrintParams() |
| 62 : printerDPI(72), | 64 : printerDPI(72), |
| 63 printScalingOption(WebPrintScalingOptionFitToPrintableArea) {} | 65 printScalingOption(WebPrintScalingOptionFitToPrintableArea), |
| 66 rootFrameRoutingId(0) {} |
| 64 | 67 |
| 65 WebPrintParams(const WebSize& paperSize) | 68 WebPrintParams(const WebSize& paperSize) |
| 66 : printContentArea(WebRect(0, 0, paperSize.width, paperSize.height)), | 69 : printContentArea(WebRect(0, 0, paperSize.width, paperSize.height)), |
| 67 printableArea(WebRect(0, 0, paperSize.width, paperSize.height)), | 70 printableArea(WebRect(0, 0, paperSize.width, paperSize.height)), |
| 68 paperSize(paperSize), | 71 paperSize(paperSize), |
| 69 printerDPI(72), | 72 printerDPI(72), |
| 70 printScalingOption(WebPrintScalingOptionSourceSize) {} | 73 printScalingOption(WebPrintScalingOptionSourceSize), |
| 74 rootFrameRoutingId(0) {} |
| 71 | 75 |
| 72 WebPrintParams(const WebRect& printContentArea, | 76 WebPrintParams(const WebRect& printContentArea, |
| 73 const WebRect& printableArea, | 77 const WebRect& printableArea, |
| 74 const WebSize& paperSize, | 78 const WebSize& paperSize, |
| 75 int printerDPI, | 79 int printerDPI, |
| 76 WebPrintScalingOption printScalingOption) | 80 WebPrintScalingOption printScalingOption) |
| 77 : printContentArea(printContentArea), | 81 : printContentArea(printContentArea), |
| 78 printableArea(printableArea), | 82 printableArea(printableArea), |
| 79 paperSize(paperSize), | 83 paperSize(paperSize), |
| 80 printerDPI(printerDPI), | 84 printerDPI(printerDPI), |
| 81 printScalingOption(printScalingOption) {} | 85 printScalingOption(printScalingOption), |
| 86 rootFrameRoutingId(0) {} |
| 82 }; | 87 }; |
| 83 | 88 |
| 84 } // namespace blink | 89 } // namespace blink |
| 85 | 90 |
| 86 #endif | 91 #endif |
| OLD | NEW |