1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_EMPTY_COMBOBOX_MODEL_H_ 6 #define UI_VIEWS_CONTROLS_COMBOBOX_EMPTY_COMBOBOX_MODEL_H_ 7 8 #include "ui/base/models/combobox_model.h" 9 10 namespace views { 11 namespace internal { 12 13 // An empty model for a combo box. 14 class EmptyComboboxModel final : public ui::ComboboxModel { 15 public: 16 EmptyComboboxModel(); 17 EmptyComboboxModel(EmptyComboboxModel&) = delete; 18 EmptyComboboxModel& operator=(const EmptyComboboxModel&) = delete; 19 ~EmptyComboboxModel() override; 20 21 // ui::ComboboxModel: 22 int GetItemCount() const override; 23 base::string16 GetItemAt(int index) const override; 24 int GetDefaultIndex() const override; 25 }; 26 27 } // namespace internal 28 } // namespace views 29 30 #endif // UI_VIEWS_CONTROLS_COMBOBOX_EMPTY_COMBOBOX_MODEL_H_ 31