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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // ui::ComboboxModelObserver: | 34 // ui::ComboboxModelObserver: |
35 void OnComboboxModelChanged(ui::ComboboxModel* model) override; | 35 void OnComboboxModelChanged(ui::ComboboxModel* model) override; |
36 | 36 |
37 private: | 37 private: |
38 // Will call to the ValidationDelegate to validate the contents of the | 38 // Will call to the ValidationDelegate to validate the contents of the |
39 // combobox. | 39 // combobox. |
40 void Validate(); | 40 void Validate(); |
41 | 41 |
42 std::unique_ptr<ValidationDelegate> delegate_; | 42 std::unique_ptr<ValidationDelegate> delegate_; |
43 bool was_blurred_ = false; | |
44 bool being_removed_ = false; | 43 bool being_removed_ = false; |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(ValidatingCombobox); | 45 DISALLOW_COPY_AND_ASSIGN(ValidatingCombobox); |
47 }; | 46 }; |
48 | 47 |
49 } // namespace payments | 48 } // namespace payments |
50 | 49 |
51 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ | 50 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATING_COMBOBOX_H_ |
OLD | NEW |