| 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 <utility> | 10 #include <utility> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ShippingAddressValidationDelegate( | 68 ShippingAddressValidationDelegate( |
| 69 ShippingAddressEditorViewController* parent, | 69 ShippingAddressEditorViewController* parent, |
| 70 const EditorField& field); | 70 const EditorField& field); |
| 71 ~ShippingAddressValidationDelegate() override; | 71 ~ShippingAddressValidationDelegate() override; |
| 72 | 72 |
| 73 // ValidationDelegate: | 73 // ValidationDelegate: |
| 74 bool ShouldFormat() override; | 74 bool ShouldFormat() override; |
| 75 base::string16 Format(const base::string16& text) override; | 75 base::string16 Format(const base::string16& text) override; |
| 76 bool IsValidTextfield(views::Textfield* textfield) override; | 76 bool IsValidTextfield(views::Textfield* textfield) override; |
| 77 bool IsValidCombobox(views::Combobox* combobox) override; | 77 bool IsValidCombobox(views::Combobox* combobox) override; |
| 78 bool TextfieldValueChanged(views::Textfield* textfield) override; | 78 bool TextfieldValueChanged(views::Textfield* textfield, |
| 79 bool was_blurred) override; |
| 79 bool ComboboxValueChanged(views::Combobox* combobox) override; | 80 bool ComboboxValueChanged(views::Combobox* combobox) override; |
| 80 void ComboboxModelChanged(views::Combobox* combobox) override; | 81 void ComboboxModelChanged(views::Combobox* combobox) override; |
| 81 | 82 |
| 82 private: | 83 private: |
| 83 bool ValidateValue(const base::string16& value, | 84 bool ValidateValue(const base::string16& value, |
| 84 base::string16* error_message); | 85 base::string16* error_message); |
| 85 | 86 |
| 86 EditorField field_; | 87 EditorField field_; |
| 87 | 88 |
| 88 // Raw pointer back to the owner of this class, therefore will not be null. | 89 // Raw pointer back to the owner of this class, therefore will not be null. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 148 |
| 148 // Failed to fetch the region data in time. | 149 // Failed to fetch the region data in time. |
| 149 void RegionDataLoadTimedOut(); | 150 void RegionDataLoadTimedOut(); |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(ShippingAddressEditorViewController); | 152 DISALLOW_COPY_AND_ASSIGN(ShippingAddressEditorViewController); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace payments | 155 } // namespace payments |
| 155 | 156 |
| 156 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROL
LER_H_ | 157 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROL
LER_H_ |
| OLD | NEW |