chore: bump chromium to 93.0.4550.0 (main) (#29751)
This commit is contained in:
parent
c5066cce22
commit
b8261f1591
78 changed files with 402 additions and 429 deletions
|
@ -345,6 +345,21 @@ NativeWindowViews::NativeWindowViews(const gin_helper::Dictionary& options,
|
|||
// bounds if the bounds are smaller than the current display
|
||||
SetBounds(gfx::Rect(GetPosition(), bounds.size()), false);
|
||||
#endif
|
||||
|
||||
SetOwnedByWidget(false);
|
||||
RegisterDeleteDelegateCallback(base::BindOnce(
|
||||
[](NativeWindowViews* window) {
|
||||
if (window->is_modal() && window->parent()) {
|
||||
auto* parent = window->parent();
|
||||
// Enable parent window after current window gets closed.
|
||||
static_cast<NativeWindowViews*>(parent)->DecrementChildModals();
|
||||
// Focus on parent window.
|
||||
parent->Focus(true);
|
||||
}
|
||||
|
||||
window->NotifyWindowClosed();
|
||||
},
|
||||
this));
|
||||
}
|
||||
|
||||
NativeWindowViews::~NativeWindowViews() {
|
||||
|
@ -1472,18 +1487,6 @@ void NativeWindowViews::OnWidgetDestroyed(views::Widget* changed_widget) {
|
|||
widget_destroyed_ = true;
|
||||
}
|
||||
|
||||
void NativeWindowViews::DeleteDelegate() {
|
||||
if (is_modal() && this->parent()) {
|
||||
auto* parent = this->parent();
|
||||
// Enable parent window after current window gets closed.
|
||||
static_cast<NativeWindowViews*>(parent)->DecrementChildModals();
|
||||
// Focus on parent window.
|
||||
parent->Focus(true);
|
||||
}
|
||||
|
||||
NotifyWindowClosed();
|
||||
}
|
||||
|
||||
views::View* NativeWindowViews::GetInitiallyFocusedView() {
|
||||
return focused_view_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue