Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: chrome/renderer/spellchecker/cocoa_spelling_engine_mac.h

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge master Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 void Init(base::PlatformFile bdict_file, 13 virtual void Init(base::PlatformFile bdict_file,
14 const std::vector<std::string>& custom_words) OVERRIDE; 14 const std::vector<std::string>& custom_words) OVERRIDE;
15 virtual bool InitializeIfNeeded() OVERRIDE; 15 virtual bool InitializeIfNeeded() OVERRIDE;
16 virtual bool IsEnabled() OVERRIDE; 16 virtual bool IsEnabled() OVERRIDE;
17 virtual bool CheckSpelling(const string16& word_to_check, int tag) OVERRIDE; 17 virtual bool CheckSpelling(const string16& word_to_check, int tag) OVERRIDE;
18 virtual void FillSuggestionList(const string16& wrong_word, 18 virtual void FillSuggestionList(const string16& wrong_word,
19 std::vector<string16>* optional_suggestions) OVERRIDE; 19 std::vector<string16>* optional_suggestions) OVERRIDE;
20 virtual void OnWordAdded(const std::string& word) OVERRIDE; 20 virtual void OnCustomDictionaryChanged(
21 virtual void OnWordRemoved(const std::string& word) OVERRIDE; 21 const std::vector<std::string>& words_added,
22 const std::vector<std::string>& words_removed) OVERRIDE;
22 }; 23 };
23 24
24 #endif // CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_ 25 #endif // CHROME_RENDERER_SPELLCHECKER_NSSPELLCHECKER_ENGINE_H_
25 26
OLDNEW
« no previous file with comments | « chrome/common/spellcheck_messages.h ('k') | chrome/renderer/spellchecker/cocoa_spelling_engine_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698