| Index: third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.h
|
| diff --git a/third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.h b/third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c68e62cb88056f77000f308ef77672f178eea13d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef TextSegmentationMachineState_h
|
| +#define TextSegmentationMachineState_h
|
| +
|
| +#include "core/CoreExport.h"
|
| +#include <ostream> // NOLINT
|
| +
|
| +namespace blink {
|
| +
|
| +enum class TextSegmentationMachineState {
|
| + // Indicates the state machine is in invalid state.
|
| + Invalid,
|
| + // Indicates the state machine needs more code units to transit the state.
|
| + NeedMoreCodeUnit,
|
| + // Indicates the state machine needs following code units to transit the
|
| + // state.
|
| + NeedFollowingCodeUnit,
|
| + // Indicates the state machine found a boundary.
|
| + Finished,
|
| +};
|
| +
|
| +CORE_EXPORT std::ostream& operator<<(std::ostream&, TextSegmentationMachineState);
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // TextSegmentationMachineState_h
|
|
|