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

Issue 823873004: Add basic PointerEvent support in NewEventHandler (Closed)

Created:
5 years, 11 months ago by abarth-chromium
Modified:
5 years, 11 months ago
Reviewers:
eseidel, esprehn, ojan
CC:
mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add basic PointerEvent support in NewEventHandler blink::EventHandler is really hairy and deals with a lot of complex cases that don't matter for Sky. This CL starts a NewEventHandler and adds support for PointerEvents there. The NewEventHandler will eventually replace EventHandler once we've actually migrated over from Mouse+Touch events to PointerEvents. R=esprehn@chromium.org, ojan@chromium.org, eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/a85a2cea82d816de115e15253742b0f88a9924eb

Patch Set 1 #

Patch Set 2 : Actually add NewEventHandler #

Total comments: 26

Patch Set 3 : Address reviewer comments #

Total comments: 4

Patch Set 4 : Address more reviewer comments #

Patch Set 5 : git cl try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -16 lines) Patch
M sky/engine/core/core.gni View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A sky/engine/core/frame/NewEventHandler.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A sky/engine/core/frame/NewEventHandler.cpp View 1 2 3 4 1 chunk +152 lines, -0 lines 0 comments Download
M sky/engine/core/rendering/RenderView.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M sky/engine/public/platform/WebInputEvent.h View 1 chunk +16 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
abarth-chromium
5 years, 11 months ago (2015-01-20 06:43:34 UTC) #1
abarth-chromium
5 years, 11 months ago (2015-01-20 06:49:35 UTC) #2
esprehn
https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp File sky/engine/core/frame/NewEventHandler.cpp (right): https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp#newcode48 sky/engine/core/frame/NewEventHandler.cpp:48: Node* NewEventHandler::targetForHitTestResult(const HitTestResult& hitTestResult) This can really be far ...
5 years, 11 months ago (2015-01-20 18:14:33 UTC) #4
abarth-chromium
https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp File sky/engine/core/frame/NewEventHandler.cpp (right): https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp#newcode48 sky/engine/core/frame/NewEventHandler.cpp:48: Node* NewEventHandler::targetForHitTestResult(const HitTestResult& hitTestResult) On 2015/01/20 at 18:14:33, esprehn ...
5 years, 11 months ago (2015-01-20 18:26:55 UTC) #5
abarth-chromium
PTAL https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp File sky/engine/core/frame/NewEventHandler.cpp (right): https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp#newcode61 sky/engine/core/frame/NewEventHandler.cpp:61: if (!m_frame->contentRenderer() || (m_frame->view() && !m_frame->view()->visibleContentRect().contains(roundedIntPoint(point)))) On 2015/01/20 ...
5 years, 11 months ago (2015-01-20 21:37:56 UTC) #6
esprehn
https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/events/PointerEvent.h File sky/engine/core/events/PointerEvent.h (right): https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/events/PointerEvent.h#newcode80 sky/engine/core/events/PointerEvent.h:80: void setPrimary(bool primary) { m_primary = primary; } Does ...
5 years, 11 months ago (2015-01-21 02:47:52 UTC) #7
esprehn
lgtm + nits and review comments from before. https://codereview.chromium.org/823873004/diff/40001/sky/engine/core/frame/NewEventHandler.h File sky/engine/core/frame/NewEventHandler.h (right): https://codereview.chromium.org/823873004/diff/40001/sky/engine/core/frame/NewEventHandler.h#newcode21 sky/engine/core/frame/NewEventHandler.h:21: explicit ...
5 years, 11 months ago (2015-01-21 02:49:06 UTC) #8
ojan
lgtm https://codereview.chromium.org/823873004/diff/40001/sky/engine/core/frame/NewEventHandler.cpp File sky/engine/core/frame/NewEventHandler.cpp (right): https://codereview.chromium.org/823873004/diff/40001/sky/engine/core/frame/NewEventHandler.cpp#newcode98 sky/engine/core/frame/NewEventHandler.cpp:98: m_frame->selection().setNonDirectionalSelectionIfNeeded(VisibleSelection(position), CharacterGranularity); Non direcitonal selections are a crazy-pants ...
5 years, 11 months ago (2015-01-21 03:39:28 UTC) #10
abarth-chromium
https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/events/PointerEvent.h File sky/engine/core/events/PointerEvent.h (right): https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/events/PointerEvent.h#newcode80 sky/engine/core/events/PointerEvent.h:80: void setPrimary(bool primary) { m_primary = primary; } On ...
5 years, 11 months ago (2015-01-21 07:03:26 UTC) #11
esprehn
On 2015/01/21 at 07:03:26, abarth wrote: > ... > > https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/frame/NewEventHandler.cpp#newcode107 > sky/engine/core/frame/NewEventHandler.cpp:107: if (event.type ...
5 years, 11 months ago (2015-01-22 01:26:31 UTC) #12
abarth-chromium
Committed patchset #5 (id:80001) manually as a85a2cea82d816de115e15253742b0f88a9924eb (presubmit successful).
5 years, 11 months ago (2015-01-22 20:54:33 UTC) #13
abarth-chromium
5 years, 11 months ago (2015-01-23 02:25:09 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/events/P...
File sky/engine/core/events/PointerEvent.h (right):

https://codereview.chromium.org/823873004/diff/20001/sky/engine/core/events/P...
sky/engine/core/events/PointerEvent.h:80: void setPrimary(bool primary) {
m_primary = primary; }
I removed this for now.  When we have more of this system implemented, we can
add it back.

Powered by Google App Engine
This is Rietveld 408576698