Index: third_party/WebKit/Source/core/events/InputEvent.cpp |
diff --git a/third_party/WebKit/Source/core/events/InputEvent.cpp b/third_party/WebKit/Source/core/events/InputEvent.cpp |
index 1819e33df93f6b136383629382b7ff89f7df51b8..2c99edae113d675266d8952b38938119d4123bb2 100644 |
--- a/third_party/WebKit/Source/core/events/InputEvent.cpp |
+++ b/third_party/WebKit/Source/core/events/InputEvent.cpp |
@@ -18,17 +18,48 @@ const struct { |
} kInputTypeStringNameMap[] = { |
{ InputEvent::InputType::None, "" }, |
{ InputEvent::InputType::InsertText, "insertText" }, |
- { InputEvent::InputType::ReplaceContent, "replaceContent" }, |
- { InputEvent::InputType::DeleteContent, "deleteContent" }, |
- { InputEvent::InputType::DeleteComposedCharacter, "deleteComposedCharacter" }, |
+ { InputEvent::InputType::InsertNonText, "insertNonText" }, |
+ { InputEvent::InputType::InsertLineBreak, "insertLineBreak" }, |
+ { InputEvent::InputType::InsertParagraph, "insertParagraph" }, |
+ { InputEvent::InputType::InsertOrderedList, "insertOrderedList" }, |
+ { InputEvent::InputType::InsertUnorderedList, "insertUnorderedList" }, |
+ { InputEvent::InputType::InsertHorizontalRule, "insertHorizontalRule" }, |
+ { InputEvent::InputType::DeleteComposedCharacterForward, "deleteComposedCharacterForward" }, |
+ { InputEvent::InputType::DeleteComposedCharacterBackward, "deleteComposedCharacterBackward" }, |
+ { InputEvent::InputType::DeleteWordBackward, "deleteWordBackward" }, |
+ { InputEvent::InputType::DeleteWordForward, "deleteWordForward" }, |
+ { InputEvent::InputType::DeleteLineBackward, "deleteLineBackward" }, |
+ { InputEvent::InputType::DeleteLineForward, "deleteLineForward" }, |
+ { InputEvent::InputType::DeleteContentBackward, "deleteContentBackward" }, |
+ { InputEvent::InputType::DeleteContentForward, "deleteContentForward" }, |
{ InputEvent::InputType::Undo, "undo" }, |
{ InputEvent::InputType::Redo, "redo" }, |
+ { InputEvent::InputType::Copy, "copy" }, |
+ { InputEvent::InputType::Cut, "cut" }, |
+ { InputEvent::InputType::Paste, "paste" }, |
{ InputEvent::InputType::Bold, "bold" }, |
{ InputEvent::InputType::Italic, "italic" }, |
{ InputEvent::InputType::Underline, "underline" }, |
{ InputEvent::InputType::StrikeThrough, "strikeThrough" }, |
{ InputEvent::InputType::Superscript, "superscript" }, |
{ InputEvent::InputType::Subscript, "subscript" }, |
+ { InputEvent::InputType::JustifyCenter, "justifyCenter" }, |
+ { InputEvent::InputType::JustifyRight, "justifyRight" }, |
+ { InputEvent::InputType::JustifyLeft, "justifyLeft" }, |
+ { InputEvent::InputType::Indent, "indent" }, |
+ { InputEvent::InputType::Outdent, "outdent" }, |
+ { InputEvent::InputType::RemoveFormat, "removeFormat" }, |
+ { InputEvent::InputType::Drag, "drag" }, |
+ { InputEvent::InputType::JustifyFull, "justifyFull" }, |
+ { InputEvent::InputType::SetColor, "setColor" }, |
+ { InputEvent::InputType::SetBackgroundColor, "setBackgroundColor" }, |
+ { InputEvent::InputType::SetFont, "setFont" }, |
+ { InputEvent::InputType::ChangeAttributes, "changeAttributes" }, |
+ { InputEvent::InputType::SetWritingDirection, "setWritingDirection" }, |
+ { InputEvent::InputType::Unscript, "unscript" }, |
+ { InputEvent::InputType::CreateLink, "createLink" }, |
+ { InputEvent::InputType::Unlink, "unlink" }, |
+ { InputEvent::InputType::FormatBlock, "formatBlock" }, |
}; |
static_assert(arraysize(kInputTypeStringNameMap) == static_cast<size_t>(InputEvent::InputType::NumberOfInputTypes), |