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

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

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
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 07d8911d1ab945a40f84a33348346145344d6421..a8d6c07401b60dff7bf8417b72364468472ac47a 100644
--- a/third_party/WebKit/Source/core/events/InputEvent.h
+++ b/third_party/WebKit/Source/core/events/InputEvent.h
@@ -29,13 +29,27 @@ public:
None,
// Insertion.
InsertText,
- ReplaceContent,
+ InsertNonText,
+ InsertLineBreak,
+ InsertParagraph,
+ InsertOrderedList,
+ InsertUnorderedList,
+ InsertHorizontalRule,
// Deletion.
- DeleteContent,
- DeleteComposedCharacter,
- // Misc.
+ DeleteComposedCharacterForward,
+ DeleteComposedCharacterBackward,
+ DeleteWordBackward,
+ DeleteWordForward,
+ DeleteLineBackward,
+ DeleteLineForward,
+ DeleteContentBackward,
+ DeleteContentForward,
+ // Command.
Undo,
Redo,
+ Copy,
+ Cut,
+ Paste,
// Styling.
Bold,
Italic,
@@ -43,6 +57,26 @@ public:
StrikeThrough,
Superscript,
Subscript,
+ // Formatting.
+ JustifyCenter,
+ JustifyRight,
+ JustifyLeft,
+ Indent,
+ Outdent,
+ RemoveFormat,
+ // Not on spec.
+ // TODO(chongz): Drag is not on SPEC but it's not decided how we should handle it.
+ Drag,
+ JustifyFull,
+ SetColor,
+ SetBackgroundColor,
+ SetFont,
+ ChangeAttributes,
+ SetWritingDirection,
+ Unscript,
+ CreateLink,
+ Unlink,
+ FormatBlock,
// Add new input types immediately above this line.
NumberOfInputTypes,

Powered by Google App Engine
This is Rietveld 408576698