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

Issue 1957653003: mash: Don't close system tray bubble for clicks in menus/notifications (Closed)

Created:
4 years, 7 months ago by James Cook
Modified:
4 years, 7 months ago
Reviewers:
sadrul, sky
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

mash: Don't close system tray bubble for clicks in menus/notifications * Plumb the hit mus::Window through the client WindowManagerConnection event observers * Add the hit widget to PointerWatcher. * Remove the event from PointerWatcher, since the target isn't valid on mus and the client cannot set handled or stop propagation. * Add ContainerDelegate to ash to allow checking if a given widget is in a particular window container. * Convert TrayEventFilter to use the new container delegate. BUG=608570, 599142 TEST=existing ash_unittests, views_mus_unittests TBR=ben@chromium.org for no-op method signature change in content/renderer/mus/ Committed: https://crrev.com/e9f5f0c1aa477afc87c4c42004d6f5f1077048fa Cr-Commit-Position: refs/heads/master@{#392366}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : add back event, GetMusWindow #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -88 lines) Patch
M ash/ash.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
A ash/container_delegate.h View 1 chunk +29 lines, -0 lines 0 comments Download
A ash/container_delegate_aura.h View 1 chunk +34 lines, -0 lines 0 comments Download
A ash/container_delegate_aura.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M ash/mus/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ash/mus/container_delegate_mus.h View 1 chunk +31 lines, -0 lines 0 comments Download
A ash/mus/container_delegate_mus.cc View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M ash/mus/shell_delegate_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M ash/pointer_watcher_delegate_aura.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ash/pointer_watcher_delegate_aura.cc View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M ash/shelf/overflow_bubble.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ash/shelf/overflow_bubble.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ash/shell.h View 3 chunks +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 2 chunks +9 lines, -2 lines 0 comments Download
M ash/system/status_area_widget.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/system/status_area_widget.cc View 2 chunks +1 line, -3 lines 0 comments Download
M ash/system/tray/tray_event_filter.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M ash/system/tray/tray_event_filter.cc View 1 2 2 chunks +16 lines, -22 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M components/mus/demo/mus_demo.h View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/demo/mus_demo.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/mus/public/cpp/tests/window_server_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/tests/window_server_test_base.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/window_tree_delegate.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/mus/compositor_mus_connection.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mash/wm/root_window_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mash/wm/root_window_controller.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M mash/wm/window_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M ui/views/mus/window_manager_connection.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 2 1 chunk +14 lines, -7 lines 0 comments Download
M ui/views/mus/window_manager_connection_unittest.cc View 1 2 3 chunks +26 lines, -18 lines 0 comments Download
M ui/views/pointer_watcher.h View 1 2 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
James Cook
sky, please take a look. I realized after we talked that moving PointerWatcher after event ...
4 years, 7 months ago (2016-05-06 17:20:03 UTC) #2
sadrul
https://codereview.chromium.org/1957653003/diff/20001/ui/views/pointer_watcher.h File ui/views/pointer_watcher.h (right): https://codereview.chromium.org/1957653003/diff/20001/ui/views/pointer_watcher.h#newcode32 ui/views/pointer_watcher.h:32: virtual void OnTouchPressed(const gfx::Point& location_in_screen, I would still keep ...
4 years, 7 months ago (2016-05-06 17:28:26 UTC) #4
James Cook
https://codereview.chromium.org/1957653003/diff/20001/ui/views/pointer_watcher.h File ui/views/pointer_watcher.h (right): https://codereview.chromium.org/1957653003/diff/20001/ui/views/pointer_watcher.h#newcode32 ui/views/pointer_watcher.h:32: virtual void OnTouchPressed(const gfx::Point& location_in_screen, On 2016/05/06 17:28:26, sadrul ...
4 years, 7 months ago (2016-05-06 17:46:35 UTC) #5
sky
https://codereview.chromium.org/1957653003/diff/20001/ash/mus/container_delegate_mus.cc File ash/mus/container_delegate_mus.cc (right): https://codereview.chromium.org/1957653003/diff/20001/ash/mus/container_delegate_mus.cc#newcode25 ash/mus/container_delegate_mus.cc:25: mus::Window* window = Use GetMusWindow, that way you don't ...
4 years, 7 months ago (2016-05-06 21:20:47 UTC) #6
sadrul
https://codereview.chromium.org/1957653003/diff/20001/ui/views/pointer_watcher.h File ui/views/pointer_watcher.h (right): https://codereview.chromium.org/1957653003/diff/20001/ui/views/pointer_watcher.h#newcode32 ui/views/pointer_watcher.h:32: virtual void OnTouchPressed(const gfx::Point& location_in_screen, On 2016/05/06 17:46:35, James ...
4 years, 7 months ago (2016-05-06 21:46:30 UTC) #7
James Cook
sky, please take another look https://codereview.chromium.org/1957653003/diff/20001/ash/mus/container_delegate_mus.cc File ash/mus/container_delegate_mus.cc (right): https://codereview.chromium.org/1957653003/diff/20001/ash/mus/container_delegate_mus.cc#newcode25 ash/mus/container_delegate_mus.cc:25: mus::Window* window = On ...
4 years, 7 months ago (2016-05-06 22:46:24 UTC) #8
sky
LGTM
4 years, 7 months ago (2016-05-07 16:50:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957653003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957653003/60001
4 years, 7 months ago (2016-05-09 16:04:43 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-09 18:22:26 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 18:24:48 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e9f5f0c1aa477afc87c4c42004d6f5f1077048fa
Cr-Commit-Position: refs/heads/master@{#392366}

Powered by Google App Engine
This is Rietveld 408576698