| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 PrintingContext::Result PrintingContextAndroid::InitWithSettings( | 181 PrintingContext::Result PrintingContextAndroid::InitWithSettings( |
| 182 const PrintSettings& settings) { | 182 const PrintSettings& settings) { |
| 183 DCHECK(!in_print_job_); | 183 DCHECK(!in_print_job_); |
| 184 | 184 |
| 185 settings_ = settings; | 185 settings_ = settings; |
| 186 | 186 |
| 187 return OK; | 187 return OK; |
| 188 } | 188 } |
| 189 | 189 |
| 190 PrintingContext::Result PrintingContextAndroid::NewDocument( | 190 PrintingContext::Result PrintingContextAndroid::NewDocument( |
| 191 const string16& document_name) { | 191 const base::string16& document_name) { |
| 192 DCHECK(!in_print_job_); | 192 DCHECK(!in_print_job_); |
| 193 in_print_job_ = true; | 193 in_print_job_ = true; |
| 194 | 194 |
| 195 return OK; | 195 return OK; |
| 196 } | 196 } |
| 197 | 197 |
| 198 PrintingContext::Result PrintingContextAndroid::NewPage() { | 198 PrintingContext::Result PrintingContextAndroid::NewPage() { |
| 199 if (abort_printing_) | 199 if (abort_printing_) |
| 200 return CANCEL; | 200 return CANCEL; |
| 201 DCHECK(in_print_job_); | 201 DCHECK(in_print_job_); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // Intentional No-op. | 237 // Intentional No-op. |
| 238 return NULL; | 238 return NULL; |
| 239 } | 239 } |
| 240 | 240 |
| 241 // static | 241 // static |
| 242 bool PrintingContextAndroid::RegisterPrintingContext(JNIEnv* env) { | 242 bool PrintingContextAndroid::RegisterPrintingContext(JNIEnv* env) { |
| 243 return RegisterNativesImpl(env); | 243 return RegisterNativesImpl(env); |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace printing | 246 } // namespace printing |
| OLD | NEW |