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

Side by Side Diff: printing/printing_context_android.cc

Issue 480303002: Use document from preview for System Dialog printing on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue Aug 26 01:11:31 PDT 2014 Created 6 years, 4 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 | Annotate | Revision Log
« 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Convert this to pixels based on the dpi. 163 // Convert this to pixels based on the dpi.
164 float multiplier = 100 * settings_.device_units_per_inch(); 164 float multiplier = 100 * settings_.device_units_per_inch();
165 multiplier /= kHundrethsMMPerInch; 165 multiplier /= kHundrethsMMPerInch;
166 width *= multiplier; 166 width *= multiplier;
167 height *= multiplier; 167 height *= multiplier;
168 } 168 }
169 return gfx::Size(width, height); 169 return gfx::Size(width, height);
170 } 170 }
171 171
172 PrintingContext::Result PrintingContextAndroid::UpdatePrinterSettings( 172 PrintingContext::Result PrintingContextAndroid::UpdatePrinterSettings(
173 bool external_preview) { 173 bool external_preview,
174 bool show_system_dialog) {
175 DCHECK(!show_system_dialog);
174 DCHECK(!in_print_job_); 176 DCHECK(!in_print_job_);
175 177
176 // Intentional No-op. 178 // Intentional No-op.
177 179
178 return OK; 180 return OK;
179 } 181 }
180 182
181 PrintingContext::Result PrintingContextAndroid::InitWithSettings( 183 PrintingContext::Result PrintingContextAndroid::InitWithSettings(
182 const PrintSettings& settings) { 184 const PrintSettings& settings) {
183 DCHECK(!in_print_job_); 185 DCHECK(!in_print_job_);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Intentional No-op. 239 // Intentional No-op.
238 return NULL; 240 return NULL;
239 } 241 }
240 242
241 // static 243 // static
242 bool PrintingContextAndroid::RegisterPrintingContext(JNIEnv* env) { 244 bool PrintingContextAndroid::RegisterPrintingContext(JNIEnv* env) {
243 return RegisterNativesImpl(env); 245 return RegisterNativesImpl(env);
244 } 246 }
245 247
246 } // namespace printing 248 } // 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