| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ | 5 #ifndef UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ |
| 6 #define UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ | 6 #define UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| 11 #include "ui/aura/window_observer.h" | 11 #include "ui/aura/window_observer.h" |
| 12 #include "ui/wm/core/wm_core_export.h" | 12 #include "ui/wm/core/wm_core_export.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace wm { |
| 15 namespace corewm { | |
| 16 | 15 |
| 17 class TransientWindowObserver; | 16 class TransientWindowObserver; |
| 18 | 17 |
| 19 // TransientWindowManager manages the set of transient children for a window | 18 // TransientWindowManager manages the set of transient children for a window |
| 20 // along with the transient parent. Transient children get the following | 19 // along with the transient parent. Transient children get the following |
| 21 // behavior: | 20 // behavior: |
| 22 // . The transient parent destroys any transient children when it is | 21 // . The transient parent destroys any transient children when it is |
| 23 // destroyed. This means a transient child is destroyed if either its parent | 22 // destroyed. This means a transient child is destroyed if either its parent |
| 24 // or transient parent is destroyed. | 23 // or transient parent is destroyed. |
| 25 // . If a transient child and its transient parent share the same parent, then | 24 // . If a transient child and its transient parent share the same parent, then |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 90 |
| 92 // If non-null we're actively restacking transient as the result of a | 91 // If non-null we're actively restacking transient as the result of a |
| 93 // transient ancestor changing. This is a pointer to a value on the stack. | 92 // transient ancestor changing. This is a pointer to a value on the stack. |
| 94 StackingPair* stacking_pair_; | 93 StackingPair* stacking_pair_; |
| 95 | 94 |
| 96 ObserverList<TransientWindowObserver> observers_; | 95 ObserverList<TransientWindowObserver> observers_; |
| 97 | 96 |
| 98 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager); | 97 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager); |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace corewm | 100 } // namespace wm |
| 102 } // namespace views | |
| 103 | 101 |
| 104 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ | 102 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ |
| OLD | NEW |