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

Unified Diff: components/constrained_window/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: Fix Mac compile error. 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: components/constrained_window/native_web_contents_modal_dialog_manager_views.cc
diff --git a/components/constrained_window/native_web_contents_modal_dialog_manager_views.cc b/components/constrained_window/native_web_contents_modal_dialog_manager_views.cc
index dca66733a35f971af93be521c6980d0579b9f966..4378516973ac3e3960fca59efc9dc9ecf0bbe9f2 100644
--- a/components/constrained_window/native_web_contents_modal_dialog_manager_views.cc
+++ b/components/constrained_window/native_web_contents_modal_dialog_manager_views.cc
@@ -20,6 +20,7 @@
#if defined(USE_AURA)
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window.h"
+#include "ui/aura/window_targeter.h"
#include "ui/wm/core/visibility_controller.h"
#include "ui/wm/core/window_animations.h"
#include "ui/wm/core/window_modality_controller.h"
@@ -78,6 +79,12 @@ void NativeWebContentsModalDialogManagerViews::ManageDialog() {
wm::SetModalParent(widget->GetNativeWindow(),
native_delegate_->GetWebContents()->GetNativeView());
+#if defined(OS_CHROMEOS)
+ if (native_delegate_->IsNonClipped(dialog())) {
+ widget->SetNativeWindowProperty(aura::kHasIndependentBoundsKey,
+ reinterpret_cast<void*>(true));
+ }
+#endif // OS_CHROMEOS
Lei Zhang 2016/08/19 03:28:47 // defined(OS_CHROMEOS)
rbpotter 2016/08/19 16:59:42 Done.
#endif
Lei Zhang 2016/08/19 03:28:47 label this one too. // defined(USE_AURA)
rbpotter 2016/08/19 16:59:42 Done.
}

Powered by Google App Engine
This is Rietveld 408576698