| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/aura/wm_window_aura.h" | 5 #include "ash/wm/aura/wm_window_aura.h" |
| 6 | 6 |
| 7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
| 8 #include "ash/shelf/shelf_util.h" | 8 #include "ash/shelf/shelf_util.h" |
| 9 #include "ash/wm/aura/aura_layout_manager_adapter.h" | 9 #include "ash/wm/aura/aura_layout_manager_adapter.h" |
| 10 #include "ash/wm/aura/wm_globals_aura.h" | 10 #include "ash/wm/aura/wm_globals_aura.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool WmWindowAura::GetTargetVisibility() const { | 185 bool WmWindowAura::GetTargetVisibility() const { |
| 186 return window_->TargetVisibility(); | 186 return window_->TargetVisibility(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool WmWindowAura::IsVisible() const { | 189 bool WmWindowAura::IsVisible() const { |
| 190 return window_->IsVisible(); | 190 return window_->IsVisible(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 bool WmWindowAura::IsSystemModal() const { |
| 194 return window_->GetProperty(aura::client::kModalKey) == ui::MODAL_TYPE_SYSTEM; |
| 195 } |
| 196 |
| 193 bool WmWindowAura::GetBoolProperty(WmWindowProperty key) { | 197 bool WmWindowAura::GetBoolProperty(WmWindowProperty key) { |
| 194 switch (key) { | 198 switch (key) { |
| 195 case WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUDARY: | 199 case WmWindowProperty::SNAP_CHILDREN_TO_PIXEL_BOUDARY: |
| 196 return window_->GetProperty(kSnapChildrenToPixelBoundary); | 200 return window_->GetProperty(kSnapChildrenToPixelBoundary); |
| 197 | 201 |
| 198 case WmWindowProperty::ALWAYS_ON_TOP: | 202 case WmWindowProperty::ALWAYS_ON_TOP: |
| 199 return window_->GetProperty(aura::client::kAlwaysOnTopKey); | 203 return window_->GetProperty(aura::client::kAlwaysOnTopKey); |
| 200 | 204 |
| 201 default: | 205 default: |
| 202 NOTREACHED(); | 206 NOTREACHED(); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 } | 556 } |
| 553 | 557 |
| 554 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, | 558 void WmWindowAura::OnWindowVisibilityChanging(aura::Window* window, |
| 555 bool visible) { | 559 bool visible) { |
| 556 FOR_EACH_OBSERVER(WmWindowObserver, observers_, | 560 FOR_EACH_OBSERVER(WmWindowObserver, observers_, |
| 557 OnWindowVisibilityChanging(this, visible)); | 561 OnWindowVisibilityChanging(this, visible)); |
| 558 } | 562 } |
| 559 | 563 |
| 560 } // namespace wm | 564 } // namespace wm |
| 561 } // namespace ash | 565 } // namespace ash |
| OLD | NEW |