DescriptionMake the matching of root dialogs more strict
In the views tree, dialogs as annotated today are fairly loose semantically.
1. In the Launcher, we're using dialog for bubble views.
Example:
window
...
search text field
...
window
...
dialog
...
dialog
files app button
The problem arises when trying to wrap. It is not clear if we should wrap based on the inner dialog, the outer dialog, or the outer window.
Furthermore, consider the views tree for app installation
window
dialog
...
close button
...
dialog
description text static text
...
install button
Here, we should not wrap for the inner dialog because we'll miss the buttons that come after.
Thus, we need to be far more strict when detecting dialogs as root. In particular, dialogs that are not parented to windows and have siblings that are not all windows or dialogs, should not be a root.
TEST=navigate both app install window and launcher. Verify that wrapping only occurs for the launcher case and not for the install window.
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2573203002
Cr-Commit-Position: refs/heads/master@{#443098}
Committed: https://chromium.googlesource.com/chromium/src/+/b190dd7e0396cdc47e4444bab5618500c470c80e
Patch Set 1 #
Total comments: 1
Patch Set 2 : Make the matching of root dialogs more strict #Messages
Total messages: 19 (12 generated)
|