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 CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ |
10 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ | 10 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ |
11 | 11 |
| 12 #include <stddef.h> |
| 13 |
12 #include <string> | 14 #include <string> |
13 | 15 |
14 #include "base/basictypes.h" | 16 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
16 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
17 #include "third_party/icu/source/common/unicode/uscript.h" | 19 #include "third_party/icu/source/common/unicode/uscript.h" |
18 | 20 |
19 namespace base { | 21 namespace base { |
20 namespace i18n { | 22 namespace i18n { |
21 class BreakIterator; | 23 class BreakIterator; |
22 } // namespace i18n | 24 } // namespace i18n |
23 } // namespace base | 25 } // namespace base |
24 | 26 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const SpellcheckCharAttribute* attribute_; | 191 const SpellcheckCharAttribute* attribute_; |
190 | 192 |
191 // The break iterator. | 193 // The break iterator. |
192 scoped_ptr<base::i18n::BreakIterator> iterator_; | 194 scoped_ptr<base::i18n::BreakIterator> iterator_; |
193 | 195 |
194 DISALLOW_COPY_AND_ASSIGN(SpellcheckWordIterator); | 196 DISALLOW_COPY_AND_ASSIGN(SpellcheckWordIterator); |
195 }; | 197 }; |
196 | 198 |
197 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ | 199 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_WORDITERATOR_H_ |
198 | 200 |
OLD | NEW |