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 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); | 199 Java_AutofillDialogGlue_getCvc(env, java_object_.obj()); |
200 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); | 200 return base::android::ConvertJavaStringToUTF16(env, cvc.obj()); |
201 } | 201 } |
202 | 202 |
203 bool AutofillDialogViewAndroid::UseBillingForShipping() { | 203 bool AutofillDialogViewAndroid::UseBillingForShipping() { |
204 JNIEnv* env = base::android::AttachCurrentThread(); | 204 JNIEnv* env = base::android::AttachCurrentThread(); |
205 return Java_AutofillDialogGlue_shouldUseBillingForShipping( | 205 return Java_AutofillDialogGlue_shouldUseBillingForShipping( |
206 env, java_object_.obj()); | 206 env, java_object_.obj()); |
207 } | 207 } |
208 | 208 |
209 bool AutofillDialogViewAndroid::SaveDetailsInWallet() { | |
210 JNIEnv* env = base::android::AttachCurrentThread(); | |
211 return Java_AutofillDialogGlue_shouldSaveDetailsInWallet(env, | |
212 java_object_.obj()); | |
213 } | |
214 | |
215 bool AutofillDialogViewAndroid::SaveDetailsLocally() { | 209 bool AutofillDialogViewAndroid::SaveDetailsLocally() { |
216 JNIEnv* env = base::android::AttachCurrentThread(); | 210 JNIEnv* env = base::android::AttachCurrentThread(); |
217 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, | 211 return Java_AutofillDialogGlue_shouldSaveDetailsLocally(env, |
218 java_object_.obj()); | 212 java_object_.obj()); |
219 } | 213 } |
220 | 214 |
221 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { | 215 const content::NavigationController* AutofillDialogViewAndroid::ShowSignIn() { |
222 NOTIMPLEMENTED(); | 216 NOTIMPLEMENTED(); |
223 return NULL; | 217 return NULL; |
224 } | 218 } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 // TODO(aruslan): bind to the automatic sign-in. | 334 // TODO(aruslan): bind to the automatic sign-in. |
341 // controller_->ContinueAutomaticSignIn(account_name, sid, lsid); | 335 // controller_->ContinueAutomaticSignIn(account_name, sid, lsid); |
342 } | 336 } |
343 | 337 |
344 // static | 338 // static |
345 bool AutofillDialogViewAndroid::RegisterAutofillDialogViewAndroid(JNIEnv* env) { | 339 bool AutofillDialogViewAndroid::RegisterAutofillDialogViewAndroid(JNIEnv* env) { |
346 return RegisterNativesImpl(env); | 340 return RegisterNativesImpl(env); |
347 } | 341 } |
348 | 342 |
349 } // namespace autofill | 343 } // namespace autofill |
OLD | NEW |