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