| 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_NSSPELLCHECKER_ENGINE_H_ | 5 #ifndef CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ |
| 6 #define CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ | 6 #define CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/renderer/spellchecker/spelling_engine.h" | 9 #include "chrome/renderer/spellchecker/spelling_engine.h" |
| 10 | 10 |
| 11 class CocoaSpellingEngine : public SpellingEngine { | 11 class CocoaSpellingEngine : public SpellingEngine { |
| 12 public: | 12 public: |
| 13 virtual bool InitializeIfNeeded() OVERRIDE; | 13 virtual bool InitializeIfNeeded() OVERRIDE; |
| 14 virtual bool IsEnabled() OVERRIDE; | 14 virtual bool IsEnabled() OVERRIDE; |
| 15 virtual bool CheckSpelling(const string16& word_to_check, int tag) OVERRIDE; | 15 virtual bool CheckSpelling(const string16& word_to_check, int tag) OVERRIDE; |
| 16 virtual void FillSuggestionList(const string16& wrong_word, | 16 virtual void FillSuggestionList(const string16& wrong_word, |
| 17 std::vector<string16>* optional_suggestions) OVERRIDE; | 17 std::vector<string16>* optional_suggestions) OVERRIDE; |
| 18 virtual void OnWordAdded(const std::string& word) OVERRIDE; | 18 virtual void OnWordAdded(const std::string& word) OVERRIDE; |
| 19 virtual void OnWordRemoved(const std::string& word) OVERRIDE; |
| 19 }; | 20 }; |
| 20 | 21 |
| 21 #endif // CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ | 22 #endif // CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ |
| 22 | 23 |
| OLD | NEW |