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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.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
Index: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
index 1034596615e1f722207656ac81c84221c37fd687..2e0aca9d78b4911a1631688df234ce0b9aad6daf 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -929,12 +929,12 @@ void DeleteSelectionCommand::doApply(EditingState* editingState)
clearTransientState();
}
-EditAction DeleteSelectionCommand::editingAction() const
+InputEvent::InputType DeleteSelectionCommand::inputType() const
{
// Note that DeleteSelectionCommand is also used when the user presses the Delete key,
- // but in that case there's a TypingCommand that supplies the editingAction(), so
+ // but in that case there's a TypingCommand that supplies the inputType(), so
// the Undo menu correctly shows "Undo Typing"
- return EditActionCut;
+ return InputEvent::InputType::Cut;
}
// Normally deletion doesn't preserve the typing style that was present before it. For example,

Powered by Google App Engine
This is Rietveld 408576698