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 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ | 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ |
6 #define CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ | 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Initialize spelling engine with browser-side info. Must be called before | 22 // Initialize spelling engine with browser-side info. Must be called before |
23 // any other functions are called. | 23 // any other functions are called. |
24 virtual void Init(base::PlatformFile bdict_file, | 24 virtual void Init(base::PlatformFile bdict_file, |
25 const std::vector<std::string>& custom_words) = 0; | 25 const std::vector<std::string>& custom_words) = 0; |
26 virtual bool InitializeIfNeeded() = 0; | 26 virtual bool InitializeIfNeeded() = 0; |
27 virtual bool IsEnabled() = 0; | 27 virtual bool IsEnabled() = 0; |
28 virtual bool CheckSpelling(const string16& word_to_check, int tag) = 0; | 28 virtual bool CheckSpelling(const string16& word_to_check, int tag) = 0; |
29 virtual void FillSuggestionList(const string16& wrong_word, | 29 virtual void FillSuggestionList(const string16& wrong_word, |
30 std::vector<string16>* optional_suggestions) = 0; | 30 std::vector<string16>* optional_suggestions) = 0; |
31 virtual void OnWordAdded(const std::string& word) = 0; | 31 virtual void OnWordsAdded(const std::vector<std::string>& words) = 0; |
32 virtual void OnWordRemoved(const std::string& word) = 0; | 32 virtual void OnWordsRemoved(const std::vector<std::string>& words) = 0; |
33 }; | 33 }; |
34 | 34 |
35 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ | 35 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ |
36 | 36 |
OLD | NEW |