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

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

Issue 2074423004: [InputEvent] Dispatch 'input' event for ContentEditable and typing on Input element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tkent's review Created 4 years, 6 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 675a3045dedeb2cedd5eeb08262c4def943713c4..7eb723f149dfcef20662bb7d21ca21d9e97a25e3 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.h
@@ -77,6 +77,9 @@ public:
void deleteSelection(bool smartDelete, EditingState*);
void setCompositionType(TextCompositionType type) { m_compositionType = type; }
+ ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; }
+ TextCompositionType compositionType() const { return m_compositionType; }
+
private:
static TypingCommand* create(Document& document, ETypingCommand command, const String& text = "", Options options = 0, TextGranularity granularity = CharacterGranularity)
{
@@ -112,7 +115,6 @@ private:
bool makeEditableRootEmpty(EditingState*);
void updateCommandTypeOfOpenCommand(ETypingCommand typingCommand) { m_commandType = typingCommand; }
- ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; }
ETypingCommand m_commandType;
String m_textToInsert;
@@ -133,6 +135,8 @@ private:
bool m_shouldPreventSpellChecking;
};
+DEFINE_TYPE_CASTS(TypingCommand, CompositeEditCommand, command, command->isTypingCommand(), command.isTypingCommand());
+
} // namespace blink
#endif // TypingCommand_h

Powered by Google App Engine
This is Rietveld 408576698