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

Side by Side 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: update gyp 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 unified diff | Download patch
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_window_aura.h ('k') | ash/wm/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698