| 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 |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/gfx/native_theme.h" | 13 #include "base/gfx/native_theme.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/shell_dialogs.h" | 16 #include "chrome/browser/shell_dialogs.h" |
| 17 #include "chrome/browser/spellchecker.h" | 17 #include "chrome/browser/spellchecker.h" |
| 18 #include "chrome/browser/views/options/language_combobox_model.h" | 18 #include "chrome/browser/views/options/language_combobox_model.h" |
| 19 #include "chrome/browser/views/password_manager_view.h" | |
| 20 #include "chrome/browser/views/restart_message_box.h" | 19 #include "chrome/browser/views/restart_message_box.h" |
| 21 #include "chrome/browser/views/standard_layout.h" | 20 #include "chrome/browser/views/standard_layout.h" |
| 22 #include "chrome/common/gfx/chrome_canvas.h" | 21 #include "chrome/common/gfx/chrome_canvas.h" |
| 23 #include "chrome/common/gfx/chrome_font.h" | 22 #include "chrome/common/gfx/chrome_font.h" |
| 24 #include "chrome/common/l10n_util.h" | 23 #include "chrome/common/l10n_util.h" |
| 25 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
| 26 #include "chrome/common/pref_service.h" | 25 #include "chrome/common/pref_service.h" |
| 27 #include "chrome/common/resource_bundle.h" | 26 #include "chrome/common/resource_bundle.h" |
| 28 #include "chrome/views/controls/button/radio_button.h" | 27 #include "chrome/views/controls/button/radio_button.h" |
| 29 #include "chrome/views/controls/combo_box.h" | 28 #include "chrome/views/controls/combo_box.h" |
| 30 #include "chrome/views/controls/tabbed_pane.h" | 29 #include "chrome/views/controls/tabbed_pane.h" |
| 31 #include "chrome/views/controls/text_field.h" | 30 #include "chrome/views/controls/text_field.h" |
| 32 #include "chrome/views/grid_layout.h" | 31 #include "chrome/views/grid_layout.h" |
| 33 #include "chrome/views/widget/widget.h" | 32 #include "chrome/views/widget/widget.h" |
| 33 #include "chrome/views/window/window.h" |
| 34 #include "grit/chromium_strings.h" | 34 #include "grit/chromium_strings.h" |
| 35 #include "grit/generated_resources.h" | 35 #include "grit/generated_resources.h" |
| 36 #include "grit/theme_resources.h" | 36 #include "grit/theme_resources.h" |
| 37 #include "skia/include/SkBitmap.h" | 37 #include "skia/include/SkBitmap.h" |
| 38 #include "unicode/uloc.h" | 38 #include "unicode/uloc.h" |
| 39 | 39 |
| 40 static const char* const accept_language_list[] = { | 40 static const char* const accept_language_list[] = { |
| 41 "af", // Afrikaans | 41 "af", // Afrikaans |
| 42 "am", // Amharic | 42 "am", // Amharic |
| 43 "ar", // Arabic | 43 "ar", // Arabic |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 prefs->ClearPref(prefs::kSpellCheckDictionary); | 838 prefs->ClearPref(prefs::kSpellCheckDictionary); |
| 839 } | 839 } |
| 840 | 840 |
| 841 if (spellcheck_language_index_selected_ != -1) { | 841 if (spellcheck_language_index_selected_ != -1) { |
| 842 UserMetricsRecordAction(L"Options_DictionaryLanguage", | 842 UserMetricsRecordAction(L"Options_DictionaryLanguage", |
| 843 profile()->GetPrefs()); | 843 profile()->GetPrefs()); |
| 844 dictionary_language_.SetValue(ASCIIToWide(dictionary_language_model_-> | 844 dictionary_language_.SetValue(ASCIIToWide(dictionary_language_model_-> |
| 845 GetLocaleFromIndex(spellcheck_language_index_selected_))); | 845 GetLocaleFromIndex(spellcheck_language_index_selected_))); |
| 846 } | 846 } |
| 847 } | 847 } |
| OLD | NEW |