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

Side by Side Diff: printing/printing_context_no_system_dialog.cc

Issue 1124433006: Allow page range selection in system dialog called from preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/printing_context_no_system_dialog.h ('k') | printing/printing_context_win.h » ('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_no_system_dialog.h" 5 #include "printing/printing_context_no_system_dialog.h"
6 6
7 #include <unicode/ulocdata.h> 7 #include <unicode/ulocdata.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 float multiplier = 100 * settings_.device_units_per_inch(); 70 float multiplier = 100 * settings_.device_units_per_inch();
71 multiplier /= kHundrethsMMPerInch; 71 multiplier /= kHundrethsMMPerInch;
72 width *= multiplier; 72 width *= multiplier;
73 height *= multiplier; 73 height *= multiplier;
74 } 74 }
75 return gfx::Size(width, height); 75 return gfx::Size(width, height);
76 } 76 }
77 77
78 PrintingContext::Result PrintingContextNoSystemDialog::UpdatePrinterSettings( 78 PrintingContext::Result PrintingContextNoSystemDialog::UpdatePrinterSettings(
79 bool external_preview, 79 bool external_preview,
80 bool show_system_dialog) { 80 bool show_system_dialog,
81 int page_count) {
81 DCHECK(!show_system_dialog); 82 DCHECK(!show_system_dialog);
82 83
83 if (settings_.dpi() == 0) 84 if (settings_.dpi() == 0)
84 UseDefaultSettings(); 85 UseDefaultSettings();
85 86
86 return OK; 87 return OK;
87 } 88 }
88 89
89 PrintingContext::Result PrintingContextNoSystemDialog::InitWithSettings( 90 PrintingContext::Result PrintingContextNoSystemDialog::InitWithSettings(
90 const PrintSettings& settings) { 91 const PrintSettings& settings) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Intentional No-op. 142 // Intentional No-op.
142 } 143 }
143 144
144 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { 145 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const {
145 // Intentional No-op. 146 // Intentional No-op.
146 return NULL; 147 return NULL;
147 } 148 }
148 149
149 } // namespace printing 150 } // namespace printing
150 151
OLDNEW
« no previous file with comments | « printing/printing_context_no_system_dialog.h ('k') | printing/printing_context_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698