| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 class ShippingAddressValidationDelegate : public ValidationDelegate { | 66 class ShippingAddressValidationDelegate : public ValidationDelegate { |
| 67 public: | 67 public: |
| 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 IsValidTextfield(views::Textfield* textfield) override; | 74 bool IsValidTextfield(views::Textfield* textfield) override; |
| 75 bool IsValidCombobox(views::Combobox* combobox) override; | 75 bool IsValidCombobox(views::Combobox* combobox) override; |
| 76 bool TextfieldValueChanged(views::Textfield* textfield) override; | 76 bool TextfieldValueChanged(views::Textfield* textfield, |
| 77 bool was_blurred) override; |
| 77 bool ComboboxValueChanged(views::Combobox* combobox) override; | 78 bool ComboboxValueChanged(views::Combobox* combobox) override; |
| 78 void ComboboxModelChanged(views::Combobox* combobox) override; | 79 void ComboboxModelChanged(views::Combobox* combobox) override; |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 bool ValidateValue(const base::string16& value, | 82 bool ValidateValue(const base::string16& value, |
| 82 base::string16* error_message); | 83 base::string16* error_message); |
| 83 | 84 |
| 84 EditorField field_; | 85 EditorField field_; |
| 85 | 86 |
| 86 // Raw pointer back to the owner of this class, therefore will not be null. | 87 // 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... |
| 145 | 146 |
| 146 // Failed to fetch the region data in time. | 147 // Failed to fetch the region data in time. |
| 147 void RegionDataLoadTimedOut(); | 148 void RegionDataLoadTimedOut(); |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(ShippingAddressEditorViewController); | 150 DISALLOW_COPY_AND_ASSIGN(ShippingAddressEditorViewController); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 } // namespace payments | 153 } // namespace payments |
| 153 | 154 |
| 154 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROL
LER_H_ | 155 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_ADDRESS_EDITOR_VIEW_CONTROL
LER_H_ |
| OLD | NEW |