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

Side by Side Diff: chrome/browser/ui/views/payments/credit_card_editor_view_controller.h

Issue 2888733004: Change text and disable empty combobox for payment request shipping address (Closed)
Patch Set: Fixed a weird goof Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 base::string16 GetInitialValueForType( 54 base::string16 GetInitialValueForType(
55 autofill::ServerFieldType type) override; 55 autofill::ServerFieldType type) override;
56 bool ValidateModelAndSave() override; 56 bool ValidateModelAndSave() override;
57 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( 57 std::unique_ptr<ValidationDelegate> CreateValidationDelegate(
58 const EditorField& field) override; 58 const EditorField& field) override;
59 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( 59 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType(
60 const autofill::ServerFieldType& type) override; 60 const autofill::ServerFieldType& type) override;
61 61
62 protected: 62 protected:
63 // PaymentRequestSheetController: 63 // PaymentRequestSheetController:
64 void FillContentView(views::View* content_view) override;
64 base::string16 GetSheetTitle() override; 65 base::string16 GetSheetTitle() override;
65 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 66 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
66 67
67 private: 68 private:
68 class CreditCardValidationDelegate : public ValidationDelegate { 69 class CreditCardValidationDelegate : public ValidationDelegate {
69 public: 70 public:
70 // Used to validate |field| type. A reference to the |controller| should 71 // Used to validate |field| type. A reference to the |controller| should
71 // outlive this delegate, and a list of |supported_card_networks| can be 72 // outlive this delegate, and a list of |supported_card_networks| can be
72 // passed in to validate |field| (the data will be copied to the delegate). 73 // passed in to validate |field| (the data will be copied to the delegate).
73 CreditCardValidationDelegate( 74 CreditCardValidationDelegate(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 114
114 // The value to use for the add billing address button tag. 115 // The value to use for the add billing address button tag.
115 int add_billing_address_button_tag_; 116 int add_billing_address_button_tag_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); 118 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController);
118 }; 119 };
119 120
120 } // namespace payments 121 } // namespace payments
121 122
122 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _ 123 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698