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

Side by Side Diff: chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698