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

Issue 1839753005: Move state machines to state_machines subdir (Closed)

Created:
4 years, 8 months ago by Seigo Nonaka
Modified:
4 years, 8 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move state machines to state_machines subdir This CL moves state machine related files to core/editing/state_machines. This CL also changes BackspaceStateMachine to be able to use same template implementation for other state machine, e.g. GraphemeBoundaryStateMachine. This CL also replaces the Backspace implementation with BackspaceStateMachine. BUG=594920 Committed: https://crrev.com/dfedcc28b89073b53d791cc51fa305c87e68567c Cr-Commit-Position: refs/heads/master@{#384235}

Patch Set 1 #

Patch Set 2 : Adds DCHECK #

Total comments: 6

Patch Set 3 : Introduce notifyEndOfPrecedingText. #

Total comments: 10

Patch Set 4 : extracted machine state for other state machines. #

Total comments: 10

Patch Set 5 : Add state_machiens subdirectory #

Patch Set 6 : Fix style errors. #

Total comments: 4

Patch Set 7 : Addressed comments #

Total comments: 4

Patch Set 8 : Fix style errr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -212 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 4 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/BackspaceStateMachine.h View 1 2 3 4 1 chunk +0 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp View 1 2 3 4 1 chunk +0 lines, -59 lines 0 comments Download
M third_party/WebKit/Source/core/editing/BackspaceStateMachineTest.cpp View 1 2 3 4 1 chunk +0 lines, -81 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 3 4 3 chunks +28 lines, -6 lines 0 comments Download
A + third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.h View 1 2 3 4 2 chunks +13 lines, -6 lines 0 comments Download
A + third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp View 1 2 3 4 5 6 7 2 chunks +38 lines, -16 lines 0 comments Download
A third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachineTest.cpp View 1 2 3 4 5 6 7 1 chunk +86 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.h View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
Seigo Nonaka
Hi Yosi-san, Could you kindly take a look? Thank you.
4 years, 8 months ago (2016-03-29 16:15:25 UTC) #2
yosin_UTC9
https://codereview.chromium.org/1839753005/diff/40001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp File third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp (right): https://codereview.chromium.org/1839753005/diff/40001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp#newcode45 third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp:45: return State::Unknown; I think we should not call |BackspaceStateMachine::feedFollowingCodeUnit()|, ...
4 years, 8 months ago (2016-03-30 01:58:41 UTC) #4
yosin_UTC9
https://codereview.chromium.org/1839753005/diff/40001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.h File third_party/WebKit/Source/core/editing/BackspaceStateMachine.h (right): https://codereview.chromium.org/1839753005/diff/40001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.h#newcode29 third_party/WebKit/Source/core/editing/BackspaceStateMachine.h:29: State feedPrecedingCodeUnit(UChar codeUnit); BTW, how do we specify no ...
4 years, 8 months ago (2016-03-30 04:44:27 UTC) #5
Seigo Nonaka
Thank you for your review. Please take an another look. https://codereview.chromium.org/1839753005/diff/40001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp File third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp (right): https://codereview.chromium.org/1839753005/diff/40001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp#newcode45 ...
4 years, 8 months ago (2016-03-30 06:58:57 UTC) #6
yosin_UTC9
https://codereview.chromium.org/1839753005/diff/60001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp File third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp (right): https://codereview.chromium.org/1839753005/diff/60001/third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp#newcode56 third_party/WebKit/Source/core/editing/BackspaceStateMachine.cpp:56: return State::Unknown; |Invalid| is better for here? Because state ...
4 years, 8 months ago (2016-03-30 07:43:07 UTC) #7
Seigo Nonaka
Thank you for your quick review. I extracted machine state enum from BackspaceStateMachine.h since it ...
4 years, 8 months ago (2016-03-30 08:13:09 UTC) #8
yosin_UTC9
https://codereview.chromium.org/1839753005/diff/80001/third_party/WebKit/Source/core/core.gypi File third_party/WebKit/Source/core/core.gypi (right): https://codereview.chromium.org/1839753005/diff/80001/third_party/WebKit/Source/core/core.gypi#newcode1480 third_party/WebKit/Source/core/core.gypi:1480: 'editing/StateMachineCommon.cpp', Can we have editing/state_machines/? We'll have - StateMachineCommon.h ...
4 years, 8 months ago (2016-03-30 08:52:23 UTC) #9
Seigo Nonaka
Thank you for your quick review. Please take an another look. Thank you. https://codereview.chromium.org/1839753005/diff/80001/third_party/WebKit/Source/core/core.gypi File ...
4 years, 8 months ago (2016-03-30 09:13:23 UTC) #10
yosin_UTC9
lgtm +tkent@ for core/ chagnes https://codereview.chromium.org/1839753005/diff/120001/third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp File third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp (right): https://codereview.chromium.org/1839753005/diff/120001/third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp#newcode14 third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp:14: switch (state) { Just ...
4 years, 8 months ago (2016-03-30 09:48:14 UTC) #12
Seigo Nonaka
Thank you for your review! Kent-san, please take a look! Thank you. https://codereview.chromium.org/1839753005/diff/120001/third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp File third_party/WebKit/Source/core/editing/state_machines/TextSegmentationMachineState.cpp ...
4 years, 8 months ago (2016-03-30 10:03:59 UTC) #13
tkent
https://codereview.chromium.org/1839753005/diff/140001/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp File third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp (right): https://codereview.chromium.org/1839753005/diff/140001/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp#newcode12 third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp:12: const TextSegmentationMachineState Invalid = TextSegmentationMachineState::Invalid; This violates both of ...
4 years, 8 months ago (2016-03-30 23:09:46 UTC) #15
Seigo Nonaka
Thank you for your review. I addressed your comments. Please take an another look. https://codereview.chromium.org/1839753005/diff/140001/third_party/WebKit/Source/core/editing/state_machines/BackspaceStateMachine.cpp ...
4 years, 8 months ago (2016-03-31 03:50:49 UTC) #16
tkent
lgtm
4 years, 8 months ago (2016-03-31 05:22:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839753005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839753005/160001
4 years, 8 months ago (2016-03-31 05:37:36 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/204442)
4 years, 8 months ago (2016-03-31 05:42:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839753005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839753005/160001
4 years, 8 months ago (2016-03-31 05:46:17 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/188700)
4 years, 8 months ago (2016-03-31 06:23:48 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839753005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839753005/160001
4 years, 8 months ago (2016-03-31 09:19:03 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 8 months ago (2016-03-31 09:54:01 UTC) #30
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 09:58:17 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/dfedcc28b89073b53d791cc51fa305c87e68567c
Cr-Commit-Position: refs/heads/master@{#384235}

Powered by Google App Engine
This is Rietveld 408576698