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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.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/CompositeEditCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
index cbff47f223602740bd177fa335e392564e15499f..e96d8a2bae37f8c20ebbba8669688b5aab041509 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
@@ -44,12 +44,12 @@ class Text;
class EditCommandComposition final : public UndoStep {
public:
- static EditCommandComposition* create(Document*, const VisibleSelection&, const VisibleSelection&, EditAction);
+ static EditCommandComposition* create(Document*, const VisibleSelection&, const VisibleSelection&, InputEvent::InputType);
bool belongsTo(const LocalFrame&) const override;
void unapply() override;
void reapply() override;
- EditAction editingAction() const override { return m_editAction; }
+ InputEvent::InputType inputType() const override;
void append(SimpleEditCommand*);
const VisibleSelection& startingSelection() const { return m_startingSelection; }
@@ -62,7 +62,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction);
+ EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, InputEvent::InputType);
Member<Document> m_document;
VisibleSelection m_startingSelection;
@@ -70,7 +70,7 @@ private:
HeapVector<Member<SimpleEditCommand>> m_commands;
Member<Element> m_startingRootEditableElement;
Member<Element> m_endingRootEditableElement;
- EditAction m_editAction;
+ InputEvent::InputType m_inputType;
};
class CORE_EXPORT CompositeEditCommand : public EditCommand {

Powered by Google App Engine
This is Rietveld 408576698