Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BackspaceStateMachine_h | |
| 6 #define BackspaceStateMachine_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "wtf/Noncopyable.h" | |
| 10 #include <stdint.h> | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class CORE_EXPORT BackspaceStateMachine { | |
| 15 WTF_MAKE_NONCOPYABLE(BackspaceStateMachine); | |
|
yosin_UTC9
2016/03/25 10:01:05
Oops, one more, please add |STACK_ALLOCATED();|
Seigo Nonaka
2016/03/25 10:26:32
Thank you very much. I'm sorry I'm not familiar wi
| |
| 16 public: | |
| 17 BackspaceStateMachine(); | |
| 18 | |
| 19 // Returns true when the state machine has stopped. | |
| 20 bool updateState(uint16_t codeUnit); | |
| 21 | |
| 22 // Finalize the state machine and returns the code unit count to be deleted. | |
| 23 // If the state machine hasn't finished, this method finishes the state | |
| 24 // machine first. | |
| 25 int finalizeAndGetCodeUnitCountToBeDeleted(); | |
| 26 | |
| 27 // Resets the internal state to the initial state. | |
| 28 void reset(); | |
| 29 | |
| 30 private: | |
| 31 int m_CodeUnitsToBeDeleted = 0; | |
|
yosin_UTC9
2016/03/25 10:01:05
s/m_CodeUnitsToBeDeleted/m_codeUnitsToBeDeleted/
Seigo Nonaka
2016/03/25 10:26:32
Done.
| |
| 32 | |
| 33 // Used for composing supplementary code point with surrogate pairs. | |
| 34 uint16_t m_TrailSurrogate = 0; | |
|
yosin_UTC9
2016/03/25 10:01:05
s/m_TrailSurrogate/m_trailSurrogate/
Seigo Nonaka
2016/03/25 10:26:32
Done.
| |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif | |
| OLD | NEW |