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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); | 200 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); |
201 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); | 201 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); |
202 } | 202 } |
203 | 203 |
204 bool AutofillDialogViewAndroid::UseBillingForShipping() { | 204 bool AutofillDialogViewAndroid::UseBillingForShipping() { |
205 JNIEnv* env = base::android::AttachCurrentThread(); | 205 JNIEnv* env = base::android::AttachCurrentThread(); |
206 return Java_AutofillDialogGlue_shouldUseBillingForShipping( | 206 return Java_AutofillDialogGlue_shouldUseBillingForShipping( |
207 env, java_object_.obj()); | 207 env, java_object_.obj()); |
208 } | 208 } |
209 | 209 |
210 bool AutofillDialogViewAndroid::SaveDetailsInWallet() { | |
211 JNIEnv* env = base::android::AttachCurrentThread(); | |
212 return Java_AutofillDialogGlue_shouldSaveDetailsInWallet(env, | |
213 java_object_.obj()); | |
214 } | |
215 | |
216 bool AutofillDialogViewAndroid::SaveDetailsLocally() { | 210 bool AutofillDialogViewAndroid::SaveDetailsLocally() { |
217 JNIEnv* env = base::android::AttachCurrentThread(); | 211 JNIEnv* env = base::android::AttachCurrentThread(); |
218 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, | 212 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, |
219 java_object_.obj()); | 213 java_object_.obj()); |
220 } | 214 } |
221 | 215 |
222 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { | 216 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { |
223 NOTIMPLEMENTED(); | 217 NOTIMPLEMENTED(); |
224 return NULL; | 218 return NULL; |
225 } | 219 } |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 env, error_array.obj(), i, invalid_inputs[i], error_text.obj()); | 437 env, error_array.obj(), i, invalid_inputs[i], error_text.obj()); |
444 } | 438 } |
445 Java_AutofillDialogGlue_updateSectionErrors(env, | 439 Java_AutofillDialogGlue_updateSectionErrors(env, |
446 java_object_.obj(), | 440 java_object_.obj(), |
447 section, | 441 section, |
448 error_array.obj()); | 442 error_array.obj()); |
449 return false; | 443 return false; |
450 } | 444 } |
451 | 445 |
452 } // namespace autofill | 446 } // namespace autofill |
OLD | NEW |