diff options
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 7 | ||||
-rw-r--r-- | chrome/renderer/render_view.h | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 557bc0d..d5db96e 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2165,13 +2165,16 @@ void RenderView::SpellCheck(const std::wstring& word, int& misspell_location, &misspell_length)); } -void RenderView::GetAutoCorrectWord(const std::wstring& misspelled_word, - std::wstring& autocorrect_word) { +std::wstring RenderView::GetAutoCorrectWord( + const std::wstring& misspelled_word) { + std::wstring autocorrect_word; const CommandLine& command_line = *CommandLine::ForCurrentProcess(); if (command_line.HasSwitch(switches::kAutoSpellCorrect)) { Send(new ViewHostMsg_GetAutoCorrectWord(routing_id_, misspelled_word, &autocorrect_word)); } + + return autocorrect_word; } void RenderView::SetInputMethodState(bool enabled) { diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index a1928ba..a0dd47a 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -312,8 +312,7 @@ class RenderView : public RenderWidget, virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); virtual void SpellCheck(const std::wstring& word, int& misspell_location, int& misspell_length); - virtual void GetAutoCorrectWord(const std::wstring& misspelled_word, - std::wstring& autocorrect_word); + virtual std::wstring GetAutoCorrectWord(const std::wstring& word); virtual void SetInputMethodState(bool enabled); virtual void ScriptedPrint(WebFrame* frame); virtual void WebInspectorOpened(int num_resources); |