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

Issue 2248263003: Updates PointerEventRouter to handle switching move type (Closed)

Created:
4 years, 4 months ago by sky
Modified:
4 years, 4 months ago
Reviewers:
Tom Sepez, msw
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updates PointerEventRouter to handle switching move type As part of this I'm removing the id that was added when the api was with eventmatchers. I can't think of a good way to make the api work with ids that won't involve raciness. In particular as switching between move and non-move means changing the event id it's possible that some events get dropped. This worries me. Without the ids it means a client might process an event they don't really care about, but PointerWatcherEventRouter ensures the right events are routed. For example, lets say there was an in flight match for a move, but the client switches to not wanting moves. WindowTreeClient will call OnPointerEventObserver(), but PointerEventRouter will ensure the event only goes to the pointerwatchers that want the move. BUG=627146 TEST=covered by tests R=jamescook@chromium.org Committed: https://crrev.com/e37541e6e742816c31c17f993a5842d619bba48d Cr-Commit-Position: refs/heads/master@{#413182}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : false- #

Total comments: 14

Patch Set 4 : merge to trunk #

Patch Set 5 : feedback #

Patch Set 6 : merge 2 trunk #

Patch Set 7 : merge again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -184 lines) Patch
M services/ui/public/cpp/tests/test_window_tree.h View 1 chunk +1 line, -2 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.cc View 1 chunk +1 line, -2 lines 0 comments Download
M services/ui/public/cpp/tests/window_tree_client_private.h View 2 chunks +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/tests/window_tree_client_private.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M services/ui/public/cpp/tests/window_tree_client_unittest.cc View 5 chunks +3 lines, -50 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 2 chunks +1 line, -5 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 2 3 4 3 chunks +4 lines, -11 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 2 chunks +12 lines, -16 lines 0 comments Download
M services/ui/ws/test_change_tracker.h View 2 chunks +2 lines, -3 lines 0 comments Download
M services/ui/ws/test_change_tracker.cc View 3 chunks +8 lines, -12 lines 0 comments Download
M services/ui/ws/test_utils.h View 2 chunks +2 lines, -3 lines 0 comments Download
M services/ui/ws/test_utils.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M services/ui/ws/window_tree.h View 2 chunks +3 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree.cc View 3 chunks +6 lines, -13 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 7 chunks +13 lines, -14 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router.h View 1 4 chunks +26 lines, -5 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router.cc View 1 2 3 4 3 chunks +75 lines, -29 lines 0 comments Download
M ui/views/mus/pointer_watcher_event_router_unittest.cc View 1 2 3 4 2 chunks +60 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
sky
4 years, 4 months ago (2016-08-18 17:23:09 UTC) #9
sky
Mike, any chance you could look at this as James is busy with gardening?
4 years, 4 months ago (2016-08-18 22:06:25 UTC) #12
msw
lgtm with nits and qs. https://codereview.chromium.org/2248263003/diff/40001/services/ui/public/cpp/tests/window_tree_client_unittest.cc File services/ui/public/cpp/tests/window_tree_client_unittest.cc (left): https://codereview.chromium.org/2248263003/diff/40001/services/ui/public/cpp/tests/window_tree_client_unittest.cc#oldcode537 services/ui/public/cpp/tests/window_tree_client_unittest.cc:537: TEST_F(WindowTreeClientTest, PointerWatcherReplaced) { Is ...
4 years, 4 months ago (2016-08-18 22:45:23 UTC) #13
sky
https://codereview.chromium.org/2248263003/diff/40001/services/ui/public/cpp/tests/window_tree_client_unittest.cc File services/ui/public/cpp/tests/window_tree_client_unittest.cc (left): https://codereview.chromium.org/2248263003/diff/40001/services/ui/public/cpp/tests/window_tree_client_unittest.cc#oldcode537 services/ui/public/cpp/tests/window_tree_client_unittest.cc:537: TEST_F(WindowTreeClientTest, PointerWatcherReplaced) { On 2016/08/18 22:45:23, msw wrote: > ...
4 years, 4 months ago (2016-08-18 23:17:15 UTC) #16
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/2248263003/80001
4 years, 4 months ago (2016-08-18 23:18:07 UTC) #18
sky
+tsepez for window_tree.mojom
4 years, 4 months ago (2016-08-18 23:18:12 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/241338)
4 years, 4 months ago (2016-08-18 23:25:58 UTC) #21
Tom Sepez
mojom LGTM
4 years, 4 months ago (2016-08-19 17:38:39 UTC) #26
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/2248263003/120001
4 years, 4 months ago (2016-08-19 17:45:40 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-19 17:51:19 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 17:58:13 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e37541e6e742816c31c17f993a5842d619bba48d
Cr-Commit-Position: refs/heads/master@{#413182}

Powered by Google App Engine
This is Rietveld 408576698