Index: third_party/WebKit/Source/core/editing/commands/InsertIncrementalTextCommand.h |
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertIncrementalTextCommand.h b/third_party/WebKit/Source/core/editing/commands/InsertIncrementalTextCommand.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5048d1560abcafe1858ac8f6a7a81f12625cee91 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/editing/commands/InsertIncrementalTextCommand.h |
@@ -0,0 +1,39 @@ |
+// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef InsertIncrementalTextCommand_h |
+#define InsertIncrementalTextCommand_h |
+ |
+#include "core/editing/commands/InsertTextCommand.h" |
+ |
+namespace blink { |
+ |
+class InsertIncrementalTextCommand final : public InsertTextCommand { |
+ public: |
+ static InsertIncrementalTextCommand* create( |
+ Document& document, |
+ const String& text, |
+ bool selectInsertedText = false, |
+ RebalanceType rebalanceType = RebalanceLeadingAndTrailingWhitespaces) { |
+ return new InsertIncrementalTextCommand(document, text, selectInsertedText, |
yosin_UTC9
2016/12/07 05:23:34
Let's move to .cpp file:
https://www.chromium.org/
yabinh
2016/12/08 07:54:58
Done.
|
+ rebalanceType); |
+ } |
+ |
+ private: |
+ InsertIncrementalTextCommand(Document&, |
+ const String& text, |
+ bool selectInsertedText, |
+ RebalanceType); |
+ const VisibleSelection computeSelectionForInsertion( |
+ const size_t selectionStart, |
yosin_UTC9
2016/12/07 05:23:34
Let's use |int| since other functions use |int|.
yabinh
2016/12/08 07:54:58
This function has been removed.
|
+ const size_t selectionEnd, |
+ const size_t commonPrefixLength, |
+ const size_t commonSuffixLength); |
+ void setSelection(const size_t start, const size_t end, LocalFrame*); |
+ void doApply(EditingState*) override; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // InsertIncrementalTextCommand_h |