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

Side by Side 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: Bring back the deprecated IconForField method, as it is still used on Mac 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual const std::vector<gfx::Range>& LegalDocumentLinks() OVERRIDE; 125 virtual const std::vector<gfx::Range>& LegalDocumentLinks() OVERRIDE;
126 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; 126 virtual bool SectionIsActive(DialogSection section) const OVERRIDE;
127 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) 127 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section)
128 const OVERRIDE; 128 const OVERRIDE;
129 virtual ui::ComboboxModel* ComboboxModelForAutofillType( 129 virtual ui::ComboboxModel* ComboboxModelForAutofillType(
130 ServerFieldType type) OVERRIDE; 130 ServerFieldType type) OVERRIDE;
131 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; 131 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE;
132 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; 132 virtual string16 LabelForSection(DialogSection section) const OVERRIDE;
133 virtual SuggestionState SuggestionStateForSection( 133 virtual SuggestionState SuggestionStateForSection(
134 DialogSection section) OVERRIDE; 134 DialogSection section) OVERRIDE;
135
Evan Stade 2013/09/16 23:36:59 ^H
please use gerrit instead 2013/09/17 00:38:17 Done.
136 // TODO(groby): Remove this deprecated method after Mac starts using
137 // IconsForFields. http://crbug.com/292876
135 virtual gfx::Image IconForField(ServerFieldType type, 138 virtual gfx::Image IconForField(ServerFieldType type,
136 const string16& user_input) const OVERRIDE; 139 const string16& user_input) const OVERRIDE;
140
Evan Stade 2013/09/16 23:36:59 ^H
please use gerrit instead 2013/09/17 00:38:17 Done.
141 virtual FieldIconMap IconsForFields(const FieldValueMap& user_inputs)
142 const OVERRIDE;
143 virtual bool FieldControlsIcons(ServerFieldType type) const OVERRIDE;
137 virtual string16 InputValidityMessage(DialogSection section, 144 virtual string16 InputValidityMessage(DialogSection section,
138 ServerFieldType type, 145 ServerFieldType type,
139 const string16& value) OVERRIDE; 146 const string16& value) OVERRIDE;
140 virtual ValidityData InputsAreValid( 147 virtual ValidityData InputsAreValid(
141 DialogSection section, 148 DialogSection section,
142 const DetailOutputMap& inputs, 149 const DetailOutputMap& inputs,
143 ValidationType validation_type) OVERRIDE; 150 ValidationType validation_type) OVERRIDE;
144 virtual void UserEditedOrActivatedInput(DialogSection section, 151 virtual void UserEditedOrActivatedInput(DialogSection section,
145 const DetailInput* input, 152 const DetailInput* input,
146 gfx::NativeView parent_view, 153 gfx::NativeView parent_view,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // Suggested text and icons for sections. Suggestion text is used to show an 430 // Suggested text and icons for sections. Suggestion text is used to show an
424 // abridged overview of the currently used suggestion. Extra text is used when 431 // abridged overview of the currently used suggestion. Extra text is used when
425 // part of a section is suggested but part must be manually input (e.g. during 432 // part of a section is suggested but part must be manually input (e.g. during
426 // a CVC challenge or when using Autofill's CC section [never stores CVC]). 433 // a CVC challenge or when using Autofill's CC section [never stores CVC]).
427 bool SuggestionTextForSection(DialogSection section, 434 bool SuggestionTextForSection(DialogSection section,
428 base::string16* vertically_compact, 435 base::string16* vertically_compact,
429 base::string16* horizontally_compact); 436 base::string16* horizontally_compact);
430 string16 RequiredActionTextForSection(DialogSection section) const; 437 string16 RequiredActionTextForSection(DialogSection section) const;
431 gfx::Image SuggestionIconForSection(DialogSection section); 438 gfx::Image SuggestionIconForSection(DialogSection section);
432 string16 ExtraSuggestionTextForSection(DialogSection section) const; 439 string16 ExtraSuggestionTextForSection(DialogSection section) const;
433 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const; 440 gfx::Image ExtraSuggestionIconForSection(DialogSection section);
434 441
435 // Loads profiles that can suggest data for |type|. |field_contents| is the 442 // Loads profiles that can suggest data for |type|. |field_contents| is the
436 // part the user has already typed. |inputs| is the rest of section. 443 // part the user has already typed. |inputs| is the rest of section.
437 // Identifying info is loaded into the last three outparams as well as 444 // Identifying info is loaded into the last three outparams as well as
438 // |popup_guids_|. 445 // |popup_guids_|.
439 void GetProfileSuggestions( 446 void GetProfileSuggestions(
440 ServerFieldType type, 447 ServerFieldType type,
441 const string16& field_contents, 448 const string16& field_contents,
442 const DetailInputs& inputs, 449 const DetailInputs& inputs,
443 std::vector<string16>* popup_values, 450 std::vector<string16>* popup_values,
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 744
738 // A username string we display in the card scrambling/generated overlay. 745 // A username string we display in the card scrambling/generated overlay.
739 base::string16 submitted_cardholder_name_; 746 base::string16 submitted_cardholder_name_;
740 747
741 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 748 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
742 }; 749 };
743 750
744 } // namespace autofill 751 } // namespace autofill
745 752
746 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 753 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698