| 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/common/wm/overview/cleanup_animation_observer.h" | 5 #include "ash/wm/overview/cleanup_animation_observer.h" |
| 6 | 6 |
| 7 #include "ui/views/widget/widget.h" | 7 #include "ui/views/widget/widget.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 | 10 |
| 11 CleanupAnimationObserver::CleanupAnimationObserver( | 11 CleanupAnimationObserver::CleanupAnimationObserver( |
| 12 std::unique_ptr<views::Widget> widget) | 12 std::unique_ptr<views::Widget> widget) |
| 13 : widget_(std::move(widget)), owner_(nullptr) { | 13 : widget_(std::move(widget)), owner_(nullptr) { |
| 14 DCHECK(widget_); | 14 DCHECK(widget_); |
| 15 } | 15 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 void CleanupAnimationObserver::SetOwner(WindowSelectorDelegate* owner) { | 30 void CleanupAnimationObserver::SetOwner(WindowSelectorDelegate* owner) { |
| 31 owner_ = owner; | 31 owner_ = owner; |
| 32 } | 32 } |
| 33 | 33 |
| 34 void CleanupAnimationObserver::Shutdown() { | 34 void CleanupAnimationObserver::Shutdown() { |
| 35 widget_.reset(); | 35 widget_.reset(); |
| 36 owner_ = nullptr; | 36 owner_ = nullptr; |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace ash | 39 } // namespace ash |
| OLD | NEW |