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

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

Powered by Google App Engine
This is Rietveld 408576698