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 |