|
|
DesktopAura: Track windows "owned" via the DesktopWindowTreeHost
Widget::GetAllOwnedWidgets() is currently populated from Aura child
windows (in the same WindowTreeHost), and "transient" child windows
added using wm::AddTransientChild(). However, only NativeWidgetAura uses
wm::AddTransientChild(). This means that a parented Widget using a
DesktopNativeWidgetAura (e.g. for a top-level Widget on Windows Aero),
rather than a NativeWidgetAura, will not be reported in its parent
window's "GetAllOwnedWidgets()".
Ownership of these top-level Widgets is managed in mus-, win-, or
x11-specific code.
To fix, add a method to DesktopWindowTreeHost that allows an
implementation to provide a vector<DesktopWindowTreeHost*> of windows
it owns. Widgets are usually associated with the aura::Window that is a
grandchild of the aura::Window associated with the WindowTreeHost - this
is done by DesktopNativeWidgetAura, so a method for NativeWidgetPrivate
to obtain Widgets is also added.
BUG= 683808, 654151
Total comments: 3
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+181 lines, -18 lines) |
Patch |
 |
M |
chrome/browser/ui/test/test_browser_dialog.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/accessibility/native_view_accessibility.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/mus/desktop_window_tree_host_mus.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/desktop_window_tree_host_mus.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_aura.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_aura.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+26 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_mac.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_mac.mm
|
View
|
1
2
3
4
5
6
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_private.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/widget/widget.h
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/widget.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/widget_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+56 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/win/hwnd_message_handler.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/win/hwnd_message_handler.cc
|
View
|
1
2
3
4
|
2 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
Total messages: 72 (66 generated)
|