Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(18)

Issue 1113323002: [Reland] Refactor the selection code in EventHandler (Closed)

Created:
5 years ago by Miyoung Shin(g)
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[Reland]Refactor the selection code in EventHandler The code related to handling the selection moves out of EventHandler to SelectionHandler. This patch makes EventHandler simpler as well. BUG=483376, 491501 R=yosin@chromium.org, rbyers@chromium.org, tkent@chromium.org, esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197046

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 50

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 28

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 22

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 2

Patch Set 16 : #

Total comments: 4

Patch Set 17 : #

Total comments: 8

Patch Set 18 : rebase #

Patch Set 19 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -4359 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
A + Source/core/editing/SelectionController.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +47 lines, -50 lines 0 comments Download
A + Source/core/editing/SelectionController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 chunks +111 lines, -3757 lines 0 comments Download
M Source/core/html/HTMLLabelElement.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/input/EventHandler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +4 lines, -24 lines 0 comments Download
M Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 chunks +24 lines, -471 lines 0 comments Download
A + Source/core/input/EventHandlerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +67 lines, -56 lines 0 comments Download

Messages

Total messages: 67 (17 generated)
Miyoung Shin(g)
yosin@, I've named the |SelectionController| even though we don't decide the class name yet. If ...
5 years ago (2015-05-01 06:41:22 UTC) #1
Rick Byers
I took a quick skim through this - it seems much cleaner than I expected, ...
5 years ago (2015-05-01 13:22:09 UTC) #4
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/1/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1113323002/diff/1/Source/core/page/EventHandler.cpp#newcode954 Source/core/page/EventHandler.cpp:954: selectionController().initializeSelectionState(); On 2015/05/01 13:22:09, Rick Byers wrote: > This ...
4 years, 12 months ago (2015-05-03 01:45:25 UTC) #5
yosin_UTC9
Thanks for quick work! And sorry for late response. It seems we missed to f2f ...
4 years, 11 months ago (2015-05-18 08:53:47 UTC) #6
Miyoung Shin(g)
Oh. I'm sorry, How do you feel better now? As I met Rick in Sydney, ...
4 years, 11 months ago (2015-05-19 09:01:43 UTC) #7
yosin_UTC9
Almost good shape! We are very closed to land this patch. >Oh. I'm sorry, How ...
4 years, 11 months ago (2015-05-19 09:41:19 UTC) #8
Miyoung Shin(g)
>BTW, what time zone are you in? I'm in KST, Korea. :) https://codereview.chromium.org/1113323002/diff/40001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp ...
4 years, 11 months ago (2015-05-19 16:12:51 UTC) #9
yosin_UTC9
LGTM w/nits +tkent@, since he is review in same time zone. ;-) https://codereview.chromium.org/1113323002/diff/60001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp ...
4 years, 11 months ago (2015-05-20 02:27:38 UTC) #11
yosin_UTC9
We've not yet have good name for |SelectionController|... In these days, I feel this is ...
4 years, 11 months ago (2015-05-20 02:28:43 UTC) #12
tkent
https://codereview.chromium.org/1113323002/diff/60001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/1113323002/diff/60001/Source/core/core.gypi#newcode1381 Source/core/core.gypi:1381: 'editing/SelectionType.h', Add SelectionController.h too. https://codereview.chromium.org/1113323002/diff/60001/Source/core/editing/SelectionController.h File Source/core/editing/SelectionController.h (right): https://codereview.chromium.org/1113323002/diff/60001/Source/core/editing/SelectionController.h#newcode41 ...
4 years, 11 months ago (2015-05-20 03:31:01 UTC) #13
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/60001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/1113323002/diff/60001/Source/core/core.gypi#newcode1381 Source/core/core.gypi:1381: 'editing/SelectionType.h', On 2015/05/20 03:31:01, tkent wrote: > Add SelectionController.h ...
4 years, 11 months ago (2015-05-20 15:53:40 UTC) #14
tkent
https://codereview.chromium.org/1113323002/diff/80001/Source/core/editing/SelectionController.h File Source/core/editing/SelectionController.h (right): https://codereview.chromium.org/1113323002/diff/80001/Source/core/editing/SelectionController.h#newcode45 Source/core/editing/SelectionController.h:45: ~SelectionController(); Please remove ~SelectionController(). https://codereview.chromium.org/1113323002/diff/80001/Source/core/page/EventHandler.h File Source/core/page/EventHandler.h (right): https://codereview.chromium.org/1113323002/diff/80001/Source/core/page/EventHandler.h#newcode325 ...
4 years, 11 months ago (2015-05-20 23:57:40 UTC) #15
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/80001/Source/core/editing/SelectionController.h File Source/core/editing/SelectionController.h (right): https://codereview.chromium.org/1113323002/diff/80001/Source/core/editing/SelectionController.h#newcode45 Source/core/editing/SelectionController.h:45: ~SelectionController(); On 2015/05/20 23:57:40, tkent wrote: > Please remove ...
4 years, 11 months ago (2015-05-21 22:49:38 UTC) #17
tkent
lgtm
4 years, 11 months ago (2015-05-21 23:14:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113323002/120001
4 years, 11 months ago (2015-05-21 23:14:19 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195735
4 years, 11 months ago (2015-05-22 00:11:59 UTC) #22
Will Harris
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1157833002/ by wfh@chromium.org. ...
4 years, 11 months ago (2015-05-24 03:38:11 UTC) #23
Miyoung Shin(g)
I'm sorry. I made a mistake to set the wrong variable in EventHandler.cpp. I will ...
4 years, 11 months ago (2015-05-24 14:05:55 UTC) #24
acterhd
On 2015/05/24 14:05:55, Miyoung Shin(g) wrote: > I'm sorry. I made a mistake to set ...
4 years, 11 months ago (2015-05-24 14:36:13 UTC) #25
tkent
Please add a test for crbug.com/491501.
4 years, 11 months ago (2015-05-25 00:39:10 UTC) #26
Miyoung Shin(g)
> Give me patch for replacing this variable. I must recompile my Chromium with > ...
4 years, 11 months ago (2015-05-25 01:36:26 UTC) #27
yosin_UTC9
On 2015/05/25 01:36:26, Miyoung Shin(g) wrote: > I'm trying to add TC using eventSender.mouseXXXX. But ...
4 years, 11 months ago (2015-05-25 01:58:18 UTC) #28
Miyoung Shin(g)
On 2015/05/25 01:58:18, Yosi_UTC9 wrote: > On 2015/05/25 01:36:26, Miyoung Shin(g) wrote: > > I'm ...
4 years, 11 months ago (2015-05-25 15:32:18 UTC) #29
esprehn
It'd be better if you first moved code but didn't change things and then made ...
4 years, 11 months ago (2015-05-25 21:28:13 UTC) #31
tkent
https://codereview.chromium.org/1113323002/diff/180001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/1113323002/diff/180001/Source/web/tests/WebFrameTest.cpp#newcode4238 Source/web/tests/WebFrameTest.cpp:4238: TEST_F(WebFrameTest, dragSelectionAfterScroll) Can you make EventHandlerTest.cpp or SelectionControllerTest.cpp instead ...
4 years, 11 months ago (2015-05-25 23:57:25 UTC) #32
yosin_UTC9
https://codereview.chromium.org/1113323002/diff/180001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/180001/Source/core/editing/SelectionController.cpp#newcode49 Source/core/editing/SelectionController.cpp:49: namespace { On 2015/05/25 21:28:12, esprehn wrote: > remove ...
4 years, 11 months ago (2015-05-26 01:11:31 UTC) #33
Miyoung Shin(g)
esprehn@, tkent@, yosin@, I'm on vacation this week. when I get back, I will take ...
4 years, 11 months ago (2015-05-26 12:51:38 UTC) #34
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/180001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/180001/Source/core/editing/SelectionController.cpp#newcode49 Source/core/editing/SelectionController.cpp:49: namespace { Also anonymous namespace and static function co-exist ...
4 years, 11 months ago (2015-05-31 14:01:13 UTC) #35
Miyoung Shin(g)
esprehn@, tkent@, yosin@, Could you take a look ?
4 years, 11 months ago (2015-06-03 13:26:03 UTC) #36
tkent
Can you re-post the patch with "git cl upload --similarity=5" to show a diff between ...
4 years, 11 months ago (2015-06-04 03:34:18 UTC) #37
Miyoung Shin(g)
> Can you re-post the patch with "git cl upload --similarity=5" to show a diff ...
4 years, 11 months ago (2015-06-04 08:53:04 UTC) #38
yosin_UTC9
On 2015/06/04 08:53:04, Miyoung Shin(g) wrote: > > Can you re-post the patch with "git ...
4 years, 11 months ago (2015-06-05 01:27:59 UTC) #39
Miyoung Shin(g)
This patch is a conflict with the patch that moved EventHandler from core/page/ to core/input ...
4 years, 10 months ago (2015-06-08 05:27:38 UTC) #40
Miyoung Shin(g)
On 2015/06/05 01:27:59, Yosi_UTC9 wrote: > On 2015/06/04 08:53:04, Miyoung Shin(g) wrote: > > > ...
4 years, 10 months ago (2015-06-08 09:23:48 UTC) #44
yosin_UTC9
On 2015/06/08 09:23:48, Miyoung Shin(g) wrote: > On 2015/06/05 01:27:59, Yosi_UTC9 wrote: > > On ...
4 years, 10 months ago (2015-06-08 09:42:35 UTC) #45
tkent
> > > Could you try to use "--similarity" option with "git cl upload" to ...
4 years, 10 months ago (2015-06-08 14:39:48 UTC) #46
Miyoung Shin(g)
On 2015/06/08 14:39:48, tkent wrote: > Have you tried --similarity=5 suggested in my previous comment? ...
4 years, 10 months ago (2015-06-09 02:05:51 UTC) #47
tkent
https://codereview.chromium.org/1113323002/diff/360001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/360001/Source/core/editing/SelectionController.cpp#newcode77 Source/core/editing/SelectionController.cpp:77: static inline bool canMouseDownStartSelect(Node* node) Please move this to ...
4 years, 10 months ago (2015-06-09 06:03:19 UTC) #48
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/360001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/360001/Source/core/editing/SelectionController.cpp#newcode77 Source/core/editing/SelectionController.cpp:77: static inline bool canMouseDownStartSelect(Node* node) On 2015/06/09 06:03:18, tkent ...
4 years, 10 months ago (2015-06-09 13:49:51 UTC) #49
tkent
lgtm. Thank you for updating patches. It's easy to review this CL. https://codereview.chromium.org/1113323002/diff/380001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp ...
4 years, 10 months ago (2015-06-10 00:14:12 UTC) #50
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/380001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/380001/Source/core/editing/SelectionController.cpp#newcode509 Source/core/editing/SelectionController.cpp:509: Page* page = m_frame->page(); On 2015/06/10 00:14:12, tkent wrote: ...
4 years, 10 months ago (2015-06-10 00:59:17 UTC) #51
tkent
https://codereview.chromium.org/1113323002/diff/400001/Source/core/input/EventHandler.cpp File Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1113323002/diff/400001/Source/core/input/EventHandler.cpp#newcode2085 Source/core/input/EventHandler.cpp:2085: return true; Add focusDocumentView(). https://codereview.chromium.org/1113323002/diff/400001/Source/core/input/EventHandlerTest.cpp File Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/1113323002/diff/400001/Source/core/input/EventHandlerTest.cpp#newcode25 ...
4 years, 10 months ago (2015-06-10 01:21:35 UTC) #52
tkent
https://codereview.chromium.org/1113323002/diff/400001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/400001/Source/core/editing/SelectionController.cpp#newcode43 Source/core/editing/SelectionController.cpp:43: #include "core/input/EventHandler.h" Remove this line. https://codereview.chromium.org/1113323002/diff/400001/Source/core/editing/SelectionController.cpp#newcode509 Source/core/editing/SelectionController.cpp:509: m_frame->eventHandler().focusDocumentView(); Remove ...
4 years, 10 months ago (2015-06-10 01:23:43 UTC) #53
Miyoung Shin(g)
https://codereview.chromium.org/1113323002/diff/400001/Source/core/editing/SelectionController.cpp File Source/core/editing/SelectionController.cpp (right): https://codereview.chromium.org/1113323002/diff/400001/Source/core/editing/SelectionController.cpp#newcode43 Source/core/editing/SelectionController.cpp:43: #include "core/input/EventHandler.h" On 2015/06/10 01:23:43, tkent wrote: > Remove ...
4 years, 10 months ago (2015-06-10 05:10:47 UTC) #54
Miyoung Shin(g)
tkent@, yosin@, esprehn@, I'm sorry to ask the review for a long time. Could you ...
4 years, 10 months ago (2015-06-12 00:56:02 UTC) #55
yosin_UTC9
On 2015/06/12 00:56:02, Miyoung Shin(g) wrote: > tkent@, yosin@, esprehn@, > I'm sorry to ask ...
4 years, 10 months ago (2015-06-12 01:04:00 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113323002/420001
4 years, 10 months ago (2015-06-12 01:08:17 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/47283) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
4 years, 10 months ago (2015-06-12 01:12:06 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1113323002/480001
4 years, 10 months ago (2015-06-12 13:39:37 UTC) #66
commit-bot: I haz the power
4 years, 10 months ago (2015-06-12 16:37:23 UTC) #67
Message was sent while issue was closed.
Committed patchset #19 (id:480001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197046

Powered by Google App Engine
This is Rietveld 408576698