| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" | 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" |
| 6 #include "base/android/jni_android.h" | 6 #include "base/android/jni_android.h" |
| 7 #include "base/android/jni_array.h" | 7 #include "base/android/jni_array.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); | 203 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); |
| 204 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); | 204 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); |
| 205 } | 205 } |
| 206 | 206 |
| 207 bool AutofillDialogViewAndroid::UseBillingForShipping() { | 207 bool AutofillDialogViewAndroid::UseBillingForShipping() { |
| 208 JNIEnv* env = base::android::AttachCurrentThread(); | 208 JNIEnv* env = base::android::AttachCurrentThread(); |
| 209 return Java_AutofillDialogGlue_shouldUseBillingForShipping( | 209 return Java_AutofillDialogGlue_shouldUseBillingForShipping( |
| 210 env, java_object_.obj()); | 210 env, java_object_.obj()); |
| 211 } | 211 } |
| 212 | 212 |
| 213 bool AutofillDialogViewAndroid::SaveDetailsInWallet() { | |
| 214 JNIEnv* env = base::android::AttachCurrentThread(); | |
| 215 return Java_AutofillDialogGlue_shouldSaveDetailsInWallet(env, | |
| 216 java_object_.obj()); | |
| 217 } | |
| 218 | |
| 219 bool AutofillDialogViewAndroid::SaveDetailsLocally() { | 213 bool AutofillDialogViewAndroid::SaveDetailsLocally() { |
| 220 JNIEnv* env = base::android::AttachCurrentThread(); | 214 JNIEnv* env = base::android::AttachCurrentThread(); |
| 221 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, | 215 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, |
| 222 java_object_.obj()); | 216 java_object_.obj()); |
| 223 } | 217 } |
| 224 | 218 |
| 225 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { | 219 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { |
| 226 NOTIMPLEMENTED(); | 220 NOTIMPLEMENTED(); |
| 227 return NULL; | 221 return NULL; |
| 228 } | 222 } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 env, error_array.obj(), i, invalid_inputs[i], error_text.obj()); | 440 env, error_array.obj(), i, invalid_inputs[i], error_text.obj()); |
| 447 } | 441 } |
| 448 Java_AutofillDialogGlue_updateSectionErrors(env, | 442 Java_AutofillDialogGlue_updateSectionErrors(env, |
| 449 java_object_.obj(), | 443 java_object_.obj(), |
| 450 section, | 444 section, |
| 451 error_array.obj()); | 445 error_array.obj()); |
| 452 return false; | 446 return false; |
| 453 } | 447 } |
| 454 | 448 |
| 455 } // namespace autofill | 449 } // namespace autofill |
| OLD | NEW |