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/mus/disconnected_app_handler.h" | 5 #include "ash/mus/disconnected_app_handler.h" |
6 | 6 |
7 #include "ash/common/wm_window.h" | |
8 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
| 8 #include "ash/wm_window.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/base/class_property.h" | 10 #include "ui/base/class_property.h" |
11 | 11 |
12 DECLARE_UI_CLASS_PROPERTY_TYPE(ash::mus::DisconnectedAppHandler*); | 12 DECLARE_UI_CLASS_PROPERTY_TYPE(ash::mus::DisconnectedAppHandler*); |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 namespace mus { | 15 namespace mus { |
16 namespace { | 16 namespace { |
17 | 17 |
18 DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(DisconnectedAppHandler, | 18 DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(DisconnectedAppHandler, |
(...skipping 16 matching lines...) Expand all Loading... |
35 DisconnectedAppHandler::~DisconnectedAppHandler() { | 35 DisconnectedAppHandler::~DisconnectedAppHandler() { |
36 window_->RemoveObserver(this); | 36 window_->RemoveObserver(this); |
37 } | 37 } |
38 | 38 |
39 void DisconnectedAppHandler::OnEmbeddedAppDisconnected(aura::Window* window) { | 39 void DisconnectedAppHandler::OnEmbeddedAppDisconnected(aura::Window* window) { |
40 delete window_; | 40 delete window_; |
41 } | 41 } |
42 | 42 |
43 } // namespace mus | 43 } // namespace mus |
44 } // namespace ash | 44 } // namespace ash |
OLD | NEW |