| OLD | NEW |
| 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_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROLLER
_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROLLER
_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROLLER
_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROLLER
_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const EditorField& field) override; | 51 const EditorField& field) override; |
| 52 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( | 52 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( |
| 53 const autofill::ServerFieldType& type) override; | 53 const autofill::ServerFieldType& type) override; |
| 54 void OnPerformAction(views::Combobox* combobox) override; | 54 void OnPerformAction(views::Combobox* combobox) override; |
| 55 void UpdateEditorView() override; | 55 void UpdateEditorView() override; |
| 56 | 56 |
| 57 // PaymentRequestSheetController: | 57 // PaymentRequestSheetController: |
| 58 base::string16 GetSheetTitle() override; | 58 base::string16 GetSheetTitle() override; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 bool GetSheetId(DialogViewID* sheet_id) override; |
| 62 |
| 61 class ShippingAddressValidationDelegate : public ValidationDelegate { | 63 class ShippingAddressValidationDelegate : public ValidationDelegate { |
| 62 public: | 64 public: |
| 63 ShippingAddressValidationDelegate( | 65 ShippingAddressValidationDelegate( |
| 64 ShippingAddressEditorViewController* parent, | 66 ShippingAddressEditorViewController* parent, |
| 65 const EditorField& field); | 67 const EditorField& field); |
| 66 ~ShippingAddressValidationDelegate() override; | 68 ~ShippingAddressValidationDelegate() override; |
| 67 | 69 |
| 68 // ValidationDelegate: | 70 // ValidationDelegate: |
| 69 bool ValidateTextfield(views::Textfield* textfield) override; | 71 bool ValidateTextfield(views::Textfield* textfield) override; |
| 70 bool ValidateCombobox(views::Combobox* combobox) override; | 72 bool ValidateCombobox(views::Combobox* combobox) override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 131 |
| 130 // Failed to fetch the region data in time. | 132 // Failed to fetch the region data in time. |
| 131 void RegionDataLoadTimedOut(); | 133 void RegionDataLoadTimedOut(); |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(ShippingAddressEditorViewController); | 135 DISALLOW_COPY_AND_ASSIGN(ShippingAddressEditorViewController); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace payments | 138 } // namespace payments |
| 137 | 139 |
| 138 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROL
LER_H_ | 140 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROL
LER_H_ |
| OLD | NEW |