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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditCommand.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 virtual function |textData()| to |EditCommand| 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/EditCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/EditCommand.h b/third_party/WebKit/Source/core/editing/commands/EditCommand.h
index 562137c66bfd10c1b9ca8293a63e42cf6f77da6d..5fbba3a4d4f93f8b144d4c7abb0fc8a118f4a082 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/EditCommand.h
@@ -54,6 +54,9 @@ public:
// The |EditingState*| argument must not be nullptr.
virtual void doApply(EditingState*) = 0;
+ // |TypingCommand| will return |textData()| of the last |m_commands|.
+ virtual String textData() const { return emptyString(); }
yosin_UTC9 2016/07/06 01:20:55 Please move implementation of virtual member funct
chongz 2016/07/06 23:34:32 Done.
+
DECLARE_VIRTUAL_TRACE();
protected:

Powered by Google App Engine
This is Rietveld 408576698