Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java |
| index 31a3400411597d906e34c21b7587ad3433d1a912..c8ac7f9ec0c016a5b87b1e55c1fc51a6c4e4ef03 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java |
| @@ -23,7 +23,7 @@ public class AutofillDialogGlue implements AutofillDialogDelegate { |
| public AutofillDialogGlue(int nativeAutofillDialogViewAndroid, NativeWindow nativeWindow) { |
| mNativeDialogPopup = nativeAutofillDialogViewAndroid; |
| - mAutofillDialog = new AutofillDialog(nativeWindow.getContext()); |
| + mAutofillDialog = new AutofillDialog(nativeWindow.getContext(), this); |
| mAutofillDialog.show(); |
| } |
| @@ -45,6 +45,23 @@ public class AutofillDialogGlue implements AutofillDialogDelegate { |
| mAutofillDialog.updateSection(section, visible, dialogInputs, menuItems); |
| } |
| + /** |
| + * Notifies the dialog that the underlying model is changed and all sections will be updated. |
| + * @param fetchingIsActive If true, the data is being fetched and is not yet available. |
| + */ |
| + private void modelChanged(boolean fetchingIsActive) { |
|
Ted C
2013/03/20 19:04:31
indenting is off on these two methods
Yusuf
2013/03/21 00:53:17
Done.
|
| + mAutofillDialog.modelChanged(fetchingIsActive); |
| + } |
| + |
| + /** |
| + * Updates the account chooser of Autofill dialog. |
| + * @param accountNames List of accounts to be shown. |
| + * @param selectedAccountIndex Index of the currently selected account. |
| + */ |
| + private void updateAccountChooser(String[] accountNames, int selectedAccountIndex) { |
| + mAutofillDialog.updateAccountChooserAndAddTitle(accountNames, selectedAccountIndex); |
| + } |
| + |
| @CalledByNative |
| private AutofillDialogField[] getSection(int section) { |
| return mAutofillDialog.getSection(section); |