| 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 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 base::android::ScopedJavaLocalRef<jstring> GetDialogButtonText( | 83 base::android::ScopedJavaLocalRef<jstring> GetDialogButtonText( |
| 84 JNIEnv* env, | 84 JNIEnv* env, |
| 85 jobject obj, | 85 jobject obj, |
| 86 jint dialog_button_id); | 86 jint dialog_button_id); |
| 87 jboolean IsDialogButtonEnabled( | 87 jboolean IsDialogButtonEnabled( |
| 88 JNIEnv* env, | 88 JNIEnv* env, |
| 89 jobject obj, | 89 jobject obj, |
| 90 jint dialog_button_id); | 90 jint dialog_button_id); |
| 91 base::android::ScopedJavaLocalRef<jstring> GetSaveLocallyText(JNIEnv* env, | 91 base::android::ScopedJavaLocalRef<jstring> GetSaveLocallyText(JNIEnv* env, |
| 92 jobject obj); | 92 jobject obj); |
| 93 base::android::ScopedJavaLocalRef<jstring> GetLegalDocumentsText(JNIEnv* env, |
| 94 jobject obj); |
| 93 base::android::ScopedJavaLocalRef<jstring> GetProgressBarText(JNIEnv* env, | 95 base::android::ScopedJavaLocalRef<jstring> GetProgressBarText(JNIEnv* env, |
| 94 jobject obj); | 96 jobject obj); |
| 95 | 97 |
| 96 static bool RegisterAutofillDialogViewAndroid(JNIEnv* env); | 98 static bool RegisterAutofillDialogViewAndroid(JNIEnv* env); |
| 97 | 99 |
| 98 private: | 100 private: |
| 99 // Returns the list of available user accounts. | 101 // Returns the list of available user accounts. |
| 100 std::vector<std::string> GetAvailableUserAccounts(); | 102 std::vector<std::string> GetAvailableUserAccounts(); |
| 101 bool ValidateSection(DialogSection section, | 103 bool ValidateSection(DialogSection section, |
| 102 AutofillDialogController::ValidationType type); | 104 AutofillDialogController::ValidationType type); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 133 | 135 |
| 134 // The corresponding java object. | 136 // The corresponding java object. |
| 135 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 137 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 136 | 138 |
| 137 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); | 139 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); |
| 138 }; | 140 }; |
| 139 | 141 |
| 140 } // namespace autofill | 142 } // namespace autofill |
| 141 | 143 |
| 142 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 144 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| OLD | NEW |