| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "printing/printing_context.h" | 5 #include "printing/printing_context.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "printing/page_setup.h" | 9 #include "printing/page_setup.h" |
| 10 #include "printing/page_size_margins.h" | 10 #include "printing/page_size_margins.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 | 78 |
| 79 PrintingContext::Result result = UpdatePrinterSettings(job_settings, ranges); | 79 PrintingContext::Result result = UpdatePrinterSettings(job_settings, ranges); |
| 80 PrintSettingsInitializer::InitHeaderFooterStrings(job_settings, &settings_); | 80 PrintSettingsInitializer::InitHeaderFooterStrings(job_settings, &settings_); |
| 81 | 81 |
| 82 if (!job_settings.GetBoolean(kSettingShouldPrintBackgrounds, | 82 if (!job_settings.GetBoolean(kSettingShouldPrintBackgrounds, |
| 83 &settings_.should_print_backgrounds)) { | 83 &settings_.should_print_backgrounds)) { |
| 84 NOTREACHED(); | 84 NOTREACHED(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 if (!job_settings.GetBoolean(kSettingShouldPrintSelectionOnly, |
| 88 &settings_.selection_only)) { |
| 89 NOTREACHED(); |
| 90 } |
| 91 |
| 87 return result; | 92 return result; |
| 88 } | 93 } |
| 89 | 94 |
| 90 } // namespace printing | 95 } // namespace printing |
| OLD | NEW |