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

Unified Diff: third_party/WebKit/Source/core/events/InputEvent.cpp

Issue 2151353002: [InputEvent] Replace |EditAction| with |InputType| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputevent-text-styling
Patch Set: Replaced |EditAction| with |InputType| Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/events/InputEvent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
« no previous file with comments | « third_party/WebKit/Source/core/events/InputEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698