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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 178263004: rAc - Only show countries we're able to fill in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 6 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 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 bool FormStructureCaresAboutSection(DialogSection section) const; 420 bool FormStructureCaresAboutSection(DialogSection section) const;
421 421
422 // Finds all fields of the given |type| in |form_structure_|, if any, and sets 422 // Finds all fields of the given |type| in |form_structure_|, if any, and sets
423 // each field's value to |output|. 423 // each field's value to |output|.
424 void SetOutputForFieldsOfType(ServerFieldType type, 424 void SetOutputForFieldsOfType(ServerFieldType type,
425 const base::string16& output); 425 const base::string16& output);
426 426
427 // Gets the value for |type| in |section|, whether it comes from manual user 427 // Gets the value for |type| in |section|, whether it comes from manual user
428 // input or the active suggestion. 428 // input or the active suggestion.
429 base::string16 GetValueFromSection(DialogSection section, 429 base::string16 GetValueFromSection(DialogSection section,
430 ServerFieldType type); 430 ServerFieldType type);
431
432 // Returns whether the given section can accept an address with the given
433 // country code.
434 bool CanAcceptCountry(DialogSection section, const std::string& country_code);
431 435
432 // Gets the SuggestionsMenuModel for |section|. 436 // Gets the SuggestionsMenuModel for |section|.
433 SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section); 437 SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section);
434 const SuggestionsMenuModel* SuggestionsMenuModelForSection( 438 const SuggestionsMenuModel* SuggestionsMenuModelForSection(
435 DialogSection section) const; 439 DialogSection section) const;
436 // And the reverse. 440 // And the reverse.
437 DialogSection SectionForSuggestionsMenuModel( 441 DialogSection SectionForSuggestionsMenuModel(
438 const SuggestionsMenuModel& model); 442 const SuggestionsMenuModel& model);
439 443
440 // Gets the CountryComboboxModel for |section|. 444 // Gets the CountryComboboxModel for |section|.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 DetailInputs requested_cc_fields_; 693 DetailInputs requested_cc_fields_;
690 DetailInputs requested_billing_fields_; 694 DetailInputs requested_billing_fields_;
691 DetailInputs requested_cc_billing_fields_; 695 DetailInputs requested_cc_billing_fields_;
692 DetailInputs requested_shipping_fields_; 696 DetailInputs requested_shipping_fields_;
693 697
694 // Models for the credit card expiration inputs. 698 // Models for the credit card expiration inputs.
695 MonthComboboxModel cc_exp_month_combobox_model_; 699 MonthComboboxModel cc_exp_month_combobox_model_;
696 YearComboboxModel cc_exp_year_combobox_model_; 700 YearComboboxModel cc_exp_year_combobox_model_;
697 701
698 // Models for country input. 702 // Models for country input.
699 CountryComboboxModel billing_country_combobox_model_; 703 scoped_ptr<CountryComboboxModel> billing_country_combobox_model_;
700 CountryComboboxModel shipping_country_combobox_model_; 704 scoped_ptr<CountryComboboxModel> shipping_country_combobox_model_;
701 705
702 // Models for the suggestion views. 706 // Models for the suggestion views.
703 SuggestionsMenuModel suggested_cc_; 707 SuggestionsMenuModel suggested_cc_;
704 SuggestionsMenuModel suggested_billing_; 708 SuggestionsMenuModel suggested_billing_;
705 SuggestionsMenuModel suggested_cc_billing_; 709 SuggestionsMenuModel suggested_cc_billing_;
706 SuggestionsMenuModel suggested_shipping_; 710 SuggestionsMenuModel suggested_shipping_;
707 711
708 // |DialogSection|s that are in edit mode that are based on existing data. 712 // |DialogSection|s that are in edit mode that are based on existing data.
709 std::set<DialogSection> section_editing_state_; 713 std::set<DialogSection> section_editing_state_;
710 714
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 base::string16 submitted_cardholder_name_; 811 base::string16 submitted_cardholder_name_;
808 812
809 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; 813 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_;
810 814
811 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 815 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
812 }; 816 };
813 817
814 } // namespace autofill 818 } // namespace autofill
815 819
816 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 820 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698