OLD | NEW |
(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 |
OLD | NEW |