OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Defines an iterator class that enumerates words supported by our spellchecker | 5 // Defines an iterator class that enumerates words supported by our spellchecker |
6 // from multi-language text. This class is used for filtering out characters | 6 // from multi-language text. This class is used for filtering out characters |
7 // not supported by our spellchecker. | 7 // not supported by our spellchecker. |
8 | 8 |
9 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ | 9 #ifndef COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_WORDITERATOR_H_ |
10 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ | 10 #define COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_WORDITERATOR_H_ |
11 | 11 |
12 #include <stddef.h> | 12 #include <stddef.h> |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "third_party/icu/source/common/unicode/uscript.h" | 19 #include "third_party/icu/source/common/unicode/uscript.h" |
20 | 20 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // The language-specific attributes used for filtering out non-word | 189 // The language-specific attributes used for filtering out non-word |
190 // characters. | 190 // characters. |
191 const SpellcheckCharAttribute* attribute_; | 191 const SpellcheckCharAttribute* attribute_; |
192 | 192 |
193 // The break iterator. | 193 // The break iterator. |
194 std::unique_ptr<base::i18n::BreakIterator> iterator_; | 194 std::unique_ptr<base::i18n::BreakIterator> iterator_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(SpellcheckWordIterator); | 196 DISALLOW_COPY_AND_ASSIGN(SpellcheckWordIterator); |
197 }; | 197 }; |
198 | 198 |
199 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ | 199 #endif // COMPONENTS_SPELLCHECK_RENDERER_SPELLCHECK_WORDITERATOR_H_ |
200 | 200 |
OLD | NEW |