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

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

Issue 2530843003: Introduce InsertIncrementalTextCommand to respect existing style for composition (Closed)
Patch Set: Address xiaochengh@'s review Created 4 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef InsertIncrementalTextCommand_h
6 #define InsertIncrementalTextCommand_h
7
8 #include "core/editing/commands/InsertTextCommand.h"
9
10 namespace blink {
11
12 class InsertIncrementalTextCommand final : public InsertTextCommand {
13 public:
14 static InsertIncrementalTextCommand* create(
15 Document&,
16 const String&,
17 bool selectInsertedText = false,
18 RebalanceType = RebalanceLeadingAndTrailingWhitespaces);
19
20 private:
21 InsertIncrementalTextCommand(Document&,
22 const String& text,
23 bool selectInsertedText,
24 RebalanceType);
25 void doApply(EditingState*) override;
26 };
27
28 } // namespace blink
29
30 #endif // InsertIncrementalTextCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698