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

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

Issue 2141133003: [InputEvent] Fire 'beforeinput'/'input' for 6 text styling actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 3bdc1632dc0fd213384d6868bc89500e5163c62f..1819e33df93f6b136383629382b7ff89f7df51b8 100644
--- a/third_party/WebKit/Source/core/events/InputEvent.cpp
+++ b/third_party/WebKit/Source/core/events/InputEvent.cpp
@@ -23,6 +23,12 @@ const struct {
{ InputEvent::InputType::DeleteComposedCharacter, "deleteComposedCharacter" },
{ 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" },
};
static_assert(arraysize(kInputTypeStringNameMap) == static_cast<size_t>(InputEvent::InputType::NumberOfInputTypes),

Powered by Google App Engine
This is Rietveld 408576698