| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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 CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_MORE_COMBOBOX_MODEL_H_ | |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_MORE_COMBOBOX_MODEL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "ui/base/models/combobox_model.h" | |
| 10 | |
| 11 // Model for the account chooser's "More" combobox. | |
| 12 class AccountChooserMoreComboboxModel : public ui::ComboboxModel { | |
| 13 public: | |
| 14 AccountChooserMoreComboboxModel(); | |
| 15 ~AccountChooserMoreComboboxModel() override; | |
| 16 | |
| 17 // Index constants. | |
| 18 static const int INDEX_MORE; | |
| 19 static const int INDEX_LEARN_MORE; | |
| 20 static const int INDEX_SETTINGS; | |
| 21 | |
| 22 // ui::ComboboxModel: | |
| 23 int GetItemCount() const override; | |
| 24 base::string16 GetItemAt(int index) override; | |
| 25 bool IsItemSeparatorAt(int index) override; | |
| 26 int GetDefaultIndex() const override; | |
| 27 bool IsItemEnabledAt(int index) const override; | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(AccountChooserMoreComboboxModel); | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_MORE_COMBOBOX_MODEL_H_ | |
| OLD | NEW |