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

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: Fix targeting and missing widget on unit tests. 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..efaf9bf2a5a73ea75e6edbd71a28b20a795a5877 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
@@ -21,6 +21,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"
@@ -77,6 +78,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
#endif
}

Powered by Google App Engine
This is Rietveld 408576698