| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This file defines the interface that any platform-specific spellchecker | 5 // This file defines the interface that any platform-specific spellchecker |
| 6 // needs to implement in order to be used by the browser. | 6 // needs to implement in order to be used by the browser. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_SPELLCHECKER_PLATFORM_ENGINE_H_ | 8 #ifndef CHROME_BROWSER_SPELLCHECKER_PLATFORM_ENGINE_H_ |
| 9 #define CHROME_BROWSER_SPELLCHECKER_PLATFORM_ENGINE_H_ | 9 #define CHROME_BROWSER_SPELLCHECKER_PLATFORM_ENGINE_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "chrome/browser/spellchecker_common.h" | |
| 16 | 15 |
| 17 namespace SpellCheckerPlatform { | 16 namespace SpellCheckerPlatform { |
| 18 | 17 |
| 19 // Get the languages supported by the platform spellchecker and store them in | 18 // Get the languages supported by the platform spellchecker and store them in |
| 20 // |spellcheck_languages|. Note that they must be converted to | 19 // |spellcheck_languages|. Note that they must be converted to |
| 21 // Chromium style codes (en-US not en_US). See spellchecker.cc for a full list. | 20 // Chromium style codes (en-US not en_US). See spellchecker.cc for a full list. |
| 22 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages); | 21 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages); |
| 23 | 22 |
| 24 // Returns true if there is a platform-specific spellchecker that can be used. | 23 // Returns true if there is a platform-specific spellchecker that can be used. |
| 25 bool SpellCheckerAvailable(); | 24 bool SpellCheckerAvailable(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void IgnoreWord(const string16& word); | 76 void IgnoreWord(const string16& word); |
| 78 | 77 |
| 79 // Tells the platform spellchecker that a document associated with a tag has | 78 // Tells the platform spellchecker that a document associated with a tag has |
| 80 // closed. Generally, this means that any ignored words associated with that | 79 // closed. Generally, this means that any ignored words associated with that |
| 81 // document can now be forgotten. | 80 // document can now be forgotten. |
| 82 void CloseDocumentWithTag(int tag); | 81 void CloseDocumentWithTag(int tag); |
| 83 | 82 |
| 84 } // namespace SpellCheckerPlatform | 83 } // namespace SpellCheckerPlatform |
| 85 | 84 |
| 86 #endif // CHROME_BROWSER_SPELLCHECKER_PLATFORM_ENGINE_H_ | 85 #endif // CHROME_BROWSER_SPELLCHECKER_PLATFORM_ENGINE_H_ |
| OLD | NEW |