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

Unified Diff: components/web_modal/web_contents_modal_dialog_manager.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: Track independent bounds as native window property not member of widget class 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/web_modal/web_contents_modal_dialog_manager.cc
diff --git a/components/web_modal/web_contents_modal_dialog_manager.cc b/components/web_modal/web_contents_modal_dialog_manager.cc
index 52b404580291059c6c5d0bd1338ffbb2788ad2e6..bf413f8bdb69c4b3f7d7c3d1104998f7d0213698 100644
--- a/components/web_modal/web_contents_modal_dialog_manager.cc
+++ b/components/web_modal/web_contents_modal_dialog_manager.cc
@@ -35,9 +35,12 @@ void WebContentsModalDialogManager::SetDelegate(
}
}
-void WebContentsModalDialogManager::ShowModalDialog(gfx::NativeWindow dialog) {
+void WebContentsModalDialogManager::ShowModalDialog(
+ gfx::NativeWindow dialog, bool* independent_bounds,
+ const char * kHasIndependentBoundsKey) {
std::unique_ptr<SingleWebContentsDialogManager> mgr(
- CreateNativeWebModalManager(dialog, this));
+ CreateNativeWebModalManager(dialog, this, independent_bounds,
+ kHasIndependentBoundsKey));
ShowDialogWithManager(dialog, std::move(mgr));
}

Powered by Google App Engine
This is Rietveld 408576698