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

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

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 profile->GetPrefs(), 168 profile->GetPrefs(),
169 NULL); 169 NULL);
170 dictionary_language.SetValue(languages_[language]); 170 dictionary_language.SetValue(languages_[language]);
171 } 171 }
172 return; 172 return;
173 } 173 }
174 174
175 RenderViewHost* rvh = proxy_->GetRenderViewHost(); 175 RenderViewHost* rvh = proxy_->GetRenderViewHost();
176 switch (command_id) { 176 switch (command_id) {
177 case IDC_CHECK_SPELLING_OF_THIS_FIELD: 177 case IDC_CHECK_SPELLING_OF_THIS_FIELD:
178 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->routing_id())); 178 rvh->Send(new SpellCheckMsg_ToggleSpellCheck(rvh->GetRoutingID()));
179 break; 179 break;
180 } 180 }
181 } 181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698