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

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

Issue 23495006: rAc: better Wallet error messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 686
687 // Whether |callback_| was Run() with a filled |form_structure_|. 687 // Whether |callback_| was Run() with a filled |form_structure_|.
688 bool data_was_passed_back_; 688 bool data_was_passed_back_;
689 689
690 typedef std::map<ServerFieldType, 690 typedef std::map<ServerFieldType,
691 std::pair<base::string16, base::string16> > TypeErrorInputMap; 691 std::pair<base::string16, base::string16> > TypeErrorInputMap;
692 typedef std::map<DialogSection, TypeErrorInputMap> WalletValidationErrors; 692 typedef std::map<DialogSection, TypeErrorInputMap> WalletValidationErrors;
693 // Wallet validation errors. section->type->(error_msg, input_value). 693 // Wallet validation errors. section->type->(error_msg, input_value).
694 WalletValidationErrors wallet_errors_; 694 WalletValidationErrors wallet_errors_;
695 695
696 // The notification that describes the current wallet error, if any.
697 scoped_ptr<DialogNotification> wallet_error_notification_;
698
696 // The current state of the Autocheckout flow. 699 // The current state of the Autocheckout flow.
697 AutocheckoutState autocheckout_state_; 700 AutocheckoutState autocheckout_state_;
698 701
699 // Whether the latency to display to the UI was logged to UMA yet. 702 // Whether the latency to display to the UI was logged to UMA yet.
700 bool was_ui_latency_logged_; 703 bool was_ui_latency_logged_;
701 704
702 // Whether or not the render view has been deemphasized. 705 // Whether or not the render view has been deemphasized.
703 bool deemphasized_render_view_; 706 bool deemphasized_render_view_;
704 707
705 // State of steps in the current Autocheckout flow, or empty if not an 708 // State of steps in the current Autocheckout flow, or empty if not an
706 // Autocheckout use case. 709 // Autocheckout use case.
707 std::vector<DialogAutocheckoutStep> steps_; 710 std::vector<DialogAutocheckoutStep> steps_;
708 711
709 // The Google Wallet cookie value, set as an authorization header on requests 712 // The Google Wallet cookie value, set as an authorization header on requests
710 // to Wallet. 713 // to Wallet.
711 std::string wallet_cookie_value_; 714 std::string wallet_cookie_value_;
712 715
713 // Populated if the user chose to save a newly inputted credit card. Used to 716 // Populated if the user chose to save a newly inputted credit card. Used to
714 // show a bubble as the dialog closes to confirm a user's new card info was 717 // show a bubble as the dialog closes to confirm a user's new card info was
715 // saved. Never populated while incognito (as nothing's actually saved). 718 // saved. Never populated while incognito (as nothing's actually saved).
716 scoped_ptr<CreditCard> newly_saved_card_; 719 scoped_ptr<CreditCard> newly_saved_card_;
717 720
718 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 721 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
719 }; 722 };
720 723
721 } // namespace autofill 724 } // namespace autofill
722 725
723 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 726 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698