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

Issue 1921673005: mus: Add PointerWatcher for passively observing mouse and touch events (Closed)

Created:
4 years, 7 months ago by James Cook
Modified:
4 years, 7 months ago
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, sadrul, tfarina, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Add PointerWatcher for passively observing mouse and touch events This will support closing the system tray bubble when clicking outside its bounds. It also provides a path for converting existing ui::EventHandlers that are used to observe events that occur outside of existing widgets. Dependent CL https://codereview.chromium.org/1918183003 implements closing the tray bubble. BUG=599142 TEST=added to views_mus_unittests and mojo_view_manager_lib_unittests Committed: https://crrev.com/214fcbde97eec5f468f0de0561a3f0eb26571a9f Cr-Commit-Position: refs/heads/master@{#390267}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review comments, fix ash_unittests #

Patch Set 3 : fix ash_shell_with_content #

Total comments: 2

Patch Set 4 : views_exports.cc, observer list iteration #

Total comments: 1

Patch Set 5 : fix bool warning on windows #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+608 lines, -12 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ash/mus/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ash/mus/pointer_watcher_delegate_mus.h View 1 chunk +29 lines, -0 lines 0 comments Download
A ash/mus/pointer_watcher_delegate_mus.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M ash/mus/shell_delegate_mus.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
A ash/pointer_watcher_delegate.h View 1 chunk +22 lines, -0 lines 0 comments Download
A ash/pointer_watcher_delegate_aura.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ash/pointer_watcher_delegate_aura.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 4 chunks +6 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M components/mus/demo/mus_demo.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/demo/mus_demo.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 3 chunks +24 lines, -4 lines 0 comments Download
M components/mus/public/cpp/tests/window_server_test_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/public/cpp/tests/window_server_test_base.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc View 5 chunks +131 lines, -2 lines 0 comments Download
M components/mus/public/cpp/window_tree_connection.h View 2 chunks +6 lines, -0 lines 0 comments Download
M components/mus/public/cpp/window_tree_delegate.h View 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mash/wm/root_window_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M mash/wm/root_window_controller.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mash/wm/window_manager_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 3 4 4 chunks +41 lines, -0 lines 0 comments Download
A ui/views/mus/window_manager_connection_unittest.cc View 1 chunk +108 lines, -0 lines 0 comments Download
A ui/views/pointer_watcher.h View 1 chunk +29 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A + ui/views/views_exports.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (10 generated)
James Cook
sky, please take a look. Apologies for the length. I pulled the code to actually ...
4 years, 7 months ago (2016-04-26 16:42:08 UTC) #3
sky
https://codereview.chromium.org/1921673005/diff/1/ash/pointer_watcher_delegate_aura.cc File ash/pointer_watcher_delegate_aura.cc (right): https://codereview.chromium.org/1921673005/diff/1/ash/pointer_watcher_delegate_aura.cc#newcode16 ash/pointer_watcher_delegate_aura.cc:16: PointerWatcherDelegateAura::~PointerWatcherDelegateAura() {} Remove pretargethandler if have observers? https://codereview.chromium.org/1921673005/diff/1/ash/shell_delegate.h File ...
4 years, 7 months ago (2016-04-26 16:55:48 UTC) #4
sky
On 2016/04/26 16:55:48, sky wrote: > https://codereview.chromium.org/1921673005/diff/1/ash/pointer_watcher_delegate_aura.cc > File ash/pointer_watcher_delegate_aura.cc (right): > > https://codereview.chromium.org/1921673005/diff/1/ash/pointer_watcher_delegate_aura.cc#newcode16 > ...
4 years, 7 months ago (2016-04-26 17:02:15 UTC) #5
James Cook
sky, thanks for the quick review. Please take another look. https://codereview.chromium.org/1921673005/diff/1/ash/pointer_watcher_delegate_aura.cc File ash/pointer_watcher_delegate_aura.cc (right): https://codereview.chromium.org/1921673005/diff/1/ash/pointer_watcher_delegate_aura.cc#newcode16 ...
4 years, 7 months ago (2016-04-26 17:42:45 UTC) #6
sky
LGTM
4 years, 7 months ago (2016-04-26 18:14:25 UTC) #7
James Cook
Ben, can I get OWNERS for the no-op interface implementation in content/renderer/mus ?
4 years, 7 months ago (2016-04-26 18:22:29 UTC) #9
Ben Goodger (Google)
lgtm
4 years, 7 months ago (2016-04-26 18:26:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921673005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921673005/40001
4 years, 7 months ago (2016-04-26 18:34:24 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/12435)
4 years, 7 months ago (2016-04-26 19:58:43 UTC) #15
sky
Not LGTM. Sorry, one question here. https://codereview.chromium.org/1921673005/diff/40001/ash/pointer_watcher_delegate_aura.cc File ash/pointer_watcher_delegate_aura.cc (right): https://codereview.chromium.org/1921673005/diff/40001/ash/pointer_watcher_delegate_aura.cc#newcode30 ash/pointer_watcher_delegate_aura.cc:30: if (!pointer_watchers_.might_have_observers()) { ...
4 years, 7 months ago (2016-04-26 21:44:45 UTC) #16
James Cook
sky, please take another look. https://codereview.chromium.org/1921673005/diff/40001/ash/pointer_watcher_delegate_aura.cc File ash/pointer_watcher_delegate_aura.cc (right): https://codereview.chromium.org/1921673005/diff/40001/ash/pointer_watcher_delegate_aura.cc#newcode30 ash/pointer_watcher_delegate_aura.cc:30: if (!pointer_watchers_.might_have_observers()) { On ...
4 years, 7 months ago (2016-04-26 23:19:05 UTC) #17
James Cook
sky, friendly ping?
4 years, 7 months ago (2016-04-27 21:33:38 UTC) #18
sky
LGTM - sorry for the delay, I some how missed that you updated the patch.
4 years, 7 months ago (2016-04-27 23:45:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921673005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921673005/100001
4 years, 7 months ago (2016-04-28 00:10:17 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-04-28 01:16:22 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:15:22 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/214fcbde97eec5f468f0de0561a3f0eb26571a9f
Cr-Commit-Position: refs/heads/master@{#390267}

Powered by Google App Engine
This is Rietveld 408576698