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

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

Issue 23882013: [rAc] Persist selection of newly added cards and addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests, add a test 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 // Finds all fields of the given |type| in |form_structure_|, if any, and sets 401 // Finds all fields of the given |type| in |form_structure_|, if any, and sets
402 // each field's value to |output|. 402 // each field's value to |output|.
403 void SetOutputForFieldsOfType(ServerFieldType type, const string16& output); 403 void SetOutputForFieldsOfType(ServerFieldType type, const string16& output);
404 404
405 // Gets the value for |type| in |section|, whether it comes from manual user 405 // Gets the value for |type| in |section|, whether it comes from manual user
406 // input or the active suggestion. 406 // input or the active suggestion.
407 string16 GetValueFromSection(DialogSection section, 407 string16 GetValueFromSection(DialogSection section,
408 ServerFieldType type); 408 ServerFieldType type);
409 409
410 // Saves the data in |profile| to the personal data manager. This may add
411 // a new profile or tack onto an existing profile.
412 void SaveProfileGleanedFromSection(const AutofillProfile& profile,
413 DialogSection section);
414
415 // Gets the SuggestionsMenuModel for |section|. 410 // Gets the SuggestionsMenuModel for |section|.
416 SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section); 411 SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section);
417 const SuggestionsMenuModel* SuggestionsMenuModelForSection( 412 const SuggestionsMenuModel* SuggestionsMenuModelForSection(
418 DialogSection section) const; 413 DialogSection section) const;
419 // And the reverse. 414 // And the reverse.
420 DialogSection SectionForSuggestionsMenuModel( 415 DialogSection SectionForSuggestionsMenuModel(
421 const SuggestionsMenuModel& model); 416 const SuggestionsMenuModel& model);
422 417
423 // Suggested text and icons for sections. Suggestion text is used to show an 418 // 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 419 // abridged overview of the currently used suggestion. Extra text is used when
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // The notification that describes the current wallet error, if any. 700 // The notification that describes the current wallet error, if any.
706 scoped_ptr<DialogNotification> wallet_error_notification_; 701 scoped_ptr<DialogNotification> wallet_error_notification_;
707 702
708 // Whether the latency to display to the UI was logged to UMA yet. 703 // Whether the latency to display to the UI was logged to UMA yet.
709 bool was_ui_latency_logged_; 704 bool was_ui_latency_logged_;
710 705
711 // The Google Wallet cookie value, set as an authorization header on requests 706 // The Google Wallet cookie value, set as an authorization header on requests
712 // to Wallet. 707 // to Wallet.
713 std::string wallet_cookie_value_; 708 std::string wallet_cookie_value_;
714 709
710 // A map from dialog sections to the GUID of a newly saved Autofill data
711 // models for that section. No entries present that don't have newly saved
712 // data models.
713 std::map<DialogSection, std::string> newly_saved_data_model_guids_;
714
715 // Populated if the user chose to save a newly inputted credit card. Used to 715 // Populated if the user chose to save a newly inputted credit card. Used to
716 // show a bubble as the dialog closes to confirm a user's new card info was 716 // show a bubble as the dialog closes to confirm a user's new card info was
717 // saved. Never populated while incognito (as nothing's actually saved). 717 // saved. Never populated while incognito (as nothing's actually saved).
718 scoped_ptr<CreditCard> newly_saved_card_; 718 scoped_ptr<CreditCard> newly_saved_card_;
719 719
720 // The timer that delays enabling submit button for a short period of time on 720 // The timer that delays enabling submit button for a short period of time on
721 // startup. 721 // startup.
722 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; 722 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_;
723 723
724 // The card scrambling animation displays a random number in place of an 724 // The card scrambling animation displays a random number in place of an
(...skipping 12 matching lines...) Expand all
737 737
738 // A username string we display in the card scrambling/generated overlay. 738 // A username string we display in the card scrambling/generated overlay.
739 base::string16 submitted_cardholder_name_; 739 base::string16 submitted_cardholder_name_;
740 740
741 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 741 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
742 }; 742 };
743 743
744 } // namespace autofill 744 } // namespace autofill
745 745
746 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 746 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698