| 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 2289ba003dbe6ab03853a66d221e545f53d649ea..82f56e8e5440553d8d002c231bf62dc8a8cc1345 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
|
| @@ -42,6 +42,8 @@ class HTMLElement;
|
| class HTMLSpanElement;
|
| class Text;
|
|
|
| +enum class CommandSource { MenuOrKeyBinding, Dom };
|
| +
|
| class EditCommandComposition final : public UndoStep {
|
| public:
|
| static EditCommandComposition* create(Document*,
|
| @@ -114,7 +116,7 @@ class CORE_EXPORT CompositeEditCommand : public EditCommand {
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| protected:
|
| - explicit CompositeEditCommand(Document&);
|
| + CompositeEditCommand(Document&, CommandSource);
|
|
|
| //
|
| // sugary-sweet convenience functions to help create and apply edit commands
|
| @@ -260,12 +262,15 @@ class CORE_EXPORT CompositeEditCommand : public EditCommand {
|
|
|
| Node* splitTreeToNode(Node*, Node*, bool splitAncestor = false);
|
|
|
| + CommandSource commandSource() const;
|
| +
|
| HeapVector<Member<EditCommand>> m_commands;
|
|
|
| private:
|
| bool isCompositeEditCommand() const final { return true; }
|
|
|
| Member<EditCommandComposition> m_composition;
|
| + CommandSource m_source;
|
| };
|
|
|
| DEFINE_TYPE_CASTS(CompositeEditCommand,
|
|
|