| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |