OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/always_on_top_controller.h" | 5 #include "ash/wm/always_on_top_controller.h" |
6 | 6 |
7 #include "ui/aura/client/aura_constants.h" | 7 #include "ui/aura/client/aura_constants.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 | 9 |
10 namespace aura_shell { | 10 namespace ash { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 AlwaysOnTopController::AlwaysOnTopController() | 13 AlwaysOnTopController::AlwaysOnTopController() |
14 : default_container_(NULL), | 14 : default_container_(NULL), |
15 always_on_top_container_(NULL) { | 15 always_on_top_container_(NULL) { |
16 } | 16 } |
17 | 17 |
18 AlwaysOnTopController::~AlwaysOnTopController() { | 18 AlwaysOnTopController::~AlwaysOnTopController() { |
19 if (default_container_) | 19 if (default_container_) |
20 default_container_->RemoveObserver(this); | 20 default_container_->RemoveObserver(this); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 | 70 |
71 void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) { | 71 void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) { |
72 if (window == default_container_) | 72 if (window == default_container_) |
73 default_container_ = NULL; | 73 default_container_ = NULL; |
74 if (window == always_on_top_container_) | 74 if (window == always_on_top_container_) |
75 always_on_top_container_ = NULL; | 75 always_on_top_container_ = NULL; |
76 } | 76 } |
77 | 77 |
78 } // namespace internal | 78 } // namespace internal |
79 } // namespace aura_shell | 79 } // namespace ash |
OLD | NEW |