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

Issue 2583993002: [Editing] Introduce |CompositeEditCommand::willApplyEditing()| in prepare for 'beforeinput' (1/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 |CompositeEditCommand::willApplyEditing()| in prepare for 'beforeinput' (1/3) This is the first sub-patch (1/3) of unifying 'beforeinput' logic. (Original CL https://crrev.com/2558643003) This CL: 1. Added attribute |m_inputType| to |TypingCommand| 2. Added calling path |CompositeEditCommand::apply()| => *|CompositeEditCommand::willApply()| => *|CompositeEditCommand::willApplyEditing()| 3. Added calling path |static TypingCommand::deleteSelection()/insertText()/...| => *|TypingCommand::willAddTypingToOpenCommand()| => *|CompositeEditCommand::willApplyEditing()| * Marks new methods. The next step is to move 'beforeinput' logic to |CompositeEditCommand::willApplyEditing()|. 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/4d0f52c1162dae46a7902527775f2a95fc972423 Cr-Commit-Position: refs/heads/master@{#439633}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add TODO, remove |willApply()| #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -33 lines) Patch
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 3 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.h View 3 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 11 chunks +67 lines, -29 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (24 generated)
chongz
xiaochengh@ PTAL, thanks!
4 years ago (2016-12-19 00:40:04 UTC) #15
Xiaocheng
lgtm +tkent
4 years ago (2016-12-19 03:30:33 UTC) #17
Xiaocheng
https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h (right): https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h#newcode127 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h:127: bool willApplyEditing(EditCommandSource); Please add a TODO: implementation note here ...
4 years ago (2016-12-19 03:33:58 UTC) #18
tkent
https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode256 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:256: return willApplyEditing(source); What's the difference between willApply() and willApplyEditing()?
4 years ago (2016-12-19 03:43:24 UTC) #19
chongz
https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode256 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:256: return willApplyEditing(source); On 2016/12/19 03:43:24, tkent wrote: > What's ...
4 years ago (2016-12-19 06:48:57 UTC) #20
tkent
https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode256 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:256: return willApplyEditing(source); On 2016/12/19 at 06:48:57, chongz wrote: > ...
4 years ago (2016-12-19 08:22:18 UTC) #21
chongz
tkent@ I've added TODO and removed |willApply()|, PTAL again, thanks! https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2583993002/diff/20001/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode256 ...
4 years ago (2016-12-19 20:55:22 UTC) #24
tkent
lgtm
4 years ago (2016-12-20 00:00:03 UTC) #27
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/2583993002/40001
4 years ago (2016-12-20 00:20:10 UTC) #30
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years ago (2016-12-20 00:27:15 UTC) #33
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/4d0f52c1162dae46a7902527775f2a95fc972423 Cr-Commit-Position: refs/heads/master@{#439633}
4 years ago (2016-12-20 00:30:39 UTC) #35
chongz
3 years, 11 months ago (2017-01-13 20:58:51 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in
https://codereview.chromium.org/2634633002/ 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