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

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

Issue 11362063: Editing the custom spelling dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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_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
11 #include "base/string16.h" 11 #include "base/string16.h"
12 12
13 // Creates the platform's "native" spelling engine. 13 // Creates the platform's "native" spelling engine.
14 class SpellingEngine* CreateNativeSpellingEngine(); 14 class SpellingEngine* CreateNativeSpellingEngine();
15 15
16 // Interface to different spelling engines. 16 // Interface to different spelling engines.
17 class SpellingEngine { 17 class SpellingEngine {
18 public: 18 public:
19 virtual ~SpellingEngine() {} 19 virtual ~SpellingEngine() {}
20 20
21 virtual bool InitializeIfNeeded() = 0; 21 virtual bool InitializeIfNeeded() = 0;
22 virtual bool IsEnabled() = 0; 22 virtual bool IsEnabled() = 0;
23 virtual bool CheckSpelling(const string16& word_to_check, int tag) = 0; 23 virtual bool CheckSpelling(const string16& word_to_check, int tag) = 0;
24 virtual void FillSuggestionList(const string16& wrong_word, 24 virtual void FillSuggestionList(const string16& wrong_word,
25 std::vector<string16>* optional_suggestions) = 0; 25 std::vector<string16>* optional_suggestions) = 0;
26 virtual void OnWordAdded(const std::string& word) = 0; 26 virtual void OnWordAdded(const std::string& word) = 0;
27 virtual void OnWordRemoved(const std::string& word) = 0;
27 }; 28 };
28 29
29 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_ 30 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLING_ENGINE_H_
30 31
OLDNEW
« chrome/renderer/spellchecker/spellcheck.cc ('K') | « chrome/renderer/spellchecker/spellcheck.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698