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

Issue 2581073003: [Editing] Introduce |EditCommandComposition::willUn/Reapply()| in prepare for 'beforeinput' (2/3) (Closed)

Created:
4 years ago by chongz
Modified:
4 years ago
Reviewers:
tkent, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Editing] Introduce |EditCommandComposition::willUn/Reapply()| in prepare for 'beforeinput' (2/3) This is the second sub-patch (2/3) of unifying 'beforeinput' logic. (Original CL https://crrev.com/2558643003) This CL: 1. Updated calling path |Editor::undo()| => |UndoStack::undo()| => |EditCommandComposition::unapply()| => *|EditCommandComposition::willUnapply()|. 2. Similar for redo. * Marks new methods. The next step is to fire 'beforeinput' in |EditCommandComposition::willUn/Reapply()|. This CL shouldn't have any behavior change. To help reviewing, here is a simple doc describing the following plans: https://docs.google.com/a/chromium.org/document/d/1M9bQaLKdRpR1qJ9i7zZKN-hKwd4ZkgJs5GPde2ZsDy0/edit?usp=sharing BUG=670035 Committed: https://crrev.com/c6596482a643b73b8cfe7b615639e6fea449e08b Cr-Commit-Position: refs/heads/master@{#439640}

Patch Set 1 #

Total comments: 2

Patch Set 2 : xiaocheng's review: Add TODO for implementation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -18 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h View 1 2 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 3 chunks +18 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/UndoStack.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/UndoStack.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/UndoStep.h View 2 chunks +3 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 26 (18 generated)
chongz
xiaochengh@ PTAL at this CL as well, thanks!
4 years ago (2016-12-19 00:40:33 UTC) #9
Xiaocheng
lgtm +tkent https://codereview.chromium.org/2581073003/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h (right): https://codereview.chromium.org/2581073003/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h#newcode82 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h:82: // Fires "beforeinput". Returns |false| to cancel ...
4 years ago (2016-12-19 03:43:00 UTC) #11
tkent
lgtm
4 years ago (2016-12-19 03:45:03 UTC) #12
chongz
https://codereview.chromium.org/2581073003/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h (right): https://codereview.chromium.org/2581073003/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h#newcode82 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h:82: // Fires "beforeinput". Returns |false| to cancel unapply / ...
4 years ago (2016-12-19 20:56:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2581073003/20001
4 years ago (2016-12-20 00:38:58 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-20 00:46:02 UTC) #23
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c6596482a643b73b8cfe7b615639e6fea449e08b Cr-Commit-Position: refs/heads/master@{#439640}
4 years ago (2016-12-20 00:50:05 UTC) #25
chongz
3 years, 11 months ago (2017-01-13 18:33:55 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2631743002/ by chongz@chromium.org.

The reason for reverting is: We want to revert all CLs and start over the
refactor process, see:
https://crbug.com/673789..

Powered by Google App Engine
This is Rietveld 408576698