| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 MENU_ITEM_BUTTON_TYPE_NONE = 0, | 106 MENU_ITEM_BUTTON_TYPE_NONE = 0, |
| 107 MENU_ITEM_BUTTON_TYPE_ADD = 1, | 107 MENU_ITEM_BUTTON_TYPE_ADD = 1, |
| 108 MENU_ITEM_BUTTON_TYPE_EDIT = 2, | 108 MENU_ITEM_BUTTON_TYPE_EDIT = 2, |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // To fit the return type and GetMenuItemButtonType() name into 80 chars. | 111 // To fit the return type and GetMenuItemButtonType() name into 80 chars. |
| 112 typedef MenuItemButtonType MBT; | 112 typedef MenuItemButtonType MBT; |
| 113 | 113 |
| 114 // Returns the list of available user accounts. | 114 // Returns the list of available user accounts. |
| 115 std::vector<std::string> GetAvailableUserAccounts(); | 115 std::vector<std::string> GetAvailableUserAccounts(); |
| 116 bool ValidateSection(DialogSection section, | 116 bool ValidateSection(DialogSection section, ValidationType type); |
| 117 AutofillDialogController::ValidationType type); | |
| 118 | 117 |
| 119 // Starts an automatic sign-in attempt for a given account. | 118 // Starts an automatic sign-in attempt for a given account. |
| 120 bool StartAutomaticSignIn(const std::string& username); | 119 bool StartAutomaticSignIn(const std::string& username); |
| 121 | 120 |
| 122 // Updates the visibility of the checkbox to save the edited information | 121 // Updates the visibility of the checkbox to save the edited information |
| 123 // locally. | 122 // locally. |
| 124 void UpdateSaveLocallyCheckBox(); | 123 void UpdateSaveLocallyCheckBox(); |
| 125 | 124 |
| 126 // Updates a given |section| to match the state provided by |controller_|. If | 125 // Updates a given |section| to match the state provided by |controller_|. If |
| 127 // |clobber_inputs| is true, the user input will be ignored, otherwise it will | 126 // |clobber_inputs| is true, the user input will be ignored, otherwise it will |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 164 |
| 166 // The corresponding java object. | 165 // The corresponding java object. |
| 167 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 166 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 168 | 167 |
| 169 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); | 168 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViewAndroid); |
| 170 }; | 169 }; |
| 171 | 170 |
| 172 } // namespace autofill | 171 } // namespace autofill |
| 173 | 172 |
| 174 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ | 173 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_DIALOG_VIEW_ANDROID_H_ |
| OLD | NEW |