Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: ui/views/window/dialog_delegate.cc

Issue 2172363002: Created min size for print preview dialog and modified to allow the Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduced diff Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 4b8a1f9890010f0a94e8d95083fee7e4f593a2ff..2ae674d3dc62e926c12e0ddcf016bae1b67ad491 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -82,7 +82,8 @@ Widget::InitParams DialogDelegate::GetDialogWidgetInitParams(
// On Mac, however, the parent may be a native window (not a views::Widget),
// and so the dialog must be considered top-level to gain focus and input
// method behaviors.
- params.child = parent && (delegate->GetModalType() == ui::MODAL_TYPE_CHILD);
+ params.child = parent && (delegate->GetModalType() == ui::MODAL_TYPE_CHILD)
+ && !delegate->IsTopLevel();
#endif
return params;
}
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698