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

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

Issue 12893007: Implementing VERIFY_CVV required action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ahutter@ review Created 7 years, 9 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.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller.h b/chrome/browser/ui/autofill/autofill_dialog_controller.h
index 2269dff853a1c407471119f66018c6cd52b5d65f..11e383ccf30978b616b0beb4b44216314a0ad922 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller.h
@@ -10,6 +10,7 @@
#include "base/string16.h"
#include "chrome/browser/ui/autofill/autofill_dialog_types.h"
#include "components/autofill/browser/field_types.h"
+#include "components/autofill/browser/wallet/required_action.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/native_widget_types.h"
@@ -74,6 +75,9 @@ class AutofillDialogController {
// Whether or not the |button| should be enabled.
virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0;
+ // Whether the submission process is paused on |action| (e.g. VERIFY_CVV).
+ virtual bool IsSubmitPausedOn(wallet::RequiredAction action) const = 0;
+
// Detail inputs -------------------------------------------------------------
// Whether the section is currently active (i.e. should be shown).
@@ -147,8 +151,9 @@ class AutofillDialogController {
// Called when the view has been cancelled.
virtual void OnCancel() = 0;
- // Called when the view has been accepted.
- virtual void OnSubmit() = 0;
+ // Called when the view has been accepted. This could be to submit the payment
+ // info or to handle a required action.
+ virtual void OnAccept() = 0;
// Returns the profile for this dialog.
virtual Profile* profile() = 0;

Powered by Google App Engine
This is Rietveld 408576698