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

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

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.h
diff --git a/third_party/WebKit/Source/core/events/InputEvent.h b/third_party/WebKit/Source/core/events/InputEvent.h
index 6ed564ee4facb5e8d7be9a66d0d70de1467edfd2..07d8911d1ab945a40f84a33348346145344d6421 100644
--- a/third_party/WebKit/Source/core/events/InputEvent.h
+++ b/third_party/WebKit/Source/core/events/InputEvent.h
@@ -27,12 +27,22 @@ public:
enum class InputType {
None,
+ // Insertion.
InsertText,
ReplaceContent,
+ // Deletion.
DeleteContent,
DeleteComposedCharacter,
+ // Misc.
Undo,
Redo,
+ // Styling.
+ Bold,
+ Italic,
+ Underline,
+ StrikeThrough,
+ Superscript,
+ Subscript,
// Add new input types immediately above this line.
NumberOfInputTypes,

Powered by Google App Engine
This is Rietveld 408576698