OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_OPTIONS_LANGUAGE_CONFIG_MODEL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CONFIG_MODEL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CONFIG_MODEL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CONFIG_MODEL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "chrome/browser/language_combobox_model.h" | 13 #include "chrome/browser/language_combobox_model.h" |
14 #include "chrome/browser/pref_member.h" | 14 #include "chrome/browser/pref_member.h" |
15 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/pref_service.h" |
16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
18 #include "cros/chromeos_input_method.h" | 18 #include "cros/chromeos_input_method.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 | 21 |
22 // The combobox model is used for adding languages in the language config | 22 // The combobox model is used for adding languages in the language config |
23 // view. | 23 // view. |
24 class AddLanguageComboboxModel : public LanguageComboboxModel { | 24 class AddLanguageComboboxModel : public ::LanguageComboboxModel { |
25 public: | 25 public: |
26 AddLanguageComboboxModel(Profile* profile, | 26 AddLanguageComboboxModel(Profile* profile, |
27 const std::vector<std::string>& locale_codes); | 27 const std::vector<std::string>& locale_codes); |
28 // LanguageComboboxModel overrides. | 28 // LanguageComboboxModel overrides. |
29 virtual int GetItemCount(); | 29 virtual int GetItemCount(); |
30 virtual std::wstring GetItemAt(int index); | 30 virtual std::wstring GetItemAt(int index); |
31 | 31 |
32 // Converts the given index (index of the items in the combobox) to the | 32 // Converts the given index (index of the items in the combobox) to the |
33 // index of the internal language list. The returned index can be used | 33 // index of the internal language list. The returned index can be used |
34 // for GetLocaleFromIndex() and GetLanguageNameAt(). | 34 // for GetLocaleFromIndex() and GetLanguageNameAt(). |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 std::vector<std::string> supported_language_codes_; | 138 std::vector<std::string> supported_language_codes_; |
139 // List of supported IME IDs like "pinyin" and "m17n:ar:kbd". | 139 // List of supported IME IDs like "pinyin" and "m17n:ar:kbd". |
140 std::vector<std::string> supported_input_method_ids_; | 140 std::vector<std::string> supported_input_method_ids_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(LanguageConfigModel); | 142 DISALLOW_COPY_AND_ASSIGN(LanguageConfigModel); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace chromeos | 145 } // namespace chromeos |
146 | 146 |
147 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CONFIG_MODEL_H_ | 147 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CONFIG_MODEL_H_ |
OLD | NEW |