|
|
Description[EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3)
This is the sub-patch (1/3) of supporting |EditCommandSource| in
|CompositeEditCommand| (https://crrev.com/2574793002).
This CL:
1. Renamed |EditorCommandSource| => |EditCommandSource|
2. Changed type |enum| => |enum class|
3. Moved from "Editor.h" => "CompositeEditCommand.h"
This CL shouldn't have any behavior change.
BUG=673789
Committed: https://crrev.com/17c7368db5e14c05733b204bbf79e73998810d4b
Cr-Commit-Position: refs/heads/master@{#438979}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Xiaocheng and tkent's review: Rename to |EditCommandSource| and use kCamelCase #
Dependent Patchsets: Messages
Total messages: 37 (24 generated)
The CQ bit was checked by chongz@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Move and rename |enum EditorCommandSource| to |enum class CommandSource| BUG=673789 ========== to ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the 1/3 patch of supporting |CommandSource| in |CompositeEditCommand|. This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ==========
Description was changed from ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the 1/3 patch of supporting |CommandSource| in |CompositeEditCommand|. This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ========== to ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ==========
Description was changed from ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ========== to ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ==========
Description was changed from ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ========== to ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ==========
Description was changed from ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" BUG=673789 ========== to ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 ==========
chongz@chromium.org changed reviewers: + xiaochengh@chromium.org
xiaochengh@ This is the first sub-patch of the |CommandSource| CL, PTAL, thanks!
lgtm with a nit on naming. I should have mentioned that in the last round... https://codereview.chromium.org/2578753002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h (right): https://codereview.chromium.org/2578753002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h:45: enum class CommandSource { MenuOrKeyBinding, Dom }; Please rename them as kMenuOrKeyBinding and kDOM. The blink naming convention requires kCamelCase for enum class members: https://www.chromium.org/blink/coding-style#TOC-Names Besides, it seems that all appearances of DOM in blink code base is either 'dom' or 'DOM'. Let's follow that.
xiaochengh@chromium.org changed reviewers: + tkent@chromium.org
+tkent for owner's review.
> 1. Renamed |EditorCommandSource| => |CommandSource| Why do you rename it?
On 2016/12/15 at 02:32:42, tkent wrote: > > 1. Renamed |EditorCommandSource| => |CommandSource| > > Why do you rename it? This patch is a preparation of making CompositeEditCommand store a command source. For this purpose, the name "EditorCommandSource" becomes inaccurate since it now applies to not only editor commands.
On 2016/12/15 at 02:38:29, xiaochengh wrote: > On 2016/12/15 at 02:32:42, tkent wrote: > > > 1. Renamed |EditorCommandSource| => |CommandSource| > > > > Why do you rename it? > > This patch is a preparation of making CompositeEditCommand store a command source. For this purpose, the name "EditorCommandSource" becomes inaccurate since it now applies to not only editor commands. It's still editing-related. I'm afraid the name CommandSource is too generic.
The CQ bit was checked by chongz@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by chongz@chromium.org to run a CQ dry run
Patchset #2 (id:20001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
tkent@ PTAL again, thanks! > It's still editing-related. I'm afraid the name CommandSource is too generic. I've renamed it to |EditCommandSource| since it primary used by |CompositeEditCommand| but not just |Editor|. Does that work or do you have other names in mind? https://codereview.chromium.org/2578753002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h (right): https://codereview.chromium.org/2578753002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h:45: enum class CommandSource { MenuOrKeyBinding, Dom }; On 2016/12/15 02:24:57, Xiaocheng wrote: > Please rename them as kMenuOrKeyBinding and kDOM. > > The blink naming convention requires kCamelCase for enum class members: > > https://www.chromium.org/blink/coding-style#TOC-Names > > Besides, it seems that all appearances of DOM in blink code base is either 'dom' > or 'DOM'. Let's follow that. Done.
lgtm. Please update the CL description.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== [CommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |CommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |CommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 ========== to ========== [EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |EditCommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |EditCommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 ==========
On 2016/12/16 00:01:53, tkent wrote: > lgtm. > > Please update the CL description. Done.
The CQ bit was checked by chongz@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from xiaochengh@chromium.org Link to the patchset: https://codereview.chromium.org/2578753002/#ps40001 (title: "Xiaocheng and tkent's review: Rename to |EditCommandSource| and use kCamelCase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1481848958743840, "parent_rev": "9fc70cc5fd62da94c9f47322d2f0d552e0c0ea35", "commit_rev": "06c0ebbcc51c1160fcda0a6d6c47ac8079050530"}
Message was sent while issue was closed.
Description was changed from ========== [EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |EditCommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |EditCommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 ========== to ========== [EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |EditCommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |EditCommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 Review-Url: https://codereview.chromium.org/2578753002 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |EditCommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |EditCommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 Review-Url: https://codereview.chromium.org/2578753002 ========== to ========== [EditCommandSource] Rename and move |EditorCommandSource| to "CompositeEditCommand.h" (1/3) This is the sub-patch (1/3) of supporting |EditCommandSource| in |CompositeEditCommand| (https://crrev.com/2574793002). This CL: 1. Renamed |EditorCommandSource| => |EditCommandSource| 2. Changed type |enum| => |enum class| 3. Moved from "Editor.h" => "CompositeEditCommand.h" This CL shouldn't have any behavior change. BUG=673789 Committed: https://crrev.com/17c7368db5e14c05733b204bbf79e73998810d4b Cr-Commit-Position: refs/heads/master@{#438979} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/17c7368db5e14c05733b204bbf79e73998810d4b Cr-Commit-Position: refs/heads/master@{#438979}
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in https://codereview.chromium.org/2636963003/ 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.. |