|
add HideAndClose in preference to having Close sometimes magically defer
DCHECK in linked bug was caused by Widget::CloseAllSecondaryWidgets()
calling Close() but the Close getting deferred due to being an animated
hide, which caused the eventual WM_NCDESTROY to be delayed, which led to
cleaning up GPU resources too late.
So, instead of magically converting closes into hide-and-then-close,
add a new method that explicitly does that, so that the previous
behaviour of Close() is preserved.
And, update a couple obvious places where the HideAndClose is desirable.
There will probably be more places where it will need to be adjusted
but not changing them is a minor cosmetic problem, rather than a somewhat
complicated lifetime change.
R=sky@chromium.org
BUG= 226716
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+47 lines, -19 lines) |
Patch |
 |
M |
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/bubble/bubble_delegate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_root_window_host.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_root_window_host_win.h
|
View
|
1
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
View
|
1
|
3 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_aura.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_aura.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_private.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_win.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/native_widget_win.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/widget.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/widget.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|