It should be fairly straightforward to get this working with mash.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b733d4184e6a91eebd951cae60c871118d4cc2a2 commit b733d4184e6a91eebd951cae60c871118d4cc2a2 Author: sky <sky@chromium.org> Date: Fri Sep 09 23:18:38 2016 Refactors DimWindow and moves to ash/common DimWindow was both an aura::Window and had some logic. As that won't work at all in mash (and we generally don't subclass aura::Windows) I've converted it to have a WmWindow. I also renamed it to WindowDimmer. BUG= 631526 TEST=covered by tests R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2320273002 Cr-Commit-Position: refs/heads/master@{#417755} [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/BUILD.gn [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/aura/wm_shell_aura.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/aura/wm_shell_aura.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/aura/wm_window_aura.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/aura/wm_window_aura.h [add] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm/window_dimmer.cc [add] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm/window_dimmer.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm_root_window_controller.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm_shell.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm_window.h [add] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm_window_user_data.h [add] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/common/wm_window_user_data_unittest.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/mus/bridge/wm_shell_mus.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/mus/bridge/wm_shell_mus.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/mus/bridge/wm_window_mus.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/mus/bridge/wm_window_mus.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/root_window_controller.cc [delete] https://crrev.com/a452e2357b4cbd498bb728fb7b5f4006123d111d/ash/wm/dim_window.cc [delete] https://crrev.com/a452e2357b4cbd498bb728fb7b5f4006123d111d/ash/wm/dim_window.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/screen_dimmer.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/screen_dimmer.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/screen_dimmer_unittest.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/screen_pinning_controller.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/screen_pinning_controller.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/system_modal_container_layout_manager.cc [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/system_modal_container_layout_manager.h [modify] https://crrev.com/b733d4184e6a91eebd951cae60c871118d4cc2a2/ash/wm/system_modal_container_layout_manager_unittest.cc
Comment 1 by sky@chromium.org
, Aug 24 2016