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

Side by Side Diff: chrome/browser/views/options/languages_page_view.cc

Issue 150139: [chromium-reviews] Change the use of "Language" in Spell Check files to "SpellCheckLanguage". "L... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
OLDNEW
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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 639 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
640 if (command_line.HasSwitch(switches::kAutoSpellCorrect)) { 640 if (command_line.HasSwitch(switches::kAutoSpellCorrect)) {
641 enable_autospellcorrect_checkbox_ = new views::Checkbox( 641 enable_autospellcorrect_checkbox_ = new views::Checkbox(
642 l10n_util::GetString(IDS_OPTIONS_ENABLE_AUTO_SPELL_CORRECTION)); 642 l10n_util::GetString(IDS_OPTIONS_ENABLE_AUTO_SPELL_CORRECTION));
643 enable_autospellcorrect_checkbox_->set_listener(this); 643 enable_autospellcorrect_checkbox_->set_listener(this);
644 } 644 }
645 enable_spellchecking_checkbox_->set_listener(this); 645 enable_spellchecking_checkbox_->set_listener(this);
646 enable_spellchecking_checkbox_->SetMultiLine(true); 646 enable_spellchecking_checkbox_->SetMultiLine(true);
647 647
648 // Determine Locale Codes. 648 // Determine Locale Codes.
649 SpellChecker::Languages spell_check_languages; 649 std::vector<std::string> spell_check_languages;
650 SpellChecker::SpellCheckLanguages(&spell_check_languages); 650 SpellChecker::SpellCheckLanguages(&spell_check_languages);
651 dictionary_language_model_.reset(new LanguageComboboxModel(profile(), 651 dictionary_language_model_.reset(new LanguageComboboxModel(profile(),
652 spell_check_languages)); 652 spell_check_languages));
653 change_dictionary_language_combobox_ = 653 change_dictionary_language_combobox_ =
654 new views::Combobox(dictionary_language_model_.get()); 654 new views::Combobox(dictionary_language_model_.get());
655 change_dictionary_language_combobox_->set_listener(this); 655 change_dictionary_language_combobox_->set_listener(this);
656 656
657 // SpellCheck language settings. 657 // SpellCheck language settings.
658 layout->StartRow(0, single_column_view_set_id); 658 layout->StartRow(0, single_column_view_set_id);
659 layout->AddView(enable_spellchecking_checkbox_); 659 layout->AddView(enable_spellchecking_checkbox_);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 } 873 }
874 874
875 if (enable_spellcheck_checkbox_clicked_) 875 if (enable_spellcheck_checkbox_clicked_)
876 enable_spellcheck_.SetValue(enable_spellchecking_checkbox_->checked()); 876 enable_spellcheck_.SetValue(enable_spellchecking_checkbox_->checked());
877 877
878 if (enable_autospellcorrect_checkbox_clicked_) { 878 if (enable_autospellcorrect_checkbox_clicked_) {
879 enable_autospellcorrect_.SetValue( 879 enable_autospellcorrect_.SetValue(
880 enable_autospellcorrect_checkbox_->checked()); 880 enable_autospellcorrect_checkbox_->checked());
881 } 881 }
882 } 882 }
OLDNEW
« chrome/browser/spellchecker.cc ('K') | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698