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

Issue 2350433002: Extract more of the mouse logic from EventHandler (Closed)

Created:
4 years, 3 months ago by Navid Zolghadr
Modified:
4 years, 2 months ago
Reviewers:
dtapuska, mustaq, bokan
CC:
chromium-reviews, blink-reviews, nzolghadr+blinkwatch_chromium.org, dtapuska+blinkwatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract more of the mouse logic from EventHandler Extract the mouse logic to the extent that GestureManager can use solely MouseEventManager instead of being friend with EventHandler and use private functions. Also this refactoring cleaned up some parameter passing from EventHandler to MouseEventManager that was going through PointerEventManager functions. Initial refactoring BUG=625844 Committed: https://crrev.com/4c156f720034dbc6d6c29fd0409c01dda73ccb8f Cr-Commit-Position: refs/heads/master@{#422781}

Patch Set 1 #

Total comments: 20

Patch Set 2 : applying comments #

Total comments: 2

Patch Set 3 : Remove redundant condition #

Total comments: 13

Patch Set 4 : Applying comments #

Patch Set 5 : Fix the issues with the other massive reformatting change :( #

Patch Set 6 : Yet another rebase because of a presubmit rule bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1369 lines, -1220 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 12 chunks +3 lines, -106 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 52 chunks +148 lines, -944 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlingUtil.h View 1 2 3 4 2 chunks +18 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlingUtil.cpp View 1 2 3 4 2 chunks +55 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 1 2 3 4 10 chunks +37 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/input/KeyboardEventManager.cpp View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.h View 1 2 3 4 4 chunks +135 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 3 4 5 4 chunks +877 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.h View 1 2 3 4 3 chunks +9 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 1 2 3 4 9 chunks +50 lines, -70 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.cpp View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/input/TouchEventManager.cpp View 1 2 3 4 2 chunks +16 lines, -15 lines 0 comments Download

Messages

Total messages: 46 (25 generated)
Navid Zolghadr
4 years, 3 months ago (2016-09-16 18:13:38 UTC) #2
Navid Zolghadr
On 2016/09/16 18:13:38, Navid Zolghadr wrote: ping
4 years, 3 months ago (2016-09-21 10:24:33 UTC) #3
mustaq
On 2016/09/21 10:24:33, Navid Zolghadr wrote: > On 2016/09/16 18:13:38, Navid Zolghadr wrote: > > ...
4 years, 3 months ago (2016-09-21 15:33:49 UTC) #4
dtapuska
https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/MouseEventManager.cpp File third_party/WebKit/Source/core/input/MouseEventManager.cpp (right): https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/MouseEventManager.cpp#newcode60 third_party/WebKit/Source/core/input/MouseEventManager.cpp:60: static const double fakeMouseMoveInterval = 0.1; Shouldn't these be ...
4 years, 3 months ago (2016-09-21 17:07:45 UTC) #5
Navid Zolghadr
https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/MouseEventManager.cpp File third_party/WebKit/Source/core/input/MouseEventManager.cpp (right): https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/MouseEventManager.cpp#newcode60 third_party/WebKit/Source/core/input/MouseEventManager.cpp:60: static const double fakeMouseMoveInterval = 0.1; On 2016/09/21 17:07:44, ...
4 years, 3 months ago (2016-09-21 17:17:30 UTC) #6
mustaq
https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp File third_party/WebKit/Source/core/input/EventHandlingUtil.cpp (right): https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp#newcode106 third_party/WebKit/Source/core/input/EventHandlingUtil.cpp:106: MouseEventWithHitTestResults prepareMouseEvent(LocalFrame* frame, This has been a misnomer. Please ...
4 years, 3 months ago (2016-09-21 17:28:14 UTC) #7
mustaq
https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1398 third_party/WebKit/Source/core/input/EventHandler.cpp:1398: leaveFrame->eventHandler().m_mouseEventManager->setNodeUnderMouse(nullptr, fakeMouseMove); Can't see why updateMouseEventTargtNode() is no longer ...
4 years, 3 months ago (2016-09-21 17:51:16 UTC) #8
Navid Zolghadr
https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp File third_party/WebKit/Source/core/input/EventHandlingUtil.cpp (right): https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandlingUtil.cpp#newcode106 third_party/WebKit/Source/core/input/EventHandlingUtil.cpp:106: MouseEventWithHitTestResults prepareMouseEvent(LocalFrame* frame, On 2016/09/21 17:28:14, mustaq wrote: > ...
4 years, 3 months ago (2016-09-22 12:24:30 UTC) #9
Navid Zolghadr
I believe I applied all the comments. ptal https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2350433002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1398 third_party/WebKit/Source/core/input/EventHandler.cpp:1398: leaveFrame->eventHandler().m_mouseEventManager->setNodeUnderMouse(nullptr, ...
4 years, 3 months ago (2016-09-23 11:11:16 UTC) #12
Navid Zolghadr
On 2016/09/23 11:11:16, Navid Zolghadr wrote: > I believe I applied all the comments. ptal ...
4 years, 2 months ago (2016-09-26 20:41:20 UTC) #15
Navid Zolghadr
Are there any other comments for this change?
4 years, 2 months ago (2016-09-28 15:57:16 UTC) #16
dtapuska
lgtm % nits. although it is really hard to reason about such a large change. ...
4 years, 2 months ago (2016-09-28 16:11:43 UTC) #17
Navid Zolghadr
I really tried to not to change any logic in this big change as I ...
4 years, 2 months ago (2016-09-28 17:25:42 UTC) #18
Navid Zolghadr
4 years, 2 months ago (2016-09-28 17:26:50 UTC) #20
bokan
Sorry for delay, I'll take a look tomorrow.
4 years, 2 months ago (2016-09-30 00:12:32 UTC) #25
bokan
Few comments and suggestions but lgtm overall. https://codereview.chromium.org/2350433002/diff/40001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2350433002/diff/40001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode566 third_party/WebKit/Source/core/input/EventHandler.cpp:566: LayoutPoint documentPoint ...
4 years, 2 months ago (2016-09-30 16:57:55 UTC) #26
Navid Zolghadr
https://codereview.chromium.org/2350433002/diff/40001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2350433002/diff/40001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode566 third_party/WebKit/Source/core/input/EventHandler.cpp:566: LayoutPoint documentPoint = EventHandlingUtil::contentPointFromRootFrame(m_frame, mouseEvent.position()); On 2016/09/30 16:57:55, bokan ...
4 years, 2 months ago (2016-10-03 16:03:01 UTC) #29
bokan
https://codereview.chromium.org/2350433002/diff/40001/third_party/WebKit/Source/core/input/EventHandler.h File third_party/WebKit/Source/core/input/EventHandler.h (right): https://codereview.chromium.org/2350433002/diff/40001/third_party/WebKit/Source/core/input/EventHandler.h#newcode84 third_party/WebKit/Source/core/input/EventHandler.h:84: class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHandler> { On ...
4 years, 2 months ago (2016-10-03 16:39:38 UTC) #32
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/2350433002/100001
4 years, 2 months ago (2016-10-04 14:10:50 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-04 14:15:42 UTC) #44
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 14:17:36 UTC) #46
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4c156f720034dbc6d6c29fd0409c01dda73ccb8f
Cr-Commit-Position: refs/heads/master@{#422781}

Powered by Google App Engine
This is Rietveld 408576698