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

Issue 2752903002: Make ui::test::EventGenerator work with PointerEvents in mash (Closed)

Created:
3 years, 9 months ago by James Cook
Modified:
3 years, 9 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ui::test::EventGenerator work with PointerEvents in mash In classic ash PointerWatchers are triggered by an EventHandler attached to ash::Shell and are triggered in unit tests using EventGenerator. In mash PointerWatchers are triggered by a PointerWatcherEventRouter owned by ash::mus::WindowManager. That code path wasn't getting hit in unit tests using EventGenerator. Wiring it up fixes SystemTrayTest.PersistentBubble in mash. It will probably fix several other tests disabled in mash. We'll find those as we look at them individually -- there's no simple way to re-enable all those tests to try them. BUG=693790, 695559 TEST=ash_unittests, mash_unittests SystemTrayTest.PersisentBubble Review-Url: https://codereview.chromium.org/2752903002 Cr-Commit-Position: refs/heads/master@{#457677} Committed: https://chromium.googlesource.com/chromium/src/+/03ae5b6069bab8e87953072eeb75a192b6e6d6aa

Patch Set 1 #

Total comments: 3

Patch Set 2 : review comments #

Total comments: 3

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -7 lines) Patch
M ash/common/system/tray/system_tray_unittest.cc View 2 chunks +1 line, -4 lines 0 comments Download
M ash/mus/window_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/env.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/test/env_test_helper.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/event_generator_delegate_aura.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/event_generator_delegate_aura.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M ui/aura/test/mus/window_tree_client_private.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/test/mus/window_tree_client_private.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M ui/events/test/event_generator.h View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M ui/events/test/event_generator.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
James Cook
sadrul, please take a look. Ideally this would call into WindowTreeClient, but I looked at ...
3 years, 9 months ago (2017-03-15 19:01:20 UTC) #4
sadrul
https://codereview.chromium.org/2752903002/diff/1/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/2752903002/diff/1/ash/test/ash_test_base.cc#newcode88 ash/test/ash_test_base.cc:88: const ui::PointerEvent& event) override { Instead of doing this ...
3 years, 9 months ago (2017-03-16 03:22:47 UTC) #11
James Cook
Sadrul, please take another look. https://codereview.chromium.org/2752903002/diff/1/ash/test/ash_test_base.cc File ash/test/ash_test_base.cc (right): https://codereview.chromium.org/2752903002/diff/1/ash/test/ash_test_base.cc#newcode88 ash/test/ash_test_base.cc:88: const ui::PointerEvent& event) override ...
3 years, 9 months ago (2017-03-16 19:13:32 UTC) #14
sadrul
One nit. lgtm! https://codereview.chromium.org/2752903002/diff/20001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2752903002/diff/20001/ui/events/test/event_generator.h#newcode442 ui/events/test/event_generator.h:442: void MaybeDispatchToPointerWatchers(Event* event); I think MaybeDispatchToPointerWatchers() ...
3 years, 9 months ago (2017-03-17 00:08:36 UTC) #17
James Cook
Thanks for the review. https://codereview.chromium.org/2752903002/diff/20001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2752903002/diff/20001/ui/events/test/event_generator.h#newcode442 ui/events/test/event_generator.h:442: void MaybeDispatchToPointerWatchers(Event* event); On 2017/03/17 ...
3 years, 9 months ago (2017-03-17 02:43:17 UTC) #18
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/2752903002/40001
3 years, 9 months ago (2017-03-17 02:44:05 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 03:41:18 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/03ae5b6069bab8e87953072eeb75...

Powered by Google App Engine
This is Rietveld 408576698