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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.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/editing/commands/ReplaceSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
index 5d470c937d6b377553b60568dd7021ac8b986de3..5b376ff32e5241c347ab003411d77333b9b98904 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
@@ -48,9 +48,9 @@ public:
typedef unsigned CommandOptions;
- static ReplaceSelectionCommand* create(Document& document, DocumentFragment* fragment, CommandOptions options, EditAction action = EditActionPaste)
+ static ReplaceSelectionCommand* create(Document& document, DocumentFragment* fragment, CommandOptions options, InputEvent::InputType inputType = InputEvent::InputType::Paste)
{
- return new ReplaceSelectionCommand(document, fragment, options, action);
+ return new ReplaceSelectionCommand(document, fragment, options, inputType);
}
EphemeralRange insertedRange() const;
@@ -58,10 +58,10 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- ReplaceSelectionCommand(Document&, DocumentFragment*, CommandOptions, EditAction);
+ ReplaceSelectionCommand(Document&, DocumentFragment*, CommandOptions, InputEvent::InputType);
void doApply(EditingState*) override;
- EditAction editingAction() const override;
+ InputEvent::InputType inputType() const override;
bool isReplaceSelectionCommand() const override;
class InsertedNodes {
@@ -118,7 +118,7 @@ private:
Member<DocumentFragment> m_documentFragment;
bool m_preventNesting;
bool m_movingParagraph;
- EditAction m_editAction;
+ InputEvent::InputType m_inputType;
bool m_sanitizeFragment;
bool m_shouldMergeEnd;

Powered by Google App Engine
This is Rietveld 408576698