| 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_VALIDATING_COMBOBOX_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Identifies whether the current content if valid or not. | 37 // Identifies whether the current content if valid or not. |
| 38 bool IsValid(); | 38 bool IsValid(); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // Will call to the ValidationDelegate to validate the contents of the | 41 // Will call to the ValidationDelegate to validate the contents of the |
| 42 // combobox. | 42 // combobox. |
| 43 void Validate(); | 43 void Validate(); |
| 44 | 44 |
| 45 std::unique_ptr<ValidationDelegate> delegate_; | 45 std::unique_ptr<ValidationDelegate> delegate_; |
| 46 bool was_blurred_ = false; | |
| 47 bool being_removed_ = false; | 46 bool being_removed_ = false; |
| 48 | 47 |
| 49 DISALLOW_COPY_AND_ASSIGN(ValidatingCombobox); | 48 DISALLOW_COPY_AND_ASSIGN(ValidatingCombobox); |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 } // namespace payments | 51 } // namespace payments |
| 53 | 52 |
| 54 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ |
| OLD | NEW |