Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: chrome/browser/chromeos/options/language_chewing_config_view.h

Issue 3132023: Add language_prefs namespace to language_preferences.h. (Closed)
Patch Set: address comments Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CHEWING_CONFIG_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CHEWING_CONFIG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CHEWING_CONFIG_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CHEWING_CONFIG_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // NotificationObserver overrides. 64 // NotificationObserver overrides.
65 virtual void Observe(NotificationType type, 65 virtual void Observe(NotificationType type,
66 const NotificationSource& source, 66 const NotificationSource& source,
67 const NotificationDetails& details); 67 const NotificationDetails& details);
68 68
69 private: 69 private:
70 // Updates the chewing checkboxes. 70 // Updates the chewing checkboxes.
71 void NotifyPrefChanged(); 71 void NotifyPrefChanged();
72 72
73 BooleanPrefMember chewing_boolean_prefs_[kNumChewingBooleanPrefs]; 73 BooleanPrefMember chewing_boolean_prefs_[
74 IntegerPrefMember chewing_integer_prefs_[kNumChewingIntegerPrefs]; 74 language_prefs::kNumChewingBooleanPrefs];
75 IntegerPrefMember chewing_integer_prefs_[
76 language_prefs::kNumChewingIntegerPrefs];
75 views::View* contents_; 77 views::View* contents_;
76 78
77 // Checkboxes for Chewing. 79 // Checkboxes for Chewing.
78 views::Checkbox* chewing_boolean_checkboxes_[kNumChewingBooleanPrefs]; 80 views::Checkbox* chewing_boolean_checkboxes_[
81 language_prefs::kNumChewingBooleanPrefs];
79 82
80 views::Slider* chewing_integer_sliders_[kNumChewingIntegerPrefs]; 83 views::Slider* chewing_integer_sliders_[
84 language_prefs::kNumChewingIntegerPrefs];
81 85
82 struct ChewingPrefAndAssociatedCombobox { 86 struct ChewingPrefAndAssociatedCombobox {
83 StringPrefMember multiple_choice_pref; 87 StringPrefMember multiple_choice_pref;
84 LanguageComboboxModel<const char*>* combobox_model; 88 LanguageComboboxModel<const char*>* combobox_model;
85 LanguageCombobox* combobox; 89 LanguageCombobox* combobox;
86 } prefs_and_comboboxes_[kNumChewingMultipleChoicePrefs]; 90 } prefs_and_comboboxes_[language_prefs::kNumChewingMultipleChoicePrefs];
87 91
88 struct HsuSelKeyTypePrefAndAssociatedCombobox { 92 struct HsuSelKeyTypePrefAndAssociatedCombobox {
89 IntegerPrefMember multiple_choice_pref; 93 IntegerPrefMember multiple_choice_pref;
90 LanguageComboboxModel<int>* combobox_model; 94 LanguageComboboxModel<int>* combobox_model;
91 LanguageCombobox* combobox; 95 LanguageCombobox* combobox;
92 } hsu_sel_key_type_; 96 } hsu_sel_key_type_;
93 97
94 DISALLOW_COPY_AND_ASSIGN(LanguageChewingConfigView); 98 DISALLOW_COPY_AND_ASSIGN(LanguageChewingConfigView);
95 }; 99 };
96 100
97 } // namespace chromeos 101 } // namespace chromeos
98 102
99 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CHEWING_CONFIG_VIEW_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_CHEWING_CONFIG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/chromeos/options/language_chewing_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698