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 <stdint.h> | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class BackspaceStateMachine { | |
|
yosin_UTC9
2016/03/25 04:37:23
Could you write unit test for |BackspaceStateMachi
Seigo Nonaka
2016/03/25 06:59:06
Done.
| |
| 13 public: | |
|
yosin_UTC9
2016/03/25 04:37:23
Please insert a following line before |public:|
Seigo Nonaka
2016/03/25 06:59:06
Done.
| |
| 14 BackspaceStateMachine(); | |
| 15 | |
| 16 // Returns true when the state machine has stopped. | |
| 17 bool ComputeNextState(uint16_t codeUnit); | |
|
yosin_UTC9
2016/03/25 04:37:23
Could you use |camelCase| for member function?
We'
Seigo Nonaka
2016/03/25 06:59:06
Done.
| |
| 18 | |
| 19 // Finalize the state machine and returns the code unit count to be deleted. | |
| 20 // If the state machine hasn't finished, this method finishes the state | |
| 21 // machine first. | |
| 22 int FinalizeAndGetCodeUnitCountToBeDeleted(); | |
| 23 | |
| 24 private: | |
| 25 int mCodeUnitsToBeDeleted; | |
|
yosin_UTC9
2016/03/25 04:37:23
Blink uses |m_camelCase| for member variable.
Let
Seigo Nonaka
2016/03/25 06:59:06
Done.
| |
| 26 | |
| 27 // Used for composing supplementary code point with surrogate pairs. | |
| 28 uint16_t mTrailSurrogate; | |
|
yosin_UTC9
2016/03/25 04:37:23
s/;/=0/
Seigo Nonaka
2016/03/25 06:59:06
Done.
| |
| 29 }; | |
| 30 | |
| 31 } // namespace blink | |
| 32 | |
| 33 #endif | |
| OLD | NEW |