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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/InsertIncrementalTextCommand.h

Issue 2782823002: Make InsertIncrementalTextCommand to handle surrogate pair (Closed)
Patch Set: 2017-03-29T16:13:30 Created 3 years, 8 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef InsertIncrementalTextCommand_h 5 #ifndef InsertIncrementalTextCommand_h
6 #define InsertIncrementalTextCommand_h 6 #define InsertIncrementalTextCommand_h
7 7
8 #include "core/editing/commands/InsertTextCommand.h" 8 #include "core/editing/commands/InsertTextCommand.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class InsertIncrementalTextCommand final : public InsertTextCommand { 12 class CORE_EXPORT InsertIncrementalTextCommand final
13 : public InsertTextCommand {
13 public: 14 public:
14 static InsertIncrementalTextCommand* create( 15 static InsertIncrementalTextCommand* create(
15 Document&, 16 Document&,
16 const String&, 17 const String&,
17 bool selectInsertedText = false, 18 bool selectInsertedText = false,
18 RebalanceType = RebalanceLeadingAndTrailingWhitespaces); 19 RebalanceType = RebalanceLeadingAndTrailingWhitespaces);
19 20
20 private: 21 private:
21 InsertIncrementalTextCommand(Document&, 22 InsertIncrementalTextCommand(Document&,
22 const String& text, 23 const String& text,
23 bool selectInsertedText, 24 bool selectInsertedText,
24 RebalanceType); 25 RebalanceType);
25 void doApply(EditingState*) override; 26 void doApply(EditingState*) override;
26 }; 27 };
27 28
28 } // namespace blink 29 } // namespace blink
29 30
30 #endif // InsertIncrementalTextCommand_h 31 #endif // InsertIncrementalTextCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698