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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2336653002: Ports SystemModalContainerLayoutManager to ash/common (Closed)
Patch Set: merge again Created 4 years, 3 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/wm/container_finder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 6351b2fe7375e6a29e38f400254aff3868941f35..68ea03acac6d95fe48629e9f08b351ef67a34b5f 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -306,6 +306,9 @@ void WmWindowAura::SetColorProperty(WmWindowProperty key, SkColor value) {
}
int WmWindowAura::GetIntProperty(WmWindowProperty key) {
+ if (key == WmWindowProperty::MODAL_TYPE)
+ return window_->GetProperty(aura::client::kModalKey);
+
if (key == WmWindowProperty::SHELF_ID)
return GetShelfIDForWindow(window_);
@@ -798,18 +801,20 @@ void WmWindowAura::OnWindowPropertyChanged(aura::Window* window,
return;
}
WmWindowProperty wm_property;
- if (key == kSnapChildrenToPixelBoundary) {
- wm_property = WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUNDARY;
- } else if (key == aura::client::kAlwaysOnTopKey) {
+ if (key == aura::client::kAlwaysOnTopKey) {
wm_property = WmWindowProperty::ALWAYS_ON_TOP;
+ } else if (key == aura::client::kExcludeFromMruKey) {
+ wm_property = WmWindowProperty::EXCLUDE_FROM_MRU;
+ } else if (key == aura::client::kModalKey) {
+ wm_property = WmWindowProperty::MODAL_TYPE;
} else if (key == kShelfID) {
wm_property = WmWindowProperty::SHELF_ID;
} else if (key == kShelfItemDetailsKey) {
wm_property = WmWindowProperty::SHELF_ITEM_DETAILS;
+ } else if (key == kSnapChildrenToPixelBoundary) {
+ wm_property = WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUNDARY;
} else if (key == aura::client::kTopViewInset) {
wm_property = WmWindowProperty::TOP_VIEW_INSET;
- } else if (key == aura::client::kExcludeFromMruKey) {
- wm_property = WmWindowProperty::EXCLUDE_FROM_MRU;
} else {
return;
}
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/wm/container_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698