Chromium Code Reviews
DescriptionImplement Printer Preference Persistence (Step 1/3)
Introduce new "Preferences" for printer overlays were added in
PrefNames:
- printing.page.header.left
- printing.page.header.center
- printing.page.header.right
- printing.page.footer.left
- printing.page.footer.center
- printing.page.footer.right
The prefs file will look like this:
"printing": {
"page": {
"header": {
"left": " ",
"center": " ",
"right": " "
},
"footer": {
"left": "{date}",
"center": " ",
"right": " "
}
}
}
The steps for Printer Preferences:
Step 1:
Introduce some sort of persistence for header/footer which is located in the Preference file.
Step 2:
Allow PrinterQuery to read those stored preferences and setup PrinterSettings so that it will apply it when printing.
Step 3:
Create a UI for the print preference, so that the users will easily change those printing settings.
NOTE: I tested the following approach while doing a simple Hack with PrintJob (if you see the previous patch), and it works great, with some bad after effect. It was done for testing purposes. So I hope we are going in the right direction.
BUG=947
(http://crbug.com/947)
Patch Set 1 #
Total comments: 6
Patch Set 2 : '' #
Total comments: 2
Patch Set 3 : '' #
Messages
Total messages: 7 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||