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

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

Issue 23756007: [rac] Show amex specific cvc hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move icon dependency logic into controller for testability 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 da4b7de11b786bc6d6ffe525c4b146bad3ece80c..b7775c0ae207d5be63c897737e9d754740521269 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -132,6 +132,11 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
virtual void EditClickedForSection(DialogSection section) OVERRIDE;
virtual gfx::Image IconForField(ServerFieldType type,
const string16& user_input) const OVERRIDE;
+ virtual bool IsIconDependentField(ServerFieldType dependent_type)
+ const OVERRIDE;
+ virtual bool IsIconDependencyField(ServerFieldType dependency_type,
+ ServerFieldType* dependent_type)
+ const OVERRIDE;
virtual string16 InputValidityMessage(DialogSection section,
ServerFieldType type,
const string16& value) OVERRIDE;
@@ -712,6 +717,10 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// startup.
base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_;
+ // Map from field types whose value controls other field types icon to the
+ // field types whose icon is controlled.
+ std::map<ServerFieldType, ServerFieldType> icon_dependencies_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698