Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: third_party/WebKit/Source/core/editing/state_machines/ForwardGraphemeBoundaryStateMachine.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "core/editing/state_machines/ForwardGraphemeBoundaryStateMachine.h" 5 #include "core/editing/state_machines/ForwardGraphemeBoundaryStateMachine.h"
6 6
7 #include <ostream> // NOLINT
7 #include "core/editing/state_machines/StateMachineUtil.h" 8 #include "core/editing/state_machines/StateMachineUtil.h"
8 #include "core/editing/state_machines/TextSegmentationMachineState.h" 9 #include "core/editing/state_machines/TextSegmentationMachineState.h"
9 #include "platform/text/Character.h" 10 #include "platform/text/Character.h"
10 #include "wtf/text/Unicode.h" 11 #include "wtf/text/Unicode.h"
11 #include <ostream> // NOLINT
12 12
13 namespace blink { 13 namespace blink {
14 namespace { 14 namespace {
15 const UChar32 kInvalidCodePoint = WTF::Unicode::kMaxCodepoint + 1; 15 const UChar32 kInvalidCodePoint = WTF::Unicode::kMaxCodepoint + 1;
16 } // namespace 16 } // namespace
17 17
18 #define FOR_EACH_FORWARD_GRAPHEME_BOUNDARY_STATE(V) \ 18 #define FOR_EACH_FORWARD_GRAPHEME_BOUNDARY_STATE(V) \
19 /* Counting preceding regional indicators. This is initial state. */ \ 19 /* Counting preceding regional indicators. This is initial state. */ \
20 V(CountRIS) \ 20 V(CountRIS) \
21 /* Waiting lead surrogate during counting regional indicators. */ \ 21 /* Waiting lead surrogate during counting regional indicators. */ \
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 return; 248 return;
249 case InternalState::Search: // Fallthrough 249 case InternalState::Search: // Fallthrough
250 case InternalState::SearchWaitTrailSurrogate: // Fallthrough 250 case InternalState::SearchWaitTrailSurrogate: // Fallthrough
251 return; 251 return;
252 case InternalState::Finished: // Fallthrough 252 case InternalState::Finished: // Fallthrough
253 NOTREACHED() << "Do not call finishWithEndOfText() once it finishes."; 253 NOTREACHED() << "Do not call finishWithEndOfText() once it finishes.";
254 } 254 }
255 NOTREACHED() << "Unhandled state: " << m_internalState; 255 NOTREACHED() << "Unhandled state: " << m_internalState;
256 } 256 }
257 } // namespace blink 257 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698