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_PINYIN_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // NotificationObserver overrides. | 59 // NotificationObserver overrides. |
60 virtual void Observe(NotificationType type, | 60 virtual void Observe(NotificationType type, |
61 const NotificationSource& source, | 61 const NotificationSource& source, |
62 const NotificationDetails& details); | 62 const NotificationDetails& details); |
63 | 63 |
64 private: | 64 private: |
65 // Updates the pinyin checkboxes. | 65 // Updates the pinyin checkboxes. |
66 void NotifyPrefChanged(); | 66 void NotifyPrefChanged(); |
67 | 67 |
68 BooleanPrefMember pinyin_boolean_prefs_[kNumPinyinBooleanPrefs]; | 68 BooleanPrefMember pinyin_boolean_prefs_[ |
| 69 language_prefs::kNumPinyinBooleanPrefs]; |
69 // TODO(yusukes): Support integer prefs if needed. | 70 // TODO(yusukes): Support integer prefs if needed. |
70 views::View* contents_; | 71 views::View* contents_; |
71 | 72 |
72 // A checkboxes for Pinyin. | 73 // A checkboxes for Pinyin. |
73 views::Checkbox* pinyin_boolean_checkboxes_[kNumPinyinBooleanPrefs]; | 74 views::Checkbox* pinyin_boolean_checkboxes_[ |
| 75 language_prefs::kNumPinyinBooleanPrefs]; |
74 | 76 |
75 struct DoublePinyinSchemaPrefAndAssociatedCombobox { | 77 struct DoublePinyinSchemaPrefAndAssociatedCombobox { |
76 IntegerPrefMember multiple_choice_pref; | 78 IntegerPrefMember multiple_choice_pref; |
77 LanguageComboboxModel<int>* combobox_model; | 79 LanguageComboboxModel<int>* combobox_model; |
78 LanguageCombobox* combobox; | 80 LanguageCombobox* combobox; |
79 } double_pinyin_schema_; | 81 } double_pinyin_schema_; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(LanguagePinyinConfigView); | 83 DISALLOW_COPY_AND_ASSIGN(LanguagePinyinConfigView); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace chromeos | 86 } // namespace chromeos |
85 | 87 |
86 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ | 88 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_PINYIN_CONFIG_VIEW_H_ |
OLD | NEW |