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

Issue 1863523006: mash: Make system tray bubble close when another window is activated (Closed)

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

Description

mash: Make system tray bubble close when another window is activated This is one of two code paths by which the system tray bubble closes, and is a common mechanism for other bubbles to close. * Introduce a container for bubbles in mash::wm, similar to the Ash bubble container. Place bubbles there, instead of in the menus container. * Allow that container to have activatable windows as children. * Propagate widget activation changes from NativeWidgetMus to Widget. Note: This does not entirely fix the problem, as the mus::Window::drawn_ state is incorrect. Once that is fixed the bubbles will close properly. For now this can be forced true by changing the mus::Window constructor. BUG=599142 TEST=added to views_mus_unittests, also open system tray bubble then press alt-tab to activate a window, bubble closes Committed: https://crrev.com/d80523229c7a5b7b48647d0ca24c61ad6376c354 Cr-Commit-Position: refs/heads/master@{#386118}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : rebase again #

Total comments: 10

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -17 lines) Patch
M ash/mus/sysui_application.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M mash/wm/public/interfaces/container.mojom View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M mash/wm/root_window_controller.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 2 chunks +4 lines, -5 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus_unittest.cc View 1 2 3 4 4 chunks +62 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
James Cook
sky, please take a look.
4 years, 8 months ago (2016-04-06 17:58:27 UTC) #3
msw
minor driveby nit q https://codereview.chromium.org/1863523006/diff/20001/ash/mus/sysui_application.cc File ash/mus/sysui_application.cc (right): https://codereview.chromium.org/1863523006/diff/20001/ash/mus/sysui_application.cc#newcode69 ash/mus/sysui_application.cc:69: return mash::wm::mojom::Container::COUNT; nit q: is ...
4 years, 8 months ago (2016-04-06 18:18:56 UTC) #5
James Cook
https://codereview.chromium.org/1863523006/diff/20001/ash/mus/sysui_application.cc File ash/mus/sysui_application.cc (right): https://codereview.chromium.org/1863523006/diff/20001/ash/mus/sysui_application.cc#newcode69 ash/mus/sysui_application.cc:69: return mash::wm::mojom::Container::COUNT; On 2016/04/06 18:18:56, msw wrote: > nit ...
4 years, 8 months ago (2016-04-06 18:21:28 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863523006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863523006/20001
4 years, 8 months ago (2016-04-06 18:22:44 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863523006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863523006/40001
4 years, 8 months ago (2016-04-06 19:32:45 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 21:43:59 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863523006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863523006/60001
4 years, 8 months ago (2016-04-07 15:52:29 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 16:34:31 UTC) #16
sky
https://codereview.chromium.org/1863523006/diff/60001/components/mus/ws/focus_controller.cc File components/mus/ws/focus_controller.cc (right): https://codereview.chromium.org/1863523006/diff/60001/components/mus/ws/focus_controller.cc#newcode78 components/mus/ws/focus_controller.cc:78: // TODO(jamescook): Failures to set focus should be propagated ...
4 years, 8 months ago (2016-04-07 17:55:10 UTC) #17
James Cook
sky, please take another look. https://codereview.chromium.org/1863523006/diff/60001/components/mus/ws/focus_controller.cc File components/mus/ws/focus_controller.cc (right): https://codereview.chromium.org/1863523006/diff/60001/components/mus/ws/focus_controller.cc#newcode78 components/mus/ws/focus_controller.cc:78: // TODO(jamescook): Failures to ...
4 years, 8 months ago (2016-04-07 20:43:43 UTC) #18
sky
LGTM
4 years, 8 months ago (2016-04-07 23:08:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863523006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863523006/80001
4 years, 8 months ago (2016-04-08 16:48:01 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-08 17:37:45 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 17:40:12 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d80523229c7a5b7b48647d0ca24c61ad6376c354
Cr-Commit-Position: refs/heads/master@{#386118}

Powered by Google App Engine
This is Rietveld 408576698