Remove PopupWindow usage in TabGridDialog
Currently, TabGridDialog component uses PopupWindow as a container which has shown some disadvantages as feature evolves (https://docs.google.com/document/d/1z49-ehX2VzoY_KcMUOSDi3FU7NzqLlrQocD_M-bPZ1A/edit?usp=sharing) This CL removes the PopupWindow usage in TabGridDialog. Things happened in this CL: * Instead of using PopupWindow as a container, we insert the inflated view into the root view hierarchy and make all TabGridDialog instances share this same view. * Use the ScrimView in RootUiCoordinator instead of creating a new one. This gives us a bonus that the scrim now covers the status bar. * Tweaks in TabGridDialogMediator to make sure the component behaves the same before/after. * Fix tests to adapt to change that TabGridDialog is not in a separate window. Bug: 1069803, 1064140, 997239 Change-Id: I1da2db2bf7ef5b8f304782c4bcc95e951b23623b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2119188 Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:
Mei Liang <meiliang@chromium.org> Cr-Commit-Position: refs/heads/master@{#771898}
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment