| 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_SPELLCHECKER_PLATFORM_ENGINE_H_ | 8 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_PLATFORM_ENGINE_H_ |
| 9 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_PLATFORM_ENGINE_H_ | 9 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_PLATFORM_ENGINE_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback.h" | 15 #include "base/callback_forward.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 | 17 |
| 18 class BrowserMessageFilter; | 18 class BrowserMessageFilter; |
| 19 | 19 |
| 20 namespace SpellCheckerPlatform { | 20 namespace SpellCheckerPlatform { |
| 21 | 21 |
| 22 // Get the languages supported by the platform spellchecker and store them in | 22 // Get the languages supported by the platform spellchecker and store them in |
| 23 // |spellcheck_languages|. Note that they must be converted to | 23 // |spellcheck_languages|. Note that they must be converted to |
| 24 // Chromium style codes (en-US not en_US). See spellchecker.cc for a full list. | 24 // Chromium style codes (en-US not en_US). See spellchecker.cc for a full list. |
| 25 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages); | 25 void GetAvailableLanguages(std::vector<std::string>* spellcheck_languages); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // not be null. | 89 // not be null. |
| 90 void RequestTextCheck(int route_id, | 90 void RequestTextCheck(int route_id, |
| 91 int identifier, | 91 int identifier, |
| 92 int document_tag, | 92 int document_tag, |
| 93 const string16& text, | 93 const string16& text, |
| 94 BrowserMessageFilter* destination); | 94 BrowserMessageFilter* destination); |
| 95 | 95 |
| 96 } // namespace SpellCheckerPlatform | 96 } // namespace SpellCheckerPlatform |
| 97 | 97 |
| 98 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_PLATFORM_ENGINE_H_ | 98 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECKER_PLATFORM_ENGINE_H_ |
| OLD | NEW |