| 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" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Stacks transient descendants of this window that are its siblings just | 74 // Stacks transient descendants of this window that are its siblings just |
| 75 // above it. | 75 // above it. |
| 76 void RestackTransientDescendants(); | 76 void RestackTransientDescendants(); |
| 77 | 77 |
| 78 // Update the window's visibility following the transient parent's | 78 // Update the window's visibility following the transient parent's |
| 79 // visibility. See |set_parent_controls_visibility(bool)| for more details. | 79 // visibility. See |set_parent_controls_visibility(bool)| for more details. |
| 80 void UpdateTransientChildVisibility(bool visible); | 80 void UpdateTransientChildVisibility(bool visible); |
| 81 | 81 |
| 82 // WindowObserver: | 82 // WindowObserver: |
| 83 virtual void OnWindowParentChanged(aura::Window* window, | 83 virtual void OnWindowParentChanged(aura::Window* window, |
| 84 aura::Window* parent) OVERRIDE; | 84 aura::Window* parent) override; |
| 85 virtual void OnWindowVisibilityChanging(aura::Window* window, | 85 virtual void OnWindowVisibilityChanging(aura::Window* window, |
| 86 bool visible) OVERRIDE; | 86 bool visible) override; |
| 87 virtual void OnWindowVisibilityChanged(aura::Window* window, | 87 virtual void OnWindowVisibilityChanged(aura::Window* window, |
| 88 bool visible) OVERRIDE; | 88 bool visible) override; |
| 89 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE; | 89 virtual void OnWindowStackingChanged(aura::Window* window) override; |
| 90 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 90 virtual void OnWindowDestroying(aura::Window* window) override; |
| 91 | 91 |
| 92 aura::Window* window_; | 92 aura::Window* window_; |
| 93 aura::Window* transient_parent_; | 93 aura::Window* transient_parent_; |
| 94 Windows transient_children_; | 94 Windows transient_children_; |
| 95 | 95 |
| 96 // If non-null we're actively restacking transient as the result of a | 96 // If non-null we're actively restacking transient as the result of a |
| 97 // transient ancestor changing. | 97 // transient ancestor changing. |
| 98 aura::Window* stacking_target_; | 98 aura::Window* stacking_target_; |
| 99 | 99 |
| 100 bool parent_controls_visibility_; | 100 bool parent_controls_visibility_; |
| 101 bool show_on_parent_visible_; | 101 bool show_on_parent_visible_; |
| 102 bool ignore_visibility_changed_event_; | 102 bool ignore_visibility_changed_event_; |
| 103 | 103 |
| 104 ObserverList<TransientWindowObserver> observers_; | 104 ObserverList<TransientWindowObserver> observers_; |
| 105 | 105 |
| 106 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager); | 106 DISALLOW_COPY_AND_ASSIGN(TransientWindowManager); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace wm | 109 } // namespace wm |
| 110 | 110 |
| 111 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ | 111 #endif // UI_WM_CORE_TRANSIENT_WINDOW_MANAGER_H_ |
| OLD | NEW |