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 #Messages
Total messages: 28 (21 generated)
|