| 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_MOZC_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_MOZC_CONFIG_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_MOZC_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_MOZC_CONFIG_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Resets all the preferences to the default values. | 76 // Resets all the preferences to the default values. |
| 77 void ResetToDefaults(); | 77 void ResetToDefaults(); |
| 78 | 78 |
| 79 views::View* contents_; | 79 views::View* contents_; |
| 80 | 80 |
| 81 views::Button* reset_to_defaults_button_; | 81 views::Button* reset_to_defaults_button_; |
| 82 | 82 |
| 83 struct MozcPrefAndAssociatedCheckbox { | 83 struct MozcPrefAndAssociatedCheckbox { |
| 84 BooleanPrefMember boolean_pref; | 84 BooleanPrefMember boolean_pref; |
| 85 views::Checkbox* checkbox; | 85 views::Checkbox* checkbox; |
| 86 } prefs_and_checkboxes_[kNumMozcBooleanPrefs]; | 86 } prefs_and_checkboxes_[language_prefs::kNumMozcBooleanPrefs]; |
| 87 | 87 |
| 88 struct MozcPrefAndAssociatedCombobox { | 88 struct MozcPrefAndAssociatedCombobox { |
| 89 StringPrefMember multiple_choice_pref; | 89 StringPrefMember multiple_choice_pref; |
| 90 LanguageComboboxModel<const char*>* combobox_model; | 90 LanguageComboboxModel<const char*>* combobox_model; |
| 91 LanguageCombobox* combobox; | 91 LanguageCombobox* combobox; |
| 92 } prefs_and_comboboxes_[kNumMozcMultipleChoicePrefs]; | 92 } prefs_and_comboboxes_[language_prefs::kNumMozcMultipleChoicePrefs]; |
| 93 | 93 |
| 94 struct MozcPrefAndAssociatedSlider { | 94 struct MozcPrefAndAssociatedSlider { |
| 95 IntegerPrefMember integer_pref; | 95 IntegerPrefMember integer_pref; |
| 96 views::Slider* slider; | 96 views::Slider* slider; |
| 97 } prefs_and_sliders_[kNumMozcIntegerPrefs]; | 97 } prefs_and_sliders_[language_prefs::kNumMozcIntegerPrefs]; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(LanguageMozcConfigView); | 99 DISALLOW_COPY_AND_ASSIGN(LanguageMozcConfigView); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace chromeos | 102 } // namespace chromeos |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_MOZC_CONFIG_VIEW_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_LANGUAGE_MOZC_CONFIG_VIEW_H_ |
| OLD | NEW |