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

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h

Issue 2631743002: Revert of [Editing] Introduce |EditCommandComposition::willUn/Reapply()| in prepare for (2/3) (Closed)
Patch Set: Created 3 years, 11 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 39ffedf1bb80c08f6a62ab4ebd3e10edd2c36d17..54ca077d5db6597c4bd1d754a03742399a707923 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
@@ -52,8 +52,8 @@
InputEvent::InputType);
bool belongsTo(const LocalFrame&) const override;
- void unapply(EditCommandSource) override;
- void reapply(EditCommandSource) override;
+ void unapply() override;
+ void reapply() override;
InputEvent::InputType inputType() const override;
void append(SimpleEditCommand*);
void append(EditCommandComposition*);
@@ -78,14 +78,6 @@
const VisibleSelection& startingSelection,
const VisibleSelection& endingSelection,
InputEvent::InputType);
-
- // TODO(chongz): Implement "beforeinput" as described below:
- // Fires "beforeinput" and will returns |false| to cancel unapply / reapply if
- // * "beforeinput" was canceled, or
- // * |frame| was destroyed by event handlers.
- // Note: Undo stack will always get popped.
- bool willUnapply(EditCommandSource);
- bool willReapply(EditCommandSource);
Member<Document> m_document;
VisibleSelection m_startingSelection;

Powered by Google App Engine
This is Rietveld 408576698