Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 23717029: Disable submit button briefly when launching rAc dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge master Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698