OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 TextSegmentationMachineState_h | 5 #ifndef TextSegmentationMachineState_h |
6 #define TextSegmentationMachineState_h | 6 #define TextSegmentationMachineState_h |
7 | 7 |
| 8 #include <ostream> // NOLINT |
8 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
9 #include <ostream> // NOLINT | |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 enum class TextSegmentationMachineState { | 13 enum class TextSegmentationMachineState { |
14 // Indicates the state machine is in invalid state. | 14 // Indicates the state machine is in invalid state. |
15 Invalid, | 15 Invalid, |
16 // Indicates the state machine needs more code units to transit the state. | 16 // Indicates the state machine needs more code units to transit the state. |
17 NeedMoreCodeUnit, | 17 NeedMoreCodeUnit, |
18 // Indicates the state machine needs following code units to transit the | 18 // Indicates the state machine needs following code units to transit the |
19 // state. | 19 // state. |
20 NeedFollowingCodeUnit, | 20 NeedFollowingCodeUnit, |
21 // Indicates the state machine found a boundary. | 21 // Indicates the state machine found a boundary. |
22 Finished, | 22 Finished, |
23 }; | 23 }; |
24 | 24 |
25 CORE_EXPORT std::ostream& operator<<(std::ostream&, | 25 CORE_EXPORT std::ostream& operator<<(std::ostream&, |
26 TextSegmentationMachineState); | 26 TextSegmentationMachineState); |
27 | 27 |
28 } // namespace blink | 28 } // namespace blink |
29 | 29 |
30 #endif // TextSegmentationMachineState_h | 30 #endif // TextSegmentationMachineState_h |
OLD | NEW |