| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/tab_contents/spellchecker_submenu_observer.h" | 5 #include "chrome/browser/tab_contents/spellchecker_submenu_observer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 if (profile && language < languages_.size()) { | 159 if (profile && language < languages_.size()) { |
| 160 StringPrefMember dictionary_language; | 160 StringPrefMember dictionary_language; |
| 161 dictionary_language.Init(prefs::kSpellCheckDictionary, | 161 dictionary_language.Init(prefs::kSpellCheckDictionary, |
| 162 profile->GetPrefs(), | 162 profile->GetPrefs(), |
| 163 NULL); | 163 NULL); |
| 164 dictionary_language.SetValue(languages_[language]); | 164 dictionary_language.SetValue(languages_[language]); |
| 165 } | 165 } |
| 166 return; | 166 return; |
| 167 } | 167 } |
| 168 | 168 |
| 169 RenderViewHost* rvh = proxy_->GetRenderViewHost(); | 169 content::RenderViewHost* rvh = proxy_->GetRenderViewHost(); |
| 170 switch (command_id) { | 170 switch (command_id) { |
| 171 case IDC_CHECK_SPELLING_OF_THIS_FIELD: | 171 case IDC_CHECK_SPELLING_OF_THIS_FIELD: |
| 172 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->GetRoutingID())); | 172 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->GetRoutingID())); |
| 173 break; | 173 break; |
| 174 } | 174 } |
| 175 } | 175 } |
| OLD | NEW |