Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/StateMachineCommon.h |
| diff --git a/third_party/WebKit/Source/core/editing/StateMachineCommon.h b/third_party/WebKit/Source/core/editing/StateMachineCommon.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..012498ecd60ccf75da76932c012f4f07a9f062d0 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/editing/StateMachineCommon.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
yosin_UTC9
2016/03/30 08:52:23
"MachineState.h" is better since this file contain
Seigo Nonaka
2016/03/30 09:13:23
Sure. To meet /MachineState/TextSegmentationMachin
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef StateMachineCommon_h |
| +#define StateMachineCommon_h |
| + |
| +#include "core/CoreExport.h" |
| +#include <ostream> // NOLINT |
| + |
| +namespace blink { |
| + |
| +enum class MachineState { |
|
yosin_UTC9
2016/03/30 08:52:23
|MachineState| is generic term. We need to have sp
Seigo Nonaka
2016/03/30 09:13:23
Done.
|
| + Invalid, // Indicates the state machine is in invalid state. |
| + NeedMoreCodeUnit, // Indicates the state machine needs more code units to transit the state. |
| + NeedFollowingCodeUnit, // Indicates the state machine needs following code units to transit the state. |
| + Finished, // Indicates the state machine found a boundary. |
| +}; |
| + |
| +CORE_EXPORT std::ostream& operator << (std::ostream&, MachineState); |
|
yosin_UTC9
2016/03/30 08:52:23
No need to have spaces around |<<|
Seigo Nonaka
2016/03/30 09:13:23
Done.
|
| + |
| +} // namespace blink |
| + |
| +#endif // StateMachineCommon_h |