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 #include "athena/wm/window_list_provider_impl.h" | 5 #include "athena/wm/window_list_provider_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "athena/athena_export.h" | 9 #include "athena/athena_export.h" |
10 #include "athena/wm/public/window_list_provider_observer.h" | 10 #include "athena/wm/public/window_list_provider_observer.h" |
11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
12 #include "ui/aura/window_property.h" | 12 #include "ui/aura/window_property.h" |
13 #include "ui/wm/core/transient_window_manager.h" | 13 #include "ui/wm/core/transient_window_manager.h" |
14 #include "ui/wm/core/window_util.h" | 14 #include "ui/wm/core/window_util.h" |
15 | 15 |
16 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(ATHENA_EXPORT, bool); | |
17 | |
18 namespace athena { | 16 namespace athena { |
19 namespace { | 17 namespace { |
20 | 18 |
21 // Used to keep track of which window should be managed. This is necessary | 19 // Used to keep track of which window should be managed. This is necessary |
22 // as the necessary informatino used in IsValidWindow (transient parent | 20 // as the necessary informatino used in IsValidWindow (transient parent |
23 // for example) may not available during destruction. | 21 // for example) may not available during destruction. |
24 DEFINE_WINDOW_PROPERTY_KEY(bool, kManagedKey, false); | 22 DEFINE_WINDOW_PROPERTY_KEY(bool, kManagedKey, false); |
25 | 23 |
26 } // namespace | 24 } // namespace |
27 | 25 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 if (window == container_) | 127 if (window == container_) |
130 return; | 128 return; |
131 DCHECK(IsWindowInList(window)); | 129 DCHECK(IsWindowInList(window)); |
132 RecreateWindowList(); | 130 RecreateWindowList(); |
133 // Inform our listeners that the stacking has been changed. | 131 // Inform our listeners that the stacking has been changed. |
134 FOR_EACH_OBSERVER( | 132 FOR_EACH_OBSERVER( |
135 WindowListProviderObserver, observers_, OnWindowStackingChangedInList()); | 133 WindowListProviderObserver, observers_, OnWindowStackingChangedInList()); |
136 } | 134 } |
137 | 135 |
138 } // namespace athena | 136 } // namespace athena |
OLD | NEW |