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

Unified Diff: ui/views/widget/widget.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: reduced diff Created 4 years, 5 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: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 62b4b56680940483f338c2a56a1222da3279f264..79b44edf2a447bbd8e9649ed0863d5c03396b140 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1007,6 +1007,10 @@ bool Widget::IsModal() const {
return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE;
}
+bool Widget::IsModalTypeChild() const {
+ return widget_delegate_->GetModalType() == ui::MODAL_TYPE_CHILD;
+}
+
bool Widget::IsDialogBox() const {
return !!widget_delegate_->AsDialogDelegate();
}

Powered by Google App Engine
This is Rietveld 408576698