OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <windows.h> | 4 #include <windows.h> |
5 #include <shlobj.h> | 5 #include <shlobj.h> |
6 #include <vsstyle.h> | 6 #include <vsstyle.h> |
7 #include <vssym32.h> | 7 #include <vssym32.h> |
8 | 8 |
9 #include "chrome/browser/views/options/languages_page_view.h" | 9 #include "chrome/browser/views/options/languages_page_view.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
25 #include "chrome/common/pref_service.h" | 25 #include "chrome/common/pref_service.h" |
26 #include "grit/chromium_strings.h" | 26 #include "grit/chromium_strings.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
29 #include "third_party/skia/include/core/SkBitmap.h" | 29 #include "third_party/skia/include/core/SkBitmap.h" |
30 #include "unicode/uloc.h" | 30 #include "unicode/uloc.h" |
31 #include "views/controls/button/radio_button.h" | 31 #include "views/controls/button/radio_button.h" |
32 #include "views/controls/combo_box.h" | 32 #include "views/controls/combo_box.h" |
33 #include "views/controls/tabbed_pane.h" | 33 #include "views/controls/tabbed_pane.h" |
34 #include "views/controls/text_field.h" | |
35 #include "views/grid_layout.h" | 34 #include "views/grid_layout.h" |
36 #include "views/standard_layout.h" | 35 #include "views/standard_layout.h" |
37 #include "views/widget/widget.h" | 36 #include "views/widget/widget.h" |
38 #include "views/window/window.h" | 37 #include "views/window/window.h" |
39 | 38 |
40 static const char* const accept_language_list[] = { | 39 static const char* const accept_language_list[] = { |
41 "af", // Afrikaans | 40 "af", // Afrikaans |
42 "am", // Amharic | 41 "am", // Amharic |
43 "ar", // Arabic | 42 "ar", // Arabic |
44 "az", // Azerbaijani | 43 "az", // Azerbaijani |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 if (spellcheck_language_index_selected_ != -1) { | 838 if (spellcheck_language_index_selected_ != -1) { |
840 UserMetricsRecordAction(L"Options_DictionaryLanguage", | 839 UserMetricsRecordAction(L"Options_DictionaryLanguage", |
841 profile()->GetPrefs()); | 840 profile()->GetPrefs()); |
842 dictionary_language_.SetValue(ASCIIToWide(dictionary_language_model_-> | 841 dictionary_language_.SetValue(ASCIIToWide(dictionary_language_model_-> |
843 GetLocaleFromIndex(spellcheck_language_index_selected_))); | 842 GetLocaleFromIndex(spellcheck_language_index_selected_))); |
844 } | 843 } |
845 | 844 |
846 if (enable_spellcheck_checkbox_clicked_) | 845 if (enable_spellcheck_checkbox_clicked_) |
847 enable_spellcheck_.SetValue(enable_spellchecking_checkbox_->checked()); | 846 enable_spellcheck_.SetValue(enable_spellchecking_checkbox_->checked()); |
848 } | 847 } |
OLD | NEW |