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

Unified Diff: ash/wm/aura/wm_window_aura.cc

Issue 1954523002: Refactors StackingController::GetDefaultParent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 4 years, 7 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: ash/wm/aura/wm_window_aura.cc
diff --git a/ash/wm/aura/wm_window_aura.cc b/ash/wm/aura/wm_window_aura.cc
index 2a09ff622254e87dc08547ecd4e15e23d966b1a9..f483d93a51bbe53bdd1b26e286d2039c9ed4df18 100644
--- a/ash/wm/aura/wm_window_aura.cc
+++ b/ash/wm/aura/wm_window_aura.cc
@@ -190,6 +190,10 @@ bool WmWindowAura::IsVisible() const {
return window_->IsVisible();
}
+bool WmWindowAura::IsSystemModal() const {
+ return window_->GetProperty(aura::client::kModalKey) == ui::MODAL_TYPE_SYSTEM;
+}
+
bool WmWindowAura::GetBoolProperty(WmWindowProperty key) {
switch (key) {
case WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUDARY:

Powered by Google App Engine
This is Rietveld 408576698