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

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: Dispatch scoped 'input' event 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..5a3ffe49dc5a14613e3517bcebb425dc5963ff15 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;

Powered by Google App Engine
This is Rietveld 408576698