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

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: 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/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 a417685ac10e751681f8c2232f43b32584969359..a4b2685641dc913b1cde62da4d0301c20b563320 100644
--- a/components/web_modal/web_contents_modal_dialog_manager.cc
+++ b/components/web_modal/web_contents_modal_dialog_manager.cc
@@ -71,6 +71,7 @@ void WebContentsModalDialogManager::WillClose(gfx::NativeWindow dialog) {
if (dlg == child_dialogs_.end())
return;
+ nonclipped_child_dialogs_.erase(dialog);
bool removed_topmost_dialog = dlg == child_dialogs_.begin();
std::unique_ptr<DialogState> deleter(*dlg);
child_dialogs_.erase(dlg);
@@ -82,6 +83,16 @@ void WebContentsModalDialogManager::WillClose(gfx::NativeWindow dialog) {
BlockWebContentsInteraction(!child_dialogs_.empty());
}
+void WebContentsModalDialogManager::AddNonClippedDialog(
+ gfx::NativeWindow dialog) {
+ nonclipped_child_dialogs_.insert(dialog);
+}
+
+bool WebContentsModalDialogManager::IsNonClipped(
+ gfx::NativeWindow dialog) const {
+ return base::ContainsKey(nonclipped_child_dialogs_, dialog);
+}
+
WebContentsModalDialogManager::WebContentsModalDialogManager(
content::WebContents* web_contents)
: content::WebContentsObserver(web_contents),

Powered by Google App Engine
This is Rietveld 408576698