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

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

Issue 2469483002: [InputEvent] Add prefixes 'history*' and 'format*' to |inputType| (Closed)
Patch Set: CL format Created 4 years, 1 month 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 56c32b82612ce3892043d2e90963c9bc21c8c07a..83581081d15708d2fb1af366201ee6dd841dc5c3 100644
--- a/third_party/WebKit/Source/core/events/InputEvent.cpp
+++ b/third_party/WebKit/Source/core/events/InputEvent.cpp
@@ -18,7 +18,6 @@ const struct {
} kInputTypeStringNameMap[] = {
{InputEvent::InputType::None, ""},
{InputEvent::InputType::InsertText, "insertText"},
- {InputEvent::InputType::InsertNonText, "insertNonText"},
{InputEvent::InputType::InsertLineBreak, "insertLineBreak"},
{InputEvent::InputType::InsertParagraph, "insertParagraph"},
{InputEvent::InputType::InsertOrderedList, "insertOrderedList"},
@@ -38,30 +37,23 @@ const struct {
{InputEvent::InputType::DeleteContentForward, "deleteContentForward"},
{InputEvent::InputType::DeleteByCut, "deleteByCut"},
{InputEvent::InputType::DeleteByDrag, "deleteByDrag"},
- {InputEvent::InputType::Undo, "undo"},
- {InputEvent::InputType::Redo, "redo"},
- {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::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"},
+ {InputEvent::InputType::HistoryUndo, "historyUndo"},
+ {InputEvent::InputType::HistoryRedo, "historyRedo"},
+ {InputEvent::InputType::FormatBold, "formatBold"},
+ {InputEvent::InputType::FormatItalic, "formatItalic"},
+ {InputEvent::InputType::FormatUnderline, "formatUnderline"},
+ {InputEvent::InputType::FormatStrikeThrough, "formatStrikeThrough"},
+ {InputEvent::InputType::FormatSuperscript, "formatSuperscript"},
+ {InputEvent::InputType::FormatSubscript, "formatSubscript"},
+ {InputEvent::InputType::FormatJustifyCenter, "formatJustifyCenter"},
+ {InputEvent::InputType::FormatJustifyFull, "formatJustifyFull"},
+ {InputEvent::InputType::FormatJustifyRight, "formatJustifyRight"},
+ {InputEvent::InputType::FormatJustifyLeft, "formatJustifyLeft"},
+ {InputEvent::InputType::FormatIndent, "formatIndent"},
+ {InputEvent::InputType::FormatOutdent, "formatOutdent"},
+ {InputEvent::InputType::FormatRemove, "formatRemove"},
+ {InputEvent::InputType::FormatSetBlockTextDirection,
+ "formatSetBlockTextDirection"},
};
static_assert(
« 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