Descriptionmash: 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 #
Messages
Total messages: 25 (11 generated)
|