| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 RunSegmenter_h | 5 #ifndef RunSegmenter_h |
| 6 #define RunSegmenter_h | 6 #define RunSegmenter_h |
| 7 | 7 |
| 8 #include <unicode/uscript.h> |
| 9 #include <memory> |
| 8 #include "platform/fonts/FontOrientation.h" | 10 #include "platform/fonts/FontOrientation.h" |
| 9 #include "platform/fonts/FontTraits.h" | 11 #include "platform/fonts/FontTraits.h" |
| 10 #include "platform/fonts/OrientationIterator.h" | 12 #include "platform/fonts/OrientationIterator.h" |
| 11 #include "platform/fonts/ScriptRunIterator.h" | 13 #include "platform/fonts/ScriptRunIterator.h" |
| 12 #include "platform/fonts/SmallCapsIterator.h" | 14 #include "platform/fonts/SmallCapsIterator.h" |
| 13 #include "platform/fonts/SymbolsIterator.h" | 15 #include "platform/fonts/SymbolsIterator.h" |
| 14 #include "platform/fonts/UTF16TextIterator.h" | 16 #include "platform/fonts/UTF16TextIterator.h" |
| 15 #include "wtf/Allocator.h" | 17 #include "platform/wtf/Allocator.h" |
| 16 #include "wtf/Noncopyable.h" | 18 #include "platform/wtf/Noncopyable.h" |
| 17 #include <memory> | |
| 18 #include <unicode/uscript.h> | |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 // A tool for segmenting runs prior to shaping, combining ScriptIterator, | 22 // A tool for segmenting runs prior to shaping, combining ScriptIterator, |
| 23 // OrientationIterator and SmallCapsIterator, depending on orientaton and | 23 // OrientationIterator and SmallCapsIterator, depending on orientaton and |
| 24 // font-variant of the text run. | 24 // font-variant of the text run. |
| 25 class PLATFORM_EXPORT RunSegmenter { | 25 class PLATFORM_EXPORT RunSegmenter { |
| 26 STACK_ALLOCATED(); | 26 STACK_ALLOCATED(); |
| 27 WTF_MAKE_NONCOPYABLE(RunSegmenter); | 27 WTF_MAKE_NONCOPYABLE(RunSegmenter); |
| 28 | 28 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 59 unsigned m_lastSplit; | 59 unsigned m_lastSplit; |
| 60 unsigned m_scriptRunIteratorPosition; | 60 unsigned m_scriptRunIteratorPosition; |
| 61 unsigned m_orientationIteratorPosition; | 61 unsigned m_orientationIteratorPosition; |
| 62 unsigned m_symbolsIteratorPosition; | 62 unsigned m_symbolsIteratorPosition; |
| 63 bool m_atEnd; | 63 bool m_atEnd; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| 67 | 67 |
| 68 #endif | 68 #endif |
| OLD | NEW |