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

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

Issue 2691433002: Make Blink support multiline text insertion (Closed)
Patch Set: Created 3 years, 10 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/TypingCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.h b/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
index 437980a51dff5c2ea4705dba5428aa8813a8091e..d17c8dc2e2c4ad3d78f90828a07c986d8a02d5d4 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
@@ -95,10 +95,8 @@ class CORE_EXPORT TypingCommand final : public CompositeEditCommand {
void setCompositionType(TextCompositionType type) {
m_compositionType = type;
}
- static void adjustSelectionAfterIncrementalInsertion(TypingCommand*,
- LocalFrame*,
- const size_t start,
- const size_t end);
+ void adjustSelectionAfterIncrementalInsertion(LocalFrame*,
+ const size_t textLength);
ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; }
TextCompositionType compositionType() const { return m_compositionType; }
@@ -183,6 +181,7 @@ class CORE_EXPORT TypingCommand final : public CompositeEditCommand {
bool m_shouldPreventSpellChecking;
bool m_isIncrementalInsertion;
+ size_t m_selectionStart;
};
DEFINE_TYPE_CASTS(TypingCommand,

Powered by Google App Engine
This is Rietveld 408576698