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

Side by Side Diff: third_party/WebKit/public/web/WebPrintParams.h

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 years, 8 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698