Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
| index b19910f90c8d8e885239cb42d5aa1d61d99b2029..f29296dd0842dfa0321f9b5e0250ba2583f01178 100644 |
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
| @@ -25,7 +25,6 @@ |
| #include "components/autofill/browser/form_structure.h" |
| #include "components/autofill/browser/personal_data_manager.h" |
| #include "components/autofill/browser/personal_data_manager_observer.h" |
| -#include "components/autofill/browser/wallet/required_action.h" |
| #include "components/autofill/browser/wallet/wallet_client.h" |
| #include "components/autofill/browser/wallet/wallet_client_delegate.h" |
| #include "components/autofill/browser/wallet/wallet_signin_helper_delegate.h" |
| @@ -109,6 +108,7 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
| virtual bool AutocheckoutIsRunning() const OVERRIDE; |
| virtual bool HadAutocheckoutError() const OVERRIDE; |
| virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| + virtual bool IsSubmitPausedOn(wallet::RequiredAction action) const OVERRIDE; |
| virtual bool SectionIsActive(DialogSection section) const OVERRIDE; |
| virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
| const OVERRIDE; |
| @@ -139,7 +139,7 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
| virtual void StartSignInFlow() OVERRIDE; |
| virtual void EndSignInFlow() OVERRIDE; |
| virtual void OnCancel() OVERRIDE; |
| - virtual void OnSubmit() OVERRIDE; |
| + virtual void OnAccept() OVERRIDE; |
| virtual Profile* profile() OVERRIDE; |
| virtual content::WebContents* web_contents() OVERRIDE; |
| @@ -295,6 +295,9 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
| DialogSection SectionForSuggestionsMenuModel( |
| const SuggestionsMenuModel& model); |
| + // Suggested text for a section in the middle of processing a required action. |
| + string16 RequiredActionSuggestionTextForSection(DialogSection section); |
| + |
| // Loads profiles that can suggest data for |type|. |field_contents| is the |
| // part the user has already typed. |inputs| is the rest of section. |
| // Identifying info is loaded into the last three outparams as well as |
| @@ -441,8 +444,9 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
| // Whether this is an Autocheckout or a requestAutocomplete dialog. |
| const DialogType dialog_type_; |
| - // True if the termination action was a submit. |
| - bool did_submit_; |
| + // True after the user first accepts the dialog and presses "Submit". May |
| + // continue to be true while process required actions. |
|
Ilya Sherman
2013/03/27 23:59:23
nit: "while process" -> "while processing"
Dan Beam
2013/03/28 03:38:12
Done.
|
| + bool is_submitting_; |
| // Whether or not an Autocheckout flow is running. |
| bool autocheckout_is_running_; |