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 7e25bf876c8ed596c5daecb6a83031e106331f9d..dc3dad499b8d8e5fa27c113928e3af60c767c356 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -283,6 +283,14 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
scoped_ptr<CreditCard> new_card, |
scoped_ptr<AutofillProfile> billing_profile); |
+ // Delays enabling submit button for a short period of time. Exposed for |
+ // testing. |
+ virtual void SubmitButtonDelayBegin(); |
+ |
+ // Called when the delay for enabling the submit button ends. Exposed for |
+ // testing. |
+ virtual void OnSubmitButtonDelayEnd(); |
+ |
private: |
// Whether or not the current request wants credit info back. |
bool RequestingCreditCardInfo() const; |
@@ -686,6 +694,10 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate, |
// saved. Never populated while incognito (as nothing's actually saved). |
scoped_ptr<CreditCard> newly_saved_card_; |
+ // Whether enabling submit button is being delayed. Should be true for a short |
+ // period of time after showing the dialog. |
+ bool is_submit_button_delayed_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
}; |