Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / translate / language_combobox_model.h
blob4daa855ef4c469a8a291763c401c7831684f6987
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.
5 #ifndef CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_
6 #define CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h"
12 #include "ui/base/models/combobox_model.h"
14 class TranslateBubbleModel;
16 // The model for the combobox to select a language. This is used for Translate
17 // user interface to select language.
18 class LanguageComboboxModel : public ui::ComboboxModel {
19 public:
20 LanguageComboboxModel(int default_index,
21 TranslateBubbleModel* model);
22 virtual ~LanguageComboboxModel();
24 // Overridden from ui::ComboboxModel:
25 virtual int GetItemCount() const OVERRIDE;
26 virtual base::string16 GetItemAt(int index) OVERRIDE;
27 virtual bool IsItemSeparatorAt(int index) OVERRIDE;
28 virtual int GetDefaultIndex() const OVERRIDE;
30 private:
31 const int default_index_;
32 TranslateBubbleModel* model_;
34 DISALLOW_COPY_AND_ASSIGN(LanguageComboboxModel);
37 #endif // CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_