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

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 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/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..7b4aafc931daeda893a136dfcdf8b00e4432f23b 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);
}
+ String textData() const override { return m_text; };
yosin_UTC9 2016/07/06 01:20:55 nit: s/override/final/ Please move implementation
chongz 2016/07/06 23:34:32 Done.
+
private:
InsertTextCommand(Document&, const String& text, bool selectInsertedText, RebalanceType);

Powered by Google App Engine
This is Rietveld 408576698