| 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/aura/wm_window_aura.h" | 5 #include "ash/aura/wm_window_aura.h" |
| 6 | 6 |
| 7 #include "ash/aura/aura_layout_manager_adapter.h" | 7 #include "ash/aura/aura_layout_manager_adapter.h" |
| 8 #include "ash/aura/wm_root_window_controller_aura.h" | 8 #include "ash/aura/wm_root_window_controller_aura.h" |
| 9 #include "ash/aura/wm_shell_aura.h" | 9 #include "ash/aura/wm_shell_aura.h" |
| 10 #include "ash/common/ash_constants.h" | 10 #include "ash/common/ash_constants.h" |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 } | 650 } |
| 651 | 651 |
| 652 void WmWindowAura::HideResizeShadow() { | 652 void WmWindowAura::HideResizeShadow() { |
| 653 ResizeShadowController* resize_shadow_controller = | 653 ResizeShadowController* resize_shadow_controller = |
| 654 Shell::GetInstance()->resize_shadow_controller(); | 654 Shell::GetInstance()->resize_shadow_controller(); |
| 655 if (resize_shadow_controller) | 655 if (resize_shadow_controller) |
| 656 resize_shadow_controller->HideShadow(window_); | 656 resize_shadow_controller->HideShadow(window_); |
| 657 } | 657 } |
| 658 | 658 |
| 659 void WmWindowAura::InstallResizeHandleWindowTargeter( | 659 void WmWindowAura::InstallResizeHandleWindowTargeter( |
| 660 WmImmersiveFullscreenController* immersive_fullscreen_controller) { | 660 ImmersiveFullscreenController* immersive_fullscreen_controller) { |
| 661 window_->SetEventTargeter(base::MakeUnique<ResizeHandleWindowTargeter>( | 661 window_->SetEventTargeter(base::MakeUnique<ResizeHandleWindowTargeter>( |
| 662 window_, immersive_fullscreen_controller)); | 662 window_, immersive_fullscreen_controller)); |
| 663 } | 663 } |
| 664 | 664 |
| 665 void WmWindowAura::SetBoundsInScreenBehaviorForChildren( | 665 void WmWindowAura::SetBoundsInScreenBehaviorForChildren( |
| 666 BoundsInScreenBehavior behavior) { | 666 BoundsInScreenBehavior behavior) { |
| 667 window_->SetProperty( | 667 window_->SetProperty( |
| 668 kUsesScreenCoordinatesKey, | 668 kUsesScreenCoordinatesKey, |
| 669 behavior == BoundsInScreenBehavior::USE_SCREEN_COORDINATES); | 669 behavior == BoundsInScreenBehavior::USE_SCREEN_COORDINATES); |
| 670 } | 670 } |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 OnTransientChildAdded(this, Get(transient))); | 824 OnTransientChildAdded(this, Get(transient))); |
| 825 } | 825 } |
| 826 | 826 |
| 827 void WmWindowAura::OnTransientChildRemoved(aura::Window* window, | 827 void WmWindowAura::OnTransientChildRemoved(aura::Window* window, |
| 828 aura::Window* transient) { | 828 aura::Window* transient) { |
| 829 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, | 829 FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, |
| 830 OnTransientChildRemoved(this, Get(transient))); | 830 OnTransientChildRemoved(this, Get(transient))); |
| 831 } | 831 } |
| 832 | 832 |
| 833 } // namespace ash | 833 } // namespace ash |
| OLD | NEW |