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

Issue 2579253002: [EditCommandSource] Pass source to |CompositEditCommand| and |TypingCommand| (3/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

[EditCommandSource] Pass source to |CompositEditCommand| and |TypingCommand| (3/3) This is the last sub-patch (3/3) of supporting |EditCommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). Instead of adding |EditCommandSource| to constructor, this CL: 1. Pass source to |CompositeEditCommand::apply(EditCommandSource)| 2. Pass source to various static methods of |TypingCommand| We don't have to store command source as attribute because we only need it to fire 'beforeinput' in the above locations. This approach also helped avoiding modifying all the |CompositeEditCommand| constructors. 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=673789 Committed: https://crrev.com/acce62cb77947bf2f14d6c7ac74219d515a94ffb Cr-Commit-Position: refs/heads/master@{#439130}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -83 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 15 chunks +26 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 6 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 12 chunks +29 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp View 3 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.h View 1 chunk +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 12 chunks +22 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommandTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (21 generated)
chongz
xiaochengh@ PTAL at this last patch for passing command source, thanks! To help reviewing I've ...
4 years ago (2016-12-16 06:00:57 UTC) #15
Xiaocheng
Neat. lgtm. +tkent
4 years ago (2016-12-16 06:54:15 UTC) #17
tkent
lgtm
4 years ago (2016-12-16 07:57:45 UTC) #18
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/2579253002/20001
4 years ago (2016-12-16 17:03:24 UTC) #22
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years ago (2016-12-16 17:12:11 UTC) #25
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/acce62cb77947bf2f14d6c7ac74219d515a94ffb Cr-Commit-Position: refs/heads/master@{#439130}
4 years ago (2016-12-16 17:15:52 UTC) #27
chongz
3 years, 11 months ago (2017-01-16 21:11:52 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:20001) has been created in
https://codereview.chromium.org/2636043002/ by chongz@chromium.org.

The reason for reverting is: Reason for revert:
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