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

Side by Side Diff: printing/printing_context.cc

Issue 1556463003: Mark printing code as basic printing and/or print preview code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « printing/print_job_constants.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if (print_to_cloud || print_with_privet) { 111 if (print_to_cloud || print_with_privet) {
112 paper_rect.Inset( 112 paper_rect.Inset(
113 kCloudPrintMarginInch * settings_.device_units_per_inch(), 113 kCloudPrintMarginInch * settings_.device_units_per_inch(),
114 kCloudPrintMarginInch * settings_.device_units_per_inch()); 114 kCloudPrintMarginInch * settings_.device_units_per_inch());
115 } 115 }
116 settings_.SetPrinterPrintableArea(paper_size, paper_rect, true); 116 settings_.SetPrinterPrintableArea(paper_size, paper_rect, true);
117 return OK; 117 return OK;
118 } 118 }
119 119
120 bool show_system_dialog = false; 120 bool show_system_dialog = false;
121 #if defined(ENABLE_BASIC_PRINTING)
121 job_settings.GetBoolean(kSettingShowSystemDialog, &show_system_dialog); 122 job_settings.GetBoolean(kSettingShowSystemDialog, &show_system_dialog);
123 #endif
122 124
123 int page_count = 0; 125 int page_count = 0;
124 job_settings.GetInteger(kSettingPreviewPageCount, &page_count); 126 job_settings.GetInteger(kSettingPreviewPageCount, &page_count);
125 127
126 return UpdatePrinterSettings(open_in_external_preview, show_system_dialog, 128 return UpdatePrinterSettings(open_in_external_preview, show_system_dialog,
127 page_count); 129 page_count);
128 } 130 }
129 131
130 } // namespace printing 132 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_job_constants.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698