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/renderer/spellchecker/platform_spelling_engine.h" | 5 #include "chrome/renderer/spellchecker/platform_spelling_engine.h" |
6 | 6 |
7 #include "chrome/common/spellcheck_messages.h" | 7 #include "components/spellcheck/common/spellcheck_messages.h" |
8 #include "content/public/renderer/render_thread.h" | 8 #include "content/public/renderer/render_thread.h" |
9 | 9 |
10 using content::RenderThread; | 10 using content::RenderThread; |
11 | 11 |
12 SpellingEngine* CreateNativeSpellingEngine() { | 12 SpellingEngine* CreateNativeSpellingEngine() { |
13 return new PlatformSpellingEngine(); | 13 return new PlatformSpellingEngine(); |
14 } | 14 } |
15 | 15 |
16 void PlatformSpellingEngine::Init(base::File bdict_file) { | 16 void PlatformSpellingEngine::Init(base::File bdict_file) { |
17 DCHECK(!bdict_file.IsValid()); | 17 DCHECK(!bdict_file.IsValid()); |
(...skipping 20 matching lines...) Expand all Loading... |
38 | 38 |
39 // Synchronously query against the platform's spellchecker. | 39 // Synchronously query against the platform's spellchecker. |
40 // TODO(groby): We might want async support here, too. Ideally, | 40 // TODO(groby): We might want async support here, too. Ideally, |
41 // all engines share a similar path for async requests. | 41 // all engines share a similar path for async requests. |
42 void PlatformSpellingEngine::FillSuggestionList( | 42 void PlatformSpellingEngine::FillSuggestionList( |
43 const base::string16& wrong_word, | 43 const base::string16& wrong_word, |
44 std::vector<base::string16>* optional_suggestions) { | 44 std::vector<base::string16>* optional_suggestions) { |
45 RenderThread::Get()->Send(new SpellCheckHostMsg_FillSuggestionList( | 45 RenderThread::Get()->Send(new SpellCheckHostMsg_FillSuggestionList( |
46 wrong_word, optional_suggestions)); | 46 wrong_word, optional_suggestions)); |
47 } | 47 } |
OLD | NEW |