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

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed)

Created:
4 years, 4 months ago by riajiang
Modified:
4 years, 4 months ago
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, 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

mus: Change PointerWatcher to observe all pointer events, with moves optional. Based on https://codereview.chromium.org/2180683003/ and discussions from https://codereview.chromium.org/2163453002/. BUG=628663, 631126 TEST=views_mus_unittests, mus_public_unittests, mash_unittests, mus_ws_unittests Committed: https://crrev.com/13661fe1ec3d5083450e45a25401b1ec93a61d85 Cr-Commit-Position: refs/heads/master@{#410734}

Patch Set 1 #

Patch Set 2 : Change to use PointerEvent. #

Total comments: 20

Patch Set 3 : Renames, PointerEvent, tests etc #

Total comments: 4

Patch Set 4 : Event conversion; comments; rebase #

Total comments: 16

Patch Set 5 : Renames; DCHECK; comments etc #

Patch Set 6 : nits #

Total comments: 6

Patch Set 7 : ifs #

Total comments: 8

Patch Set 8 : DCHECK; () #

Total comments: 4

Patch Set 9 : DCHECK #

Total comments: 29

Patch Set 10 : pointer enter/exit; has_pointer_watcher etc #

Total comments: 10

Patch Set 11 : . #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -612 lines) Patch
M ash/common/shelf/overflow_bubble.h View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M ash/common/shelf/overflow_bubble.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -10 lines 0 comments Download
M ash/common/shelf/shelf_tooltip_manager.h View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M ash/common/shelf/shelf_tooltip_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -12 lines 0 comments Download
M ash/common/system/tray/tray_event_filter.h View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M ash/common/system/tray/tray_event_filter.cc View 1 2 3 4 1 chunk +6 lines, -10 lines 0 comments Download
M ash/mus/window_manager.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M ash/mus/window_manager_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ash/pointer_watcher_delegate_aura.cc View 1 2 3 4 5 6 1 chunk +18 lines, -8 lines 0 comments Download
M ash/sysui/pointer_watcher_delegate_mus.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/touch_hud/mus/touch_hud_application.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -8 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/mus/compositor_mus_connection.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M services/navigation/view_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M services/navigation/view_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/demo/mus_demo.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/demo/mus_demo.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M services/ui/public/cpp/tests/window_server_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/tests/window_server_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/tests/window_tree_client_private.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/cpp/tests/window_tree_client_private.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/tests/window_tree_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +66 lines, -69 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 2 3 4 3 chunks +10 lines, -9 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +27 lines, -18 lines 0 comments Download
M services/ui/public/cpp/window_tree_client_delegate.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -19 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/test_change_tracker.h View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M services/ui/ws/test_change_tracker.cc View 1 2 3 4 3 chunks +13 lines, -13 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -6 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -4 lines 0 comments Download
M services/ui/ws/window_server.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M services/ui/ws/window_server.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -9 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +29 lines, -47 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 2 3 3 chunks +36 lines, -51 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -8 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +25 lines, -65 lines 0 comments Download
M ui/views/mus/window_manager_connection_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +72 lines, -129 lines 0 comments Download
M ui/views/pointer_watcher.h View 1 2 3 4 2 chunks +7 lines, -8 lines 0 comments Download
D ui/views/touch_event_watcher.h View 1 chunk +0 lines, -43 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/views_exports.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 54 (21 generated)
riajiang
4 years, 4 months ago (2016-07-26 23:46:13 UTC) #4
James Cook
I'm biased, but I like it. :-) https://codereview.chromium.org/2183163002/diff/20001/ash/common/system/tray/tray_event_filter.cc File ash/common/system/tray/tray_event_filter.cc (right): https://codereview.chromium.org/2183163002/diff/20001/ash/common/system/tray/tray_event_filter.cc#newcode42 ash/common/system/tray/tray_event_filter.cc:42: ProcessPressedEvent(location_in_screen, target); ...
4 years, 4 months ago (2016-07-27 01:54:02 UTC) #5
riajiang
https://codereview.chromium.org/2183163002/diff/20001/ash/common/system/tray/tray_event_filter.cc File ash/common/system/tray/tray_event_filter.cc (right): https://codereview.chromium.org/2183163002/diff/20001/ash/common/system/tray/tray_event_filter.cc#newcode42 ash/common/system/tray/tray_event_filter.cc:42: ProcessPressedEvent(location_in_screen, target); On 2016/07/27 01:54:01, James Cook wrote: > ...
4 years, 4 months ago (2016-07-27 22:39:16 UTC) #7
James Cook
https://codereview.chromium.org/2183163002/diff/40001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/40001/services/ui/public/cpp/lib/window_tree_client.cc#newcode1262 services/ui/public/cpp/lib/window_tree_client.cc:1262: ui::PointerEvent* WindowTreeClient::ConvertEventToPointerEvent( This function leaks memory for every event ...
4 years, 4 months ago (2016-07-27 23:21:22 UTC) #8
nabila mehjabin
On 2016/07/27 23:21:22, James Cook (out until 8-1) wrote: > https://codereview.chromium.org/2183163002/diff/40001/services/ui/public/cpp/lib/window_tree_client.cc > File services/ui/public/cpp/lib/window_tree_client.cc (right): ...
4 years, 4 months ago (2016-07-29 20:22:22 UTC) #9
sadrul
I was thinking we could preserve the old code for installing EventObservers based on EventMatcher, ...
4 years, 4 months ago (2016-07-29 20:26:10 UTC) #10
James Cook
https://codereview.chromium.org/2183163002/diff/60001/ui/views/pointer_watcher.h File ui/views/pointer_watcher.h (right): https://codereview.chromium.org/2183163002/diff/60001/ui/views/pointer_watcher.h#newcode37 ui/views/pointer_watcher.h:37: Widget* target) = 0; On 2016/07/29 20:26:10, sadrul wrote: ...
4 years, 4 months ago (2016-08-01 16:43:55 UTC) #11
sadrul
https://codereview.chromium.org/2183163002/diff/60001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/60001/services/ui/public/cpp/lib/window_tree_client.cc#newcode1271 services/ui/public/cpp/lib/window_tree_client.cc:1271: } On 2016/07/29 20:26:10, sadrul wrote: > It doesn't ...
4 years, 4 months ago (2016-08-02 16:13:51 UTC) #12
James Cook
https://codereview.chromium.org/2183163002/diff/60001/ui/views/pointer_watcher.h File ui/views/pointer_watcher.h (right): https://codereview.chromium.org/2183163002/diff/60001/ui/views/pointer_watcher.h#newcode37 ui/views/pointer_watcher.h:37: Widget* target) = 0; On 2016/08/02 16:13:51, sadrul wrote: ...
4 years, 4 months ago (2016-08-02 16:18:41 UTC) #13
riajiang
Please take another look, thanks! https://codereview.chromium.org/2183163002/diff/40001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/40001/services/ui/public/cpp/lib/window_tree_client.cc#newcode1262 services/ui/public/cpp/lib/window_tree_client.cc:1262: ui::PointerEvent* WindowTreeClient::ConvertEventToPointerEvent( On 2016/07/27 ...
4 years, 4 months ago (2016-08-02 19:59:53 UTC) #14
James Cook
https://codereview.chromium.org/2183163002/diff/100001/ash/pointer_watcher_delegate_aura.cc File ash/pointer_watcher_delegate_aura.cc (right): https://codereview.chromium.org/2183163002/diff/100001/ash/pointer_watcher_delegate_aura.cc#newcode38 ash/pointer_watcher_delegate_aura.cc:38: if (event->type() == ui::ET_MOUSE_MOVED) Now that I think about ...
4 years, 4 months ago (2016-08-02 21:19:51 UTC) #15
riajiang
https://codereview.chromium.org/2183163002/diff/100001/ash/pointer_watcher_delegate_aura.cc File ash/pointer_watcher_delegate_aura.cc (right): https://codereview.chromium.org/2183163002/diff/100001/ash/pointer_watcher_delegate_aura.cc#newcode38 ash/pointer_watcher_delegate_aura.cc:38: if (event->type() == ui::ET_MOUSE_MOVED) On 2016/08/02 21:19:50, James Cook ...
4 years, 4 months ago (2016-08-02 22:01:41 UTC) #16
James Cook
LGTM with nit https://codereview.chromium.org/2183163002/diff/120001/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (right): https://codereview.chromium.org/2183163002/diff/120001/services/ui/ws/window_tree.cc#newcode1002 services/ui/ws/window_tree.cc:1002: return pointer_watcher_want_moves_ || (event.type() == ui::ET_POINTER_DOWN ...
4 years, 4 months ago (2016-08-02 23:20:36 UTC) #17
sadrul
https://codereview.chromium.org/2183163002/diff/120001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/120001/services/ui/public/cpp/lib/window_tree_client.cc#newcode977 services/ui/public/cpp/lib/window_tree_client.cc:977: DCHECK(event->IsPointerEvent()); Why the DCHECK here? We can receive ui::KeyEvent ...
4 years, 4 months ago (2016-08-03 16:12:44 UTC) #18
riajiang
https://codereview.chromium.org/2183163002/diff/120001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/120001/services/ui/public/cpp/lib/window_tree_client.cc#newcode977 services/ui/public/cpp/lib/window_tree_client.cc:977: DCHECK(event->IsPointerEvent()); On 2016/08/03 16:12:44, sadrul wrote: > Why the ...
4 years, 4 months ago (2016-08-03 17:54:23 UTC) #19
sadrul
A couple of nits. lgtm https://codereview.chromium.org/2183163002/diff/140001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/140001/services/ui/public/cpp/lib/window_tree_client.cc#newcode630 services/ui/public/cpp/lib/window_tree_client.cc:630: has_pointer_watcher_ = true; Can ...
4 years, 4 months ago (2016-08-04 16:39:18 UTC) #20
riajiang
sky@, could you take a look at services/ui? +ben@, could you take a look at ...
4 years, 4 months ago (2016-08-04 18:21:01 UTC) #22
sky
https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc#newcode630 services/ui/public/cpp/lib/window_tree_client.cc:630: DCHECK(!has_pointer_watcher_); I don't think this should be a DCHECK. ...
4 years, 4 months ago (2016-08-04 20:40:26 UTC) #23
riajiang
https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc#newcode630 services/ui/public/cpp/lib/window_tree_client.cc:630: DCHECK(!has_pointer_watcher_); On 2016/08/04 20:40:25, sky wrote: > I don't ...
4 years, 4 months ago (2016-08-04 21:22:06 UTC) #24
sky
https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc#newcode630 services/ui/public/cpp/lib/window_tree_client.cc:630: DCHECK(!has_pointer_watcher_); On 2016/08/04 21:22:06, riajiang wrote: > On 2016/08/04 ...
4 years, 4 months ago (2016-08-04 23:08:44 UTC) #26
James Cook
https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/interfaces/window_tree.mojom File services/ui/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/interfaces/window_tree.mojom#newcode83 services/ui/public/interfaces/window_tree.mojom:83: // Starts the pointer watcher that monitors all events ...
4 years, 4 months ago (2016-08-05 16:26:46 UTC) #27
sky
On Fri, Aug 5, 2016 at 9:26 AM, <jamescook@chromium.org> wrote: > > https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/interfaces/window_tree.mojom > File ...
4 years, 4 months ago (2016-08-05 16:46:27 UTC) #28
riajiang
https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/160001/services/ui/public/cpp/lib/window_tree_client.cc#newcode630 services/ui/public/cpp/lib/window_tree_client.cc:630: DCHECK(!has_pointer_watcher_); On 2016/08/04 23:08:44, sky wrote: > On 2016/08/04 ...
4 years, 4 months ago (2016-08-05 17:36:03 UTC) #29
sky
https://codereview.chromium.org/2183163002/diff/180001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/180001/services/ui/public/cpp/lib/window_tree_client.cc#newcode632 services/ui/public/cpp/lib/window_tree_client.cc:632: has_pointer_watcher_ = true; Sorry, missed this earlier. Isn't pointer_watcher_id_ ...
4 years, 4 months ago (2016-08-05 18:06:51 UTC) #30
riajiang
https://codereview.chromium.org/2183163002/diff/180001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2183163002/diff/180001/services/ui/public/cpp/lib/window_tree_client.cc#newcode632 services/ui/public/cpp/lib/window_tree_client.cc:632: has_pointer_watcher_ = true; On 2016/08/05 18:06:50, sky wrote: > ...
4 years, 4 months ago (2016-08-05 19:23:59 UTC) #31
sky
Yay! LGTM
4 years, 4 months ago (2016-08-05 20:20:11 UTC) #32
meacer
mojom lgtm
4 years, 4 months ago (2016-08-06 00:21:01 UTC) #33
Ben Goodger (Google)
lgtm
4 years, 4 months ago (2016-08-09 15:20:41 UTC) #38
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/2183163002/200001
4 years, 4 months ago (2016-08-09 15:37:25 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/48612) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-09 15:40:20 UTC) #43
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/2183163002/220001
4 years, 4 months ago (2016-08-09 17:47:31 UTC) #50
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-09 17:53:06 UTC) #52
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 17:58:48 UTC) #54
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/13661fe1ec3d5083450e45a25401b1ec93a61d85
Cr-Commit-Position: refs/heads/master@{#410734}

Powered by Google App Engine
This is Rietveld 408576698