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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h
index dccb65a08217ab76ab5f8a6ba172859ddcb9afdd..286dd668d30660478f62b7d5565f4e7ea51fca01 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h
@@ -39,10 +39,11 @@ class InsertTextCommand final : public CompositeEditCommand {
static InsertTextCommand* create(
Document& document,
+ CommandSource source,
const String& text,
bool selectInsertedText = false,
RebalanceType rebalanceType = RebalanceLeadingAndTrailingWhitespaces) {
- return new InsertTextCommand(document, text, selectInsertedText,
+ return new InsertTextCommand(document, source, text, selectInsertedText,
rebalanceType);
}
@@ -50,6 +51,7 @@ class InsertTextCommand final : public CompositeEditCommand {
private:
InsertTextCommand(Document&,
+ CommandSource,
const String& text,
bool selectInsertedText,
RebalanceType);

Powered by Google App Engine
This is Rietveld 408576698