| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 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_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/strings/string16.h" |
| 11 #include "ui/base/models/combobox_model.h" |
| 12 |
| 13 class TranslateUIDelegate; |
| 14 |
| 15 class LanguageComboboxModel : public ui::ComboboxModel { |
| 16 public: |
| 17 LanguageComboboxModel(int default_index, |
| 18 const TranslateUIDelegate& ui_delegate); |
| 19 virtual ~LanguageComboboxModel(); |
| 20 |
| 21 // Overridden from ui::ComboboxModel: |
| 22 virtual int GetItemCount() const OVERRIDE; |
| 23 virtual string16 GetItemAt(int index) OVERRIDE; |
| 24 virtual bool IsItemSeparatorAt(int index) OVERRIDE; |
| 25 virtual int GetDefaultIndex() const OVERRIDE; |
| 26 |
| 27 private: |
| 28 int default_index_; |
| 29 const TranslateUIDelegate& ui_delegate_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(LanguageComboboxModel); |
| 32 }; |
| 33 |
| 34 #endif // CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_ |
| OLD | NEW |