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

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

Issue 2117543003: [InputEvent] Fill |data| field for 'input' event InsertText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests for InputEvent.data Created 4 years, 5 months 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 b922761634ba937880c70fc21add94f556d91be4..6ee4ea67666aa7153c4bfb057d1d06037d664507 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.h
@@ -43,6 +43,8 @@ public:
return new InsertTextCommand(document, text, selectInsertedText, rebalanceType);
}
+ bool isInsertTextCommand() const override;
+
private:
InsertTextCommand(Document&, const String& text, bool selectInsertedText, RebalanceType);
@@ -62,6 +64,8 @@ private:
RebalanceType m_rebalanceType;
};
+DEFINE_TYPE_CASTS(InsertTextCommand, CompositeEditCommand, command, command->isInsertTextCommand(), command.isInsertTextCommand());
+
} // namespace blink
#endif // InsertTextCommand_h

Powered by Google App Engine
This is Rietveld 408576698