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

Unified Diff: chrome/browser/ui/views/native_web_contents_modal_dialog_manager_views.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: Change to CrOS only. Created 4 years, 4 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
Index: chrome/browser/ui/views/native_web_contents_modal_dialog_manager_views.cc
diff --git a/chrome/browser/ui/views/native_web_contents_modal_dialog_manager_views.cc b/chrome/browser/ui/views/native_web_contents_modal_dialog_manager_views.cc
index 9894085a151844d9710fa30b7e3c4bbe1dbb68b1..5161d8747f2c4451a36b22f4f901f2add35a8dab 100644
--- a/chrome/browser/ui/views/native_web_contents_modal_dialog_manager_views.cc
+++ b/chrome/browser/ui/views/native_web_contents_modal_dialog_manager_views.cc
@@ -77,6 +77,11 @@ void NativeWebContentsModalDialogManagerViews::ManageDialog() {
wm::SetModalParent(widget->GetNativeWindow(),
native_delegate_->GetWebContents()->GetNativeView());
+
+ if (native_delegate_->IsNonClipped(dialog())) {
Mike Wittman 2016/08/12 22:51:34 We should only enable this code on the platforms w
rbpotter 2016/08/15 18:03:45 Done.
+ widget->SetNativeWindowProperty(wm::kHasIndependentBoundsKey,
+ new bool(true));
Mike Wittman 2016/08/12 22:51:34 For ease of use and to avoid leaking memory, I wou
rbpotter 2016/08/15 18:03:45 Done.
+ }
#endif
}

Powered by Google App Engine
This is Rietveld 408576698