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 f2d7317eeca7d2291063530eaefa637e55976300..54ca077d5db6597c4bd1d754a03742399a707923 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h |
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h |
@@ -118,6 +118,15 @@ class CORE_EXPORT CompositeEditCommand : public EditCommand { |
protected: |
explicit CompositeEditCommand(Document&); |
+ // TODO(chongz): Implement "beforeinput" as described below: |
+ // Fires "beforeinput" and will return |false| to cancel applying editing if |
+ // * "beforeinput" was canceled, or |
+ // * |frame| was destroyed by event handlers. |
+ // |willApplyEditing()| should be called from |
+ // * |CompositeEditCommand::apply()|, and |
+ // * |TypingCommand::willAddTypingToOpenCommand()|. |
+ bool willApplyEditing(EditCommandSource); |
+ |
// |
// sugary-sweet convenience functions to help create and apply edit commands |
// in composite commands |