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_CUSTOM_DICTIONARY_ENGINE_H_ | 5 #ifndef COMPONENTS_SPELLCHECK_RENDERER_CUSTOM_DICTIONARY_ENGINE_H_ |
6 #define CHROME_RENDERER_SPELLCHECKER_CUSTOM_DICTIONARY_ENGINE_H_ | 6 #define COMPONENTS_SPELLCHECK_RENDERER_CUSTOM_DICTIONARY_ENGINE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 | 13 |
14 // Custom spellcheck dictionary. Words in this dictionary are always correctly | 14 // Custom spellcheck dictionary. Words in this dictionary are always correctly |
15 // spelled. Words that are not in this dictionary may or may not be correctly | 15 // spelled. Words that are not in this dictionary may or may not be correctly |
16 // spelled. | 16 // spelled. |
(...skipping 16 matching lines...) Expand all Loading... |
33 void OnCustomDictionaryChanged(const std::set<std::string>& words_added, | 33 void OnCustomDictionaryChanged(const std::set<std::string>& words_added, |
34 const std::set<std::string>& words_removed); | 34 const std::set<std::string>& words_removed); |
35 | 35 |
36 private: | 36 private: |
37 // Correctly spelled words. | 37 // Correctly spelled words. |
38 std::set<base::string16> dictionary_; | 38 std::set<base::string16> dictionary_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(CustomDictionaryEngine); | 40 DISALLOW_COPY_AND_ASSIGN(CustomDictionaryEngine); |
41 }; | 41 }; |
42 | 42 |
43 #endif // CHROME_RENDERER_SPELLCHECKER_CUSTOM_DICTIONARY_ENGINE_H_ | 43 #endif // COMPONENTS_SPELLCHECK_RENDERER_CUSTOM_DICTIONARY_ENGINE_H_ |
OLD | NEW |