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

Side by Side Diff: printing/printing_context_android.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_android.h ('k') | printing/printing_context_linux.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_android.h" 5 #include "printing/printing_context_android.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 float multiplier = 100 * settings_.device_units_per_inch(); 175 float multiplier = 100 * settings_.device_units_per_inch();
176 multiplier /= kHundrethsMMPerInch; 176 multiplier /= kHundrethsMMPerInch;
177 width *= multiplier; 177 width *= multiplier;
178 height *= multiplier; 178 height *= multiplier;
179 } 179 }
180 return gfx::Size(width, height); 180 return gfx::Size(width, height);
181 } 181 }
182 182
183 PrintingContext::Result PrintingContextAndroid::UpdatePrinterSettings( 183 PrintingContext::Result PrintingContextAndroid::UpdatePrinterSettings(
184 bool external_preview, 184 bool external_preview,
185 bool show_system_dialog) { 185 bool show_system_dialog,
186 int page_count) {
186 DCHECK(!show_system_dialog); 187 DCHECK(!show_system_dialog);
187 DCHECK(!in_print_job_); 188 DCHECK(!in_print_job_);
188 189
189 // Intentional No-op. 190 // Intentional No-op.
190 191
191 return OK; 192 return OK;
192 } 193 }
193 194
194 PrintingContext::Result PrintingContextAndroid::InitWithSettings( 195 PrintingContext::Result PrintingContextAndroid::InitWithSettings(
195 const PrintSettings& settings) { 196 const PrintSettings& settings) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // Intentional No-op. 251 // Intentional No-op.
251 return NULL; 252 return NULL;
252 } 253 }
253 254
254 // static 255 // static
255 bool PrintingContextAndroid::RegisterPrintingContext(JNIEnv* env) { 256 bool PrintingContextAndroid::RegisterPrintingContext(JNIEnv* env) {
256 return RegisterNativesImpl(env); 257 return RegisterNativesImpl(env);
257 } 258 }
258 259
259 } // namespace printing 260 } // namespace printing
OLDNEW
« no previous file with comments | « printing/printing_context_android.h ('k') | printing/printing_context_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698