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

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

Issue 15961007: Highlight fields we know to be invalid but have no way of locally checking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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_types.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_types.h b/chrome/browser/ui/autofill/autofill_dialog_types.h
index 59e5ecbd5f0c443846c0cf30ad7857fa619d4776..0ceb925a24f5c379c823002b038d1926aff9d5f5 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_types.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_types.h
@@ -153,6 +153,12 @@ struct SuggestionState {
bool editable;
};
+enum ValidationType {
+ VALIDATE_SUGGESTION, // Validate existing suggestions (e.g. a card expired).
+ VALIDATE_EDIT, // Validate user edits. Allow for empty fields.
+ VALIDATE_FINAL, // Full form validation. Required fields can't be empty.
+};
+
typedef std::vector<DetailInput> DetailInputs;
typedef std::map<const DetailInput*, string16> DetailOutputMap;

Powered by Google App Engine
This is Rietveld 408576698